Skip to main content


Showing posts from February, 2014

Powershell – Another windows registry “module” with a little remote trick

Well it is time for another pure powershell post. This time I have been working with the registry. Feels like I have been living in different hives no matter what area I have been working in in the last 15 years. It has become rather pleasant if I could say so compared to the old VBSCRIPT days and before that reg.exe and ini files.

Fist a little history and a discussion. You have a couple of options in regards to reading and/or editing settings in the registry
Use the built-in PS-drives (gives you access to HKLM and HKCU)Codeplex module (search on codeplex or in your favorite searchengine – most used and referenced: the .Net class (normally [microsoft.win32.registrykey]). This gives you access to all the hives in the registryPowershell Desired State Configuration (There is a built-in resource to access the registry)WMI/CIMWhich one you pick depends upon your current needs and what you want to accomplish. If you are also in a hurry and need something quick…

More Powershell DSC resources released

The PowerShell Blog has released information about the second wave of resources to use in your Desired State Configuration. Looks like the guys have been really busy  and released some neat resources for us.

Here is the list:

ResourceDescriptionModule NameLinkxADDomainCreate and manage an Active Directory DomainxActiveDirectoryclick herexADDomainControllerCreate and manage an AD Domain ControllerxActiveDirectoryclick herexADUserCreate and manage an AD UserxActiveDirectoryclick herexWaitForADDomainPause configuration implementation until the AD Domain is available.  Used for cross machine synchronization.xActiveDirectoryclick herexSqlServerInstallCreate and manage a SQL Server Installation.xSqlpsclick herexSqlHAServiceCreate and manage a SQL High Availability Service.xSqlpsclick herexSqlHAEndpointCreate and manage the endpoint used to
access a SQL High Availability Group.xSqlpsclick herexSqlHAGroupCreate and manage a SQL High Availability Group.xSqlpsclick herexWaitForSqlHAGro…