Jump to content

Recommended Posts

Posted

I've got 2 types of computers on my network:

HP DC7100

Intel Pentium 4 - 3.0Ghz, 800Mhz FSB

512Mb RAM

80Gb Hard Drive

Broadcom Network Adaptor

Intel Graphics Chipset

IBM ThinkCentre 8189

Intel Pentium 4 - 2.8Ghz, 800Mhz FSB

512Mb RAM

80Gb Hard Drive

Intel Pro/100 VE Network Adaptor

Intel Graphics Chipset

The 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 sleep

Zoom7000


Posted

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 there

3.) Create batch file NotSleep.bat:

Set strInstallPath=%~dp0

If "%1" EQU "" Goto :EOF
If "%1" EQU "/install" Goto:Install
If "%1" EQU "/uninstall" Goto:Uninstall
Goto:EOF

:Install
"%strInstallPath%instsrv.exe" DoNotSleep "%strInstallPath%srvany.exe"
reg add HKLM\System\CurrentControlSet\Services\DoNotSleep /v Type /t REG_DWORD /d 272 /f
reg add HKLM\System\CurrentControlSet\Services\DoNotSleep\Parameters /v Application /d %strInstallPath%NotSleep.exe /f
net start DoNotSleep
Goto:EOF

:Uninstall
cd ..
net stop DoNotSleep
"%strInstallPath%instsrv.exe" DoNotSleep REMOVE
rmdir /s /q %WinDir%\NotSleep
Goto:EOF

4.) Create AutoIt script NotSleep and compile it:

$strEnd = 0
Do
Send ( "{SCROLLLOCK toggle}" )
Sleep (10000)
Until $strEnd = 1

Now at RunOnceEx install this (NotSleep.bat /install) and at last SMS package uninstall it (NotSleep.bat /uninstall)

Posted (edited)

Thanks for that, I ran the file, but I'm getting the following error:

Line 1 (File "C:\NotSleep.exe"):

MZ
MZ^ERROR

Error: Unable to parse line.

EDIT: Oops! Forgot the instsrv.exe and srvany.exe file! :lol: Trying again!

Edited by Zoom7000

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...