3
votes
3answers
18k views

How to run a command as administrator on Windows7 from a command line?

I need to run tscon.exe 0 /dest:console remotely = not manually on Windows7 as an administrator. More info here How to use tscon on Windows7? I did my research and OPTION 1 - runas for user ...
1
vote
1answer
2k views

Executing Windows administrative shell commands on Windows using Python

I have a batch script using Windows shell commands to perform several administrative actions. The script is running great on Windows 7 but when i try launching it from Python 2.6 nothing happens: ...
0
votes
2answers
589 views

as a domain member, 'run with administrative privileges' always asks for hostname

Since we run Windows 7-clients in our windows-server domain I have a specific use case that has become more inconvenient: On the client-site, being logged-on as an user with restricted rights and ...