Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $USERSID = ([Security.Principal.WindowsIdentity]::GetCurrent()).User.Value
- [Environment]::SetEnvironmentVariable('USERSID', ($USERSID), 'User')
- Set-ItemProperty -path Registry::'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\'$USERSID'\' -Name State -Value 128
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement