Grab a remote users HKLM using Powershell


Is there a way to get another machine on your networks HKLM ? I imagine you would use a pdrive for this but I was unable to get a command working successfully


There are a few ways to do it but how you do it depends on the environment you have.

1) Probably the easiest way is to use invoke-command

This would work if you have sufficient permission on the remote machine, WinRM is configured for you to connect to it.

2) You can use .net registry classes
See this link:

3) You use PSDrive as shown in the Scripting Guy blog

4) You can use WMI Registry


Grab a remote users HKLM using Powershell by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply