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
| Get-GPO -All | ForEach-Object { | |
| if ('S-1-5-11' -notin ($_ | Get-GPPermission -All).Trustee.Sid.Value) { | |
| $_ | Set-GPPermission -PermissionLevel GpoRead -TargetName 'Authenticated Users' -TargetType Group -Verbose | |
| } | |
| } |
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
| get-content ".\vmsToUpgrade.txt"| % {get-vm -name $_} | % {$_.ExtensionData.ReconfigVM_Task($(New-Object -TypeName VMware.Vim.VirtualMachineConfigSpec -Property @{"ScheduledHardwareUpgradeInfo"=$( (New-Object -TypeName VMware.Vim.ScheduledHardwareUpgradeInfo -Property @{"UpgradePolicy"="always";"VersionKey"="vmx-11"}))}))} |
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
| get-vm | ? {$_.ExtensionData.config.CPUHotAddEnabled -eq $false -or $_.ExtensionData.config.MemoryHotAddEnabled -eq $false} |
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
| get-content ".\vmsToUpgrade.txt" | % {get-vm -name $_} | % {$_.ExtensionData.ReconfigVM_Task($(New-Object -TypeName VMware.Vim.VirtualMachineConfigSpec -Property @{"MemoryHotAddEnabled"=$true;"CPUHotAddEnabled"=$true}))} |
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
| get-adcomputer -Server "adserver" -filter 'OperatingSystem -like "*Server 200*"' -Properties Name,OperatingSystem,OperatingSystemVersion |
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
| dism /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:"\\server\share\Windows Server 2016\sources\sxs" |
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-MsolDirSyncFeature -Feature SynchronizeUpnForManagedUsers -Enable $true |
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
| Client IP: <%= My.Request.UserHostAddress.ToString %> | |
| <br> | |
| Headers: <%= My.Request.Headers.ToString %> |
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
| dism.exe /online /cleanup-image /startcomponentcleanup /resetbase |
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
| Get-EventLog -LogName * | ForEach {Clear-EventLog $_.Log} |
OlderNewer