Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Adding registry value names and value

$
0
0

I'm trying to implement a command I normally run in batch into PS. I'm a beginner when it comes to PS and need some assistance.

Basically, during the logon process, among other things, this registry gets added. The end result is that I can actually see the user's AD name when I select the user's SID under HKEY_USERS.

REG ADD HKCU /v UserName /d %UserName% /F

 


Viewing all articles
Browse latest Browse all 10624

Latest Images

Trending Articles



Latest Images