

I invite you to follow me on Twitter and Facebook. Join me tomorrow, when I will talk about doing this in a single command-a scenario that is useful when you need to make changes on multiple computers. Well, that is about it for creating a remote registry key. I then use Remote Desktop to connect to the remote server to verify that the registry key and property are updated. The following image illustrates this technique. I use the EXIT command to leave the remote PS Session.I use the Pop-Location cmdlet to return to my previous location.I use the P ush-Location cmdlet to store my current location.I use the Enter-PSSession cmdlet to enter a remote PS Session.I use the Get-Credential cmdlet to retrieve a credential object to use to make a remote connection.
#New computer register windows windows#
I can do it by using Windows PowerShell remoting by using the following steps: The newly created registry property is shown in the image that follows.Īfter I have done all this locally, it is really easy to do it against a remote computer. PSParentPath : \Registry::HKEY_CURRENT_USER\Software PSPath : \Registry::HKEY_CURRENT_USER\Software\hsg PS HKCU:\Software> New-ItemProperty -Name forscripting -PropertyType string -path hsg -Value “PowerShell Rocks” The use of these techniques is shown here.

#New computer register windows software#
Suppose I want to create a new registry key under HKEY_CURRENT_USER under the Software key, and I want to call it HSG. How Can I Change Browser History Settings via the Registry?.Can I Use the Registry to Retrieve a List of the Most Recently Run Programs?.How Can I List All User Profiles on a Remote Computer?.Can I Change the Default Value of a Registry Key on Multiple Computers?.In fact, by using Windows PowerShell remoting, it is just as easy to work with the remote registry as it is to work with a local registry.įor a good introduction to using Windows PowerShell to work with the registry, see The Scripting Wife, Windows PowerShell, and the Registry.įor more advanced topics, check out some of the other blog posts about the registry in the Hey, Scripting Guy! Blog archives. NET Framework classes, I like to use a combination of Windows PowerShell remoting and the Windows PowerShell registry provider because it is easier. While there are lots of ways to work with the registry on a remote computer, including using Windows Management Instrumentation, or. In Wednesday’s PowerShell Essentials live meeting presentation, one of the questions revolved around working with the registry on a remote computer. Microsoft Scripting Guy, Ed Wilson, is here. Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to edit the registry on remote computers.
