New
#11
You code isn't identical to the posted code, so I'm glad I asked!
Try the following from an Admin PowerShell console from an account with Admin priviledges. If you're not running from the built-in Admin account, add that user folder name to the-notMatch
string seperated by a pipe symbol:'Public|Administrator|<YourUserFolder>'
Code:New-PSDrive -Name HKU -PSProvider Registry -Root HKEY_USERS | out-null Get-ChildItem -Path c:\users | ? Name -notMatch 'Public|Administrator' | ForEach { reg load "HKU\$_.Name" "$_.FullName\NTUSER.DAT" Remove-Item -Path "HKU:\$($_.Name)\SOFTWARE\Solidworks" -Recurse -Force reg unload "HKU\$_.Name" }
Last edited by KeithM; 03 Sep 2020 at 20:08.