Reputation: 11
So I got some child processes that need to be able to adjust System time on a windows 10 system. The way it has been done in the past iterations of Windows was simply forking children as Administrator so they would have permission to edit the system time.
Things I have tried:
ruunas /user:Administrator app.exe
as the executing command to run the child process, the problem here is that prompting for the password is not an option every-time this process needs to run.I'm not sure what to try next.
Upvotes: 1
Views: 186
Reputation: 24585
There is now an open-source tool I wrote that is (I think) an improvement on the ntrights
tool:
https://github.com/Bill-Stewart/PrivMan/
To grant SeSystemtimePrivilege
("change the system time") to the user1
account, you would write:
PrivMan -a user1 -g SeSystemtimePrivilege
It also has options to revoke privileges/rights (-r
), test whether an account has one or more privileges/rights (t
), and to output a comma-delimited report containing all accounts and privileges assigned (--csvreport
).
Upvotes: 0
Reputation: 11
So I found a work around. I used the 2003 windows resource kit utility 'ntrights.exe' to open up the permissions on windows 10. I ran ntrights.exe from the terminal and then the command:
ntrights -U "UserAccountName" +R SeSystemtimePrivilege
This allowed the process to set the time as necessary without needing administrator privilege.
Upvotes: 0