Re: Config Manager 07 and updates / Scripting Question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



go ahead and copy the shutdown.exe from an XP machine and move it into the
package then call it again, I would just call it directly "shutdown.exe ...."
instead of placing it in a .bat file. Or if you want you can create a
package (without source files) and point it towards the shutdown.exe located
on the system. Device not ready means it is either trying to shutdown or
login is in an invalid state:

http://support.microsoft.com/default.aspx/kb/816938

We use this method so I know it works. But it did take a bit to get it all
working in harmony.

--
-----------------------
http://sms-hints-tricks.blogspot.com/


"Dan" wrote:

Tried the shutdown.exe in a bat file and I get a "device not ready" when the
script runs while the user is logging out.

"Dan" wrote:

I don't want them to have to reboot everytime they log off only when needed.
Time is money as they say and people waiting for PCs to finish rebooting when
it is unnecessary is a waste of time. I'm goign to try having it call a bat
file with your shutdown.exe in it I tried calling the shutdown.exe from a vbs
script but I got the same results I'll let you know how I make out.

Thanks.

"Kim Oppalfens [MVP]" <""Kim dot Oppalfen" wrote:

Matthew Hudson wrote:
We have something similar... to perform the restart we just use the shutdown
command.


shutdown.exe -r -f -t 300 -c "Restart required for software update"


Set the script to run at logoff....
good luck...
The hell with the entire clever searching for whether a reboot is
required at all, just reboot anyhow. Not sure whether that is actually
what he was looking for, but it will definitely work.

Sometimes being smart is just using a solution that will get the job
done. :-)

--
"Everyone is an expert at something"
Kim Oppalfens - Sms Expert for lack of any other expertise
Windows Server System MVP - SMS
http://www.blogcastrepository.com/blogs/kim_oppalfenss_systems_management_ideas/default.aspx

.



Relevant Pages

  • Re: Config Manager 07 and updates / Scripting Question
    ... Tried the shutdown.exe in a bat file and I get a "device not ready" when the ... script but I got the same results I'll let you know how I make out. ... The hell with the entire clever searching for whether a reboot is ... Kim Oppalfens - Sms Expert for lack of any other expertise ...
    (microsoft.public.sms.misc)
  • Re: WMI and Joining Domain (sysprep related)
    ... > Just keep in mind that you have to rename the computer and reboot before you ... > use a script to automaticaly generate a sysprep.inf file that includes ... Dim sps_barcode,Flag,ExtraMsg ... '' Get workstation BIOS info for oeminfo '' ...
    (microsoft.public.scripting.vbscript)
  • RE: make world : did it fail?
    ... I know from the script output that the buildworld and buildkernel succeeded. ... The only step that is suspect is the installkernel. ... It reported the unpatched kernel. ... When I heard the computer reboot (it's sitting ...
    (freebsd-questions)
  • Installation of software, and security. . .
    ... installation in Windows and various package managers. ... A setup.exe program coded by some third party such as Real Networks ... A .msi Microsoft Installer package is unpacked, and a script coded by ...
    (Bugtraq)
  • Re: goto &Package::func destroying @_?!
    ... >>script, but maybe the description will trigger something from someone.... ... code the 'Core' package uses another package as a base that has a custom ... package Foo; ... if it really is a problem with goto&. ...
    (comp.lang.perl.misc)