devil270975 Posted October 28, 2003 Posted October 28, 2003 Hi there Guys and Gals, If anyone has an older p.c that that does not auto power down after shutdown and you are sick of having to go to system properties to enable NTAPM then here is the answer.cmdlines.txt[COMMANDS] ".\Setup.cmd"setup.cmdCLS @ECHO OFF NET USER Lee /ADD NET LOCALGROUP "Administrators" Lee /ADD NET LOCALGROUP "Users" Lee /DELETE START "HOTFIXES" /WAIT %systemdrive%\Install\Hotfixes.cmd START "UPDATE" /WAIT %systemdrive%\Install\Update.cmd START "REGISTRY" /WAIT REGEDIT /s %systemdrive%\Install\HKLM.reg START "REGISTRY" /WAIT REGEDIT /s %systemdrive%\Install\Services.reg START "NTAPM" /WAIT %systemdrive%\Install\NTAPM.cmd EXITNTAPM.cmdcls@echo offREG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ApmActive" /VE /F > NULREG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ApmActive" /V "Active" /T REG_DWORD /D 00000001 /F > NULREG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Enum\ROOT\NTAPM" /F > NULREG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Enum\ROOT\NTAPM\0000" /F > NULREG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\Current\System\CurrentControlSet\Enum\ROOT\NTAPM" /F > NULREG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\Current\System\CurrentControlSet\Enum\ROOT\NTAPM\0000" /F > NULREG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ApmActive" /F > NULREG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ApmActive" /V "Active" /T REG_DWORD /D 00000001 /F > NULREG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\ROOT\NTAPM" /F > NULREG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\ROOT\NTAPM\0000" /F > NULREG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Enum\ROOT\NTAPM" /F > NULREG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Enum\ROOT\NTAPM\0000" /F > NULREG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\NTAPM\0000\Control" /V "ActiveService" /D "NtApm" /F > NULREG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\NTAPM\0000\Control" /V "ActiveService" /D "NtApm" /F > NULREG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\NTAPM\0000" /V "ConfigFlags" /T REG_DWORD /D 00000000 /F > NULREG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\NTAPM\0000" /V "ConfigFlags" /T REG_DWORD /D 00000000 /F > NULexitand that is all there is to it, i tried it with a simple reg file and it wont work, and it needs to done before log on otherwise it says access denied, so it needs to be done at the 13min markhope this helps some of you guysLee
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