This file contains 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
<# | |
@scriptingpro | |
Using powershell to promote a new domain controller | |
This will Install a new RODC | |
Todo: | |
parameterize SafeModeAdministratorPassword (DSRM password) | |
#> | |
#First add the Active Directory Domain Services feature to your server |
This file contains 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
<# | |
one-liner to quickly determine IIS version information from a Powershell prompt | |
#> | |
Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\InetStp' | select InstallPath, VersionString, @{n="ProductVersion";e={(Get-ItemProperty ($_.InstallPath + "\w3wp.exe")).VersionInfo.ProductVersion}} |
NewerOlder