Zoom7000 Posted July 14, 2005 Share Posted July 14, 2005 I've got 2 types of computers on my network:HP DC7100Intel Pentium 4 - 3.0Ghz, 800Mhz FSB512Mb RAM80Gb Hard DriveBroadcom Network AdaptorIntel Graphics ChipsetIBM ThinkCentre 8189Intel Pentium 4 - 2.8Ghz, 800Mhz FSB512Mb RAM80Gb Hard DriveIntel Pro/100 VE Network AdaptorIntel Graphics ChipsetThe problem I'm having is that the computers are falling asleep either during the RIS or after the RIS has completed and when SMS (System Management Server) is deploying applications.Is there a way that I can disable hibernation and the computer from going to sleep in the risntdrd.sif file and stop/disable the PC's from ever going to sleepZoom7000 Link to comment Share on other sites More sharing options...
Martin Zugec Posted July 14, 2005 Share Posted July 14, 2005 Heh, I had the same problem (every non-interactive installations act this way). Solution:1.) Create directory in distribution point ($$\NotSleep in my case).2.) Copy instsrv.exe and srvany.exe from resource kit there3.) Create batch file NotSleep.bat:Set strInstallPath=%~dp0If "%1" EQU "" Goto :EOFIf "%1" EQU "/install" Goto:InstallIf "%1" EQU "/uninstall" Goto:UninstallGoto:EOF:Install"%strInstallPath%instsrv.exe" DoNotSleep "%strInstallPath%srvany.exe"reg add HKLM\System\CurrentControlSet\Services\DoNotSleep /v Type /t REG_DWORD /d 272 /freg add HKLM\System\CurrentControlSet\Services\DoNotSleep\Parameters /v Application /d %strInstallPath%NotSleep.exe /fnet start DoNotSleepGoto:EOF:Uninstallcd ..net stop DoNotSleep"%strInstallPath%instsrv.exe" DoNotSleep REMOVErmdir /s /q %WinDir%\NotSleepGoto:EOF4.) Create AutoIt script NotSleep and compile it:$strEnd = 0Do Send ( "{SCROLLLOCK toggle}" ) Sleep (10000)Until $strEnd = 1Now at RunOnceEx install this (NotSleep.bat /install) and at last SMS package uninstall it (NotSleep.bat /uninstall) Link to comment Share on other sites More sharing options...
Zoom7000 Posted July 14, 2005 Author Share Posted July 14, 2005 Thanks for that, 1 question though, how do I compile the AutoIt script? Link to comment Share on other sites More sharing options...
Martin Zugec Posted July 14, 2005 Share Posted July 14, 2005 www.hiddensoft.com - download autoit, right click on file and select Compile. Or easier way - download attached .exe file NotSleep.exe Link to comment Share on other sites More sharing options...
Zoom7000 Posted July 15, 2005 Author Share Posted July 15, 2005 (edited) Thanks for that, I ran the file, but I'm getting the following error:Line 1 (File "C:\NotSleep.exe"):MZMZ^ERRORError: Unable to parse line.EDIT: Oops! Forgot the instsrv.exe and srvany.exe file! Trying again! Edited July 15, 2005 by Zoom7000 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