From 460f40c2cde4b790326c46ddee6a217e9ea66304 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Wed, 15 Mar 2023 23:18:12 -0500 Subject: [PATCH] Fix virtual store snippet to use correct registry pathing --- .../Snippets/Examples/Get User Registry Virtual Store.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LANCommander/Snippets/Examples/Get User Registry Virtual Store.ps1 b/LANCommander/Snippets/Examples/Get User Registry Virtual Store.ps1 index 09a8c5e..fed6539 100644 --- a/LANCommander/Snippets/Examples/Get User Registry Virtual Store.ps1 +++ b/LANCommander/Snippets/Examples/Get User Registry Virtual Store.ps1 @@ -1,4 +1,4 @@ $User = New-Object System.Security.Principal.NTAccount($env:UserName) $SID = $User.Translate([System.Security.Principal.SecurityIdentifier]).value # The OS might force your game to read/write to the user's virtual store. This will write a key to the correct SID's virtual store. -New-ItemProperty -Path "HKU:\$SID\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\" -Name "KeyName" -Value "New Value" -Force \ No newline at end of file +New-ItemProperty -Path "registry::\HKEY_USERS\$SID\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\" -Name "KeyName" -Value "New Value" -Force \ No newline at end of file