-
If you create new Conditional Forwarder then you will need to restart Domain Controller or DNS service on PDC
My friends found interesting issue. If you create a conditional forwarder (and you do it on PDC) then conditional forwarder will work on all other DNS servers (Domain Controllers) except PDC. This behavior was tested on Windows Server 2008 R2 and Windows Server 2012 R2. The solution is to restart DNS service or whole PDC.
-
Simple PowerShell script to combine every item with every item
I needed a simple PowerShell code to generate hash tables with all possible pairs of a given array of strings. There are possibilities to use a similar method in .NET but I used only PowerShell functionality. This is my output: $inputItems = ‘aaa’, ‘bbb’, ‘ccc’ $pairItems = @() $i = 0 foreach ($pairItemFirst in $inputItems) {…
-
PowerShell advanced function (cmdlet) to get all Active Directory Sites and Subnets
I wrote a simple function to get all AD sites and subnets. Using this function it is possible to easily report all sites and for example find sites without subnets. If there is more then on subnet in a site then the output is multiple objects with the same site and different subnet. Every object…
-
PowerShell advanced function (cmdlet) to modify existing shortcuts (links, LNK files) to start app in elevated mode (Run as Administrator)
I needed to modify tens of existing shortcuts to run referenced applications in elevated mode. It is possible to do it in properties of the shortcut (Advanced – [x] Run as administrator) but I prefer PowerShell (actually .NET Framework) to do bulk operations. I wrote this function for you. Function Set-RvShortcutToRunAsAdministrator { <# .SYNOPSIS Modify…
-
How to disable Virtual Machine Generation Identifier (VM Generation ID) on Domain Controller on Hyper-V 2012
What is VM GenerationID identifier? Very simple description of the VM Generation ID is that Generation ID is a protection of your Active Directory against restore of a checkpoint (snapshot) of a virtualized Domain Controller (DC). As you can imagine if you restore a checkpoint of a DC (you do not restore a backup, you…