That does not fulfill the requirement that the user gets a screen pop with the chance to cancel. Unless I am missing that option. I did though find an hta script that does it, just seconds after hitting send on my original.
From: Michael B. Smith [mailto:[email protected]] Sent: Wednesday, September 07, 2011 12:21 PM To: NT System Admin Issues Subject: RE: Win 7 psshutdown 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:[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] with the body: unsubscribe ntsysadmin
