PowerShell 技能连载 - 当前用户的 SID

以下是一行返回当前用户 SID 并且可以用于登录脚本的代码,例如:

1
([System.Security.Principal.WindowsIdentity]::GetCurrent()).User.Value

PowerShell 技能连载 - 当前用户的 SID

https://blog.vichamp.com/2019/01/11/sid-of-current-user/

作者

Victor Woo

发布于

2019-01-11

更新于

2019-01-11

许可协议

PowerShell 技术 QQ 群