This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $users = get-aduser -Filter * -Properties proxyAddresses,EmailAddress | |
| foreach ($u in $users) { | |
| if (!($u.proxyAddresses -contains "SMTP:$($u.EmailAddress)")) { | |
| $u.proxyAddresses.Add("SMTP:$($u.EmailAddress)") | |
| Set-ADUser -Identity $u.SamAccountName -Add @{ 'proxyAddresses' = $($u.proxyAddresses) } | |
| } | |
| else { | |
| Write-Host "$($u.name) already had the correct proxyaddresses" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Set-Location C:\GWCheck | |
| Get-ChildItem . | % { | |
| Get-Content $_.FullName -PipelineVariable log | % { | |
| if ($log -match "\S*Checking user =*\S.([^\s]+)|[\s]+(\d+).\S*kbytes*\S") | |
| { | |
| $matches[0] | Out-File -Append .\gwcheck.txt #"" | select @{n='User';e={$matches[1]}},@{n='Size';e={$matches[2]}} | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (Test-Path HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall) { | |
| $gwreg = Get-ChildItem HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | foreach { | |
| Get-ItemProperty $_.pspath | where { | |
| $_.DisplayName -like '*GroupWise*' | |
| } | |
| } | |
| } | |
| else { | |
| $gwreg = Get-ChildItem HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | foreach { | |
| Get-ItemProperty $_.pspath | where { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Resize photos to a specified size, 648 by default | |
| Rename them and place them in a 'resized' folder | |
| .EXAMPLE | |
| Get-ChildItem -Path C:\Picures | Resize-ThumbnailPhoto | |
| #> | |
| Function Resize-ThumbnailPhoto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ########## | |
| # Win10 Initial Setup Script | |
| # Author: Disassembler <disassembler@dasm.cz> | |
| # Version: 1.4, 2016-01-16 | |
| # http://pastebin.com/gQxCUkLP | |
| # Modified: Casey Gray, 2016-04-27 | |
| ########## | |
| # Script Execution must be enabled | |
| # Ask for elevated permissions if required |
OlderNewer