powershell - How to grant permissions in Local Security Policy like "Log on as a service" via script specifically in windows 10? -


i've seen lots of posts earlier versions of windows pointing towards rsat , ntrights.exe neither of solutions work windows 10. i'm looking solution preferably in powershell or batch.

alrighty, figured out. ended having use carbon. after running:

.\carbon\import-carbon.ps1 

i able run:

grant-privilege -identity $username -privilege seservicelogonright 

something note local security policy manager doesn't have refresh button. you'll have close , reopen tool in order see external changes policy.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -