Basic tasks for freshly installed WS2012

Here is the list of frequently required tasks to perform on newly installed WS 2012 box. I know that some of them could be not in line with best practices or your environment requirements but anyway those are frequent tasks.


Check UAC status

\nUse following PowerShell code:\n\nGet-ItemProperty -Path HKLM:SoftwareMicrosoftWindowsCurrentVersionpoliciessystem -Name EnableLUA\n\n0 – disabled, 1 enabled\n

Disable UAC

\nUse following PowerShell code:\n\nSet-ItemProperty -Path HKLM:SoftwareMicrosoftWindowsCurrentVersionpoliciessystem -Name EnableLUA -Value 0\n\nReboot is required. Use shutdown -r -t 0 command for immediate restart.\n

Install full GUI

\nUse following PowerShell code:\n\nAdd-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra\n\n(this is is an alias for Install-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra)\n\nReboot is required. Use shutdown -r -t 0 command for immediate restart.\n

Rename Machine

\nUse following PowerShell code:\n\nRename-Computer NEWCOMPUTERNAME\n\nReboot is required. Use shutdown -r -t 0 command for immediate restart.\n

Domain Join

\nUse following PowerShell code:\n\nAdd-Computer -domainname YOURDOMAINNAME -cred YOURDOMAINNAMEUSERNAME -passthru\n\nReboot is required. Use shutdown -r -t 0 command for immediate restart.

Leave a Reply

Your email address will not be published. Required fields are marked *