I'm toying with an idea for a script that would update a computer's details in Active directory with its make and model information. Ideally, I'd like this script to access AD via its computer account, which means I'd need to have the script run as "NT Authority\NetworkService". Is this something that's possible? Alternatively, could I impersonate NetworkService in the script/executable?
Run Process – How to Run a Process as NT Authority\NetworkService
active-directorySecurityservice-accountswindows
Related Topic
- Windows – Finding hardware manufacturer, model and serial number
- Security – Our security auditor is an idiot. How to give him the information he wants
- Ssl – use Active Directory as a CA for creating test SSL certificates for IIS
- GPO: how to limit the users able to logon to PC
- Security – Allow members of a group to be unlocked by a specific account on AD
- Active Directory, wildcard security certificate, and remote access
- active-directory – How to Update Group Membership Remotely
Best Answer
You can use devxexec: http://blog.developex.com/?p=1053
For example:
devxexec.exe /user:NETWORK_SERVICE cmd