Skip to main content

Posts

Showing posts with the label Facebook

ServerCore + Create Test Users using Facebook

So Recently my VHD got corrupted and had to make the VHD Boot again work. Thankfully I had all the PowerShell one-liners I used to get my Lab up in less time. First of all I will add 100 test users by following this awesome Hey Scripting Guys Blog Post . To make things a bit clear I am on a workstation with RSAT for Active Directory installed and my DC is a servercore machine. Just to give a hint when I need to run a cmdlet to get any information from the AD, I need to specify the name of the DC with -Server  parameter from where I want to get the information but a new connection will be opened and closed for each cmdlet invocation. For Example : Get-ADForest -Server dexservercore.dexter.com Better way explained in Active Directory PowerShell Blog is to map a PSDrive for better performance. Since I have only one DC in my test environment , when I Import the ActiveDirectory Module it will automatically map a PSDrive on my remote workstation. Now I don't want to a...