ibrohimholidmuhammad Posted December 4, 2011 Share Posted December 4, 2011 When i want to shutdown my computer in any time, i always use CMD. i use my limited account so that i have to use runas and i have to type my password to take my administrator privilege. can anyone tell me how to make it easier to shutdown my computer in single click by using batch? Link to comment Share on other sites More sharing options...
Yzöwl Posted December 4, 2011 Share Posted December 4, 2011 No!If you don't want to use the normal GUI shutdown methods or power button(s). Link to comment Share on other sites More sharing options...
ibrohimholidmuhammad Posted December 5, 2011 Author Share Posted December 5, 2011 so, there is no way except i have to type runas......, then my password manually? Link to comment Share on other sites More sharing options...
allen2 Posted December 5, 2011 Share Posted December 5, 2011 Look at psshutdown from sysinternals.Something like this should work:psshutdown -accepteula \\%computername% -u adminaccount -p adminpassword -k -t 20 -f Link to comment Share on other sites More sharing options...
ibrohimholidmuhammad Posted December 6, 2011 Author Share Posted December 6, 2011 (edited) :whistle: let me try... :whistle: Edited December 6, 2011 by ibrohimholidmuhammad Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now