From: Gandalf on 12 Mar 2010 04:54 Hi Pedro, I have the same problem. I use the shutdown.exe in my reboot.cmd with %windir%\system32\shutdown.exe. I don't find the shutdown.exe(no file exist) on some servers with 64bit . On 32bit systems is the commandline okay. Can you help me, please. Best regards Norbert Pedro CR wrote: heads up: shutdown.exe on windows 64 23-Mar-08 Hi Just wanted to share something that may be of interest. One of the installations I run is an SBS 2003 R2 with a second server that runs windows server 2003 R2 x64 I was setting up an automated shutdown script on the UPS setup to stop some services and then call shutdown.exe to shutdown the computer. An equivalent script runs fine on SBS 2003 but on windows x64 all goes well except the computer WON'T shutdown. After hours with process Explorer the reason is this: The UPS software starts the shutdown script under a 32 bit process and thus shutdown.exe is initiated by 32 bit process. In this situation, all calls to executables that exist in %windir%system32 are silently redirected to %windir%\syswow64 where supposedly exist the 32 bit versions of what exists in the x64 version of system32. However there are some tools that have no 32 bit equivalents and thus don't exist in syswow64 (shutdown.exe is one of them). So a call to shutdown.exe ends up failing since there is no %windir%\syswow64\shutdown.exe Bottom line, when using windows server x64 it is impossible to run shutdown.exe from a script initiated from a 32 bit process without some tweaking. There is some info on that here http://blogs.sepago.de/nicholas/2008/03/13/jailed-32-bit-processes-on-windows-x64/ Just wanted to share this in acse anyone runs into the same situation. Thanks. Pedro. Previous Posts In This Thread: On Sunday, March 23, 2008 10:34 PM Pedro CR wrote: heads up: shutdown.exe on windows 64 Hi Just wanted to share something that may be of interest. One of the installations I run is an SBS 2003 R2 with a second server that runs windows server 2003 R2 x64 I was setting up an automated shutdown script on the UPS setup to stop some services and then call shutdown.exe to shutdown the computer. An equivalent script runs fine on SBS 2003 but on windows x64 all goes well except the computer WON'T shutdown. After hours with process Explorer the reason is this: The UPS software starts the shutdown script under a 32 bit process and thus shutdown.exe is initiated by 32 bit process. In this situation, all calls to executables that exist in %windir%system32 are silently redirected to %windir%\syswow64 where supposedly exist the 32 bit versions of what exists in the x64 version of system32. However there are some tools that have no 32 bit equivalents and thus don't exist in syswow64 (shutdown.exe is one of them). So a call to shutdown.exe ends up failing since there is no %windir%\syswow64\shutdown.exe Bottom line, when using windows server x64 it is impossible to run shutdown.exe from a script initiated from a 32 bit process without some tweaking. There is some info on that here http://blogs.sepago.de/nicholas/2008/03/13/jailed-32-bit-processes-on-windows-x64/ Just wanted to share this in acse anyone runs into the same situation. Thanks. Pedro. On Monday, March 24, 2008 12:51 AM Charlie Russel - MVP wrote: This is a known issue with 32-bit/64-bit interaction. This is a known issue with 32-bit/64-bit interaction. You see it in both directions. There are, usually, workarounds. Or use 64-bit software, of course. Sadly the UPS manufacturers have been a bit slow to provide native versions, though I'm sure that will change as we move forward. -- Charlie. http://msmvps.com/xperts64 http://mvp.support.microsoft.com/profile/charlie.russel "Pedro CR" <pramilo(a)n0.spam.sapo.pt> wrote in message news:%23$uSKeVjIHA.4376(a)TK2MSFTNGP05.phx.gbl... On Monday, March 24, 2008 2:03 PM Pedro CR wrote: i understand this is a known issue. i understand this is a known issue. however my point here is that one would expect the 32 bit experience to be fairlly transparent. As it turns out there is a sysWOW64 fot taht purpose but it does not include all the equivalent tools that exist on the 32 bit versions of windows (or in even in system32 of the 64 bit versions). This makes little sense..... shutdown.exe is one of those that don't have a 32 bit equivalent residing in sysWOW64... However oddly enough, I copied shutdown.exe to a different folder (one not affected by folder redirect) and it works perfectly when called from a 32 bit app. "Charlie Russel - MVP" <charlie(a)mvKILLALLSPAMMERSps.org> escreveu na mensagem news:361AC3A1-3C87-4842-9349-4812C7692DF5(a)microsoft.com... On Monday, March 24, 2008 4:13 PM Charlie Russel - MVP wrote: yes, it should work in a different folder. yes, it should work in a different folder. Since it's a pure CMD command line app, there's no reason why not - it's just that the "real" system32 is hidden from a 32-bit app. (you could even get away with simply copying it to the SYSWOW64 folder, I'm sure. Or get really smart and do a hard link, with mklink.) -- Charlie. http://msmvps.com/xperts64 http://mvp.support.microsoft.com/profile/charlie.russel "Pedro CR" <pramilo(a)n0.spam.sapo.pt> wrote in message news:eaeybldjIHA.4940(a)TK2MSFTNGP02.phx.gbl... Submitted via EggHeadCafe - Software Developer Portal of Choice BizTalk Configure and Send SMTP Mail Based on Message Within an Orchestration http://www.eggheadcafe.com/tutorials/aspnet/4e9e7c92-1279-4fdb-8631-a2f309a021c2/biztalk-configure-and-sen.aspx
From: Duncan McCormack on 12 Mar 2010 19:18 Have you tried Mark Russinovich's / Sysinternals - PsShutdown? (I haven't tried it myself on a 64it machine). http://technet.microsoft.com/en-nz/sysinternals/bb897541(en-us).aspx -- Duncan. In article <20103124540gandalf_gimli(a)web.de>, Gandalf says... > > Hi Pedro, > I have the same problem. > I use the shutdown.exe in my reboot.cmd with %windir%\system32\shutdown.exe. > I don't find the shutdown.exe(no file exist) on some servers with 64bit . > On 32bit systems is the commandline okay. > Can you help me, please. > > Best regards > Norbert > > > > Pedro CR wrote: > > heads up: shutdown.exe on windows 64 > 23-Mar-08 > > Hi > > Just wanted to share something that may be of interest. > One of the installations I run is an SBS 2003 R2 with a second server that > runs windows server 2003 R2 x64 > > I was setting up an automated shutdown script on the UPS setup to stop some > services and then call shutdown.exe to shutdown the computer. > An equivalent script runs fine on SBS 2003 but on windows x64 all goes well > except the computer WON'T shutdown. > > After hours with process Explorer the reason is this: The UPS software > starts the shutdown script under a 32 bit process and thus shutdown.exe is > initiated by 32 bit process. > In this situation, all calls to executables that exist in %windir%system32 > are silently redirected to %windir%\syswow64 where supposedly exist the 32 > bit versions of what exists in the x64 version of system32. > However there are some tools that have no 32 bit equivalents and thus don't > exist in syswow64 (shutdown.exe is one of them). So a call to shutdown.exe > ends up failing since there is no %windir%\syswow64\shutdown.exe > > Bottom line, when using windows server x64 it is impossible to run > shutdown.exe from a script initiated from a 32 bit process without some > tweaking. > There is some info on that here > http://blogs.sepago.de/nicholas/2008/03/13/jailed-32-bit-processes-on-windows-x64/ > > Just wanted to share this in acse anyone runs into the same situation. > > Thanks. > Pedro. > > Previous Posts In This Thread: > > On Sunday, March 23, 2008 10:34 PM > Pedro CR wrote: > > heads up: shutdown.exe on windows 64 > Hi > > Just wanted to share something that may be of interest. > One of the installations I run is an SBS 2003 R2 with a second server that > runs windows server 2003 R2 x64 > > I was setting up an automated shutdown script on the UPS setup to stop some > services and then call shutdown.exe to shutdown the computer. > An equivalent script runs fine on SBS 2003 but on windows x64 all goes well > except the computer WON'T shutdown. > > After hours with process Explorer the reason is this: The UPS software > starts the shutdown script under a 32 bit process and thus shutdown.exe is > initiated by 32 bit process. > In this situation, all calls to executables that exist in %windir%system32 > are silently redirected to %windir%\syswow64 where supposedly exist the 32 > bit versions of what exists in the x64 version of system32. > However there are some tools that have no 32 bit equivalents and thus don't > exist in syswow64 (shutdown.exe is one of them). So a call to shutdown.exe > ends up failing since there is no %windir%\syswow64\shutdown.exe > > Bottom line, when using windows server x64 it is impossible to run > shutdown.exe from a script initiated from a 32 bit process without some > tweaking. > There is some info on that here > http://blogs.sepago.de/nicholas/2008/03/13/jailed-32-bit-processes-on-windows-x64/ > > Just wanted to share this in acse anyone runs into the same situation. > > Thanks. > Pedro. > > On Monday, March 24, 2008 12:51 AM > Charlie Russel - MVP wrote: > > This is a known issue with 32-bit/64-bit interaction. > This is a known issue with 32-bit/64-bit interaction. You see it in both > directions. There are, usually, workarounds. Or use 64-bit software, of > course. Sadly the UPS manufacturers have been a bit slow to provide native > versions, though I'm sure that will change as we move forward. > > -- > Charlie. > http://msmvps.com/xperts64 > http://mvp.support.microsoft.com/profile/charlie.russel > > > "Pedro CR" <pramilo(a)n0.spam.sapo.pt> wrote in message > news:%23$uSKeVjIHA.4376(a)TK2MSFTNGP05.phx.gbl... > > On Monday, March 24, 2008 2:03 PM > Pedro CR wrote: > > i understand this is a known issue. > i understand this is a known issue. > however my point here is that one would expect the 32 bit experience to be > fairlly transparent. As it turns out there is a sysWOW64 fot taht purpose > but it does not include all the equivalent tools that exist on the 32 bit > versions of windows (or in even in system32 of the 64 bit versions). > This makes little sense..... shutdown.exe is one of those that don't have a > 32 bit equivalent residing in sysWOW64... > > However oddly enough, I copied shutdown.exe to a different folder (one not > affected by folder redirect) and it works perfectly when called from a 32 > bit app. > > > > "Charlie Russel - MVP" <charlie(a)mvKILLALLSPAMMERSps.org> escreveu na > mensagem news:361AC3A1-3C87-4842-9349-4812C7692DF5(a)microsoft.com... > > On Monday, March 24, 2008 4:13 PM > Charlie Russel - MVP wrote: > > yes, it should work in a different folder. > yes, it should work in a different folder. Since it's a pure CMD command > line app, there's no reason why not - it's just that the "real" system32 is > hidden from a 32-bit app. (you could even get away with simply copying it to > the SYSWOW64 folder, I'm sure. Or get really smart and do a hard link, with > mklink.) > > -- > Charlie. > http://msmvps.com/xperts64 > http://mvp.support.microsoft.com/profile/charlie.russel > > > "Pedro CR" <pramilo(a)n0.spam.sapo.pt> wrote in message > news:eaeybldjIHA.4940(a)TK2MSFTNGP02.phx.gbl... > > > Submitted via EggHeadCafe - Software Developer Portal of Choice > BizTalk Configure and Send SMTP Mail Based on Message Within an Orchestration > http://www.eggheadcafe.com/tutorials/aspnet/4e9e7c92-1279-4fdb-8631-a2f309a021c2/biztalk-configure-and-sen.aspx
|
Pages: 1 Prev: Share Default Gateway Next: Companyweb has gone missing from SBS 2008 Standard SP2, Sharepoint |