Restore DAGs Active Databa...

If you have constant outages in your environment and connection brakes between DAG members you can put on schedule following script to recover active databases on their native DAG members (this is an example only with one DAG): Get-MailboxDatabaseCopyStatus -Server exm01 | where identity -like "databaseonexm01*" | where ActiveDatabaseCopy -ne "exm01" | foreach {Move-ActiveMailboxDatabase $_.DatabaseName...

Deploy Windows Server 2012...

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...

DHCP and NPS Backup Script...

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...

Force System Center Adviso...

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...