Finally I approached my first experience with the hot Windows Server 2012 product.
I deployed it as Domain Controller in our current existing environment withing existing domain.
I decided to install only Windows Server 2012 and make any deployments using PowerShell:
Set-ExecutionPolicy Unrestricted
Add-WindowsFeature -Name ad-domain-services -IncludeManagementTools
Install-ADDSDomainController...
There is no possibility to backup DHCP and NPS except using native Windows Backup System State which is not so convenient for very quick recovery of some failures or wrong modifications in these systems.
That’s why this script is very helpful when you need a quick recover. It uses native export and backup methods of DHCP and NPS.
It keeps only last 7 days of backups.
Get-ChildItem -Path...
If your Server has installed Agent and Gateway module it is possible to force System Center Advisor 2012 upload data to the cloud by using this script:
New-Item -Name AgentUpload.cfg -Path "$env:ProgramFiles\System Center Advisor" -Type File
Add-PSSnapin...
Here is an example how to uninstall Microsoft Visual Studio 2010 remotely.
This script include these steps:
1. Getting the list of computers and performs actions following actions on them
2. Check if it is pinging, if there is installed Microsoft Visual Studio 2010 using WMI
3. Copies VS2010_Uninstall-RTM.ENU.exe utility locally for uninstalling
4. Creates a job with invoke-command for particular computer...