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
| certreq -submit -attrib "certificatetemplate:CertTemplateName\nSAN:DNS=host.domain.tld&DNS=host2.domain.tld" |
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
| connect-viserver -server 'vpshere.localdomain.tld' | |
| Get-Cluster | Get-VMHost | Get-VMHostStorage -RescanVmfs |
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 -filter {(name -like "myFilter*")} | % {$_.name} | % {"$($_)`:`t$((Get-WmiObject -class Win32_Operatingsystem -ComputerName $_).LastBootupTime)"} |
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
| find ./ -mtime +365 -exec rm -rf {} \; |
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} |
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
| 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
| 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
| 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
| get-adcomputer -Server "adserver" -filter 'OperatingSystem -like "*Server 200*"' -Properties Name,OperatingSystem,OperatingSystemVersion |