问题
On a servers Local Security Policy I need to give a user rights to "Allow logon locally".
How do I do that through a script?
回答1:
From the Windows 2003 Resource Kit you need to use the ntrights.exe
ntrights -u userName +r SeInteractiveLogonRight
More details about ntrights here
来源:https://stackoverflow.com/questions/1564979/scripting-local-security-policy