Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell Test-Path of HKEY_USERS

$
0
0

Hello Folks,

I'm attempting to write a script that will update a non logged in users NTUSER.dat registry setting.

I load the hive with: REG load "hku\temp" c:\users\${username}\NTUSER.dat.  That occurs successfully, but when I attempt to do a test-path for a setting, that I know is there, it always returns false. For example:Test-Path "hku\temp\Software\Microsoft\Office"

In fact, I do a test-path on my current HKU setting, that I copied and pasted from registry editor copy key name, and that as well says false. Test-Path "HKEY_USERS\SID#\Software\Microsoft\Silverlight"

Can someone please provide some guidance?  Thanks in advance!!


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>