When you read my next reply in this thread you will be doing a -1 :) I don't see where shutdown meets the need for a user cancel. The -I in shutdown only seems to pop the standard GUI you would normally use for remote shutdown.
This works, universal on all OS's...quick easy copy with a scheduled task to the desktops. http://mockbox.net/miscellaneous/100-hta-script-shutdown-script-and-warning-message.html From: Micheal Espinola Jr [mailto:[email protected]] Sent: Thursday, September 08, 2011 10:52 AM To: NT System Admin Issues Subject: Re: Win 7 psshutdown +1 -- Espi On Wed, Sep 7, 2011 at 9:21 AM, Michael B. Smith <[email protected]<mailto:[email protected]>> wrote: Use the shutdown.exe built-in command. Regards, Michael B. Smith Consultant and Exchange MVP http://TheEssentialExchange.com From: Kennedy, Jim [mailto:[email protected]<mailto:[email protected]>] Sent: Wednesday, September 07, 2011 12:11 PM To: NT System Admin Issues Subject: Win 7 psshutdown Want to shut down our desktops at night. Always used psshutdown as a scheduled task for XP prior to this. Win 7 is proving to be quite an adventure. Screen popping a cancel button for the user is a requirement. Seems Win 7 uses different session id's for users than xp did. At least on 64 bit which is what we have. psshutdown has not been updated to reflect that, so the work around is to run it via psexec and use the session id feature of psexec. Except now you have a service/program trying pop a message and Win 7 semi-blocks that...first it asks for your permission to pop the message. Very cumbersome and ugly. Here is what I am doing: psexec -i 1 -h -u domain\username -p "password -accepteula C:\psshutdown.exe-c -f -t 120 -accepteula Any ideas how to skin this cat? I am willing to go third party at this point. ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected]<mailto:[email protected]> with the body: unsubscribe ntsysadmin ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected]<mailto:[email protected]> with the body: unsubscribe ntsysadmin ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected]<mailto:[email protected]> with the body: unsubscribe ntsysadmin ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin
