Jump to content

Recommended Posts

Posted

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.cmd

CLS 
@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
EXIT

NTAPM.cmd

cls
@echo off
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ApmActive" /VE /F > NUL
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ApmActive" /V "Active" /T REG_DWORD /D 00000001 /F > NUL
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Enum\ROOT\NTAPM" /F > NUL
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Enum\ROOT\NTAPM\0000" /F > NUL
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\Current\System\CurrentControlSet\Enum\ROOT\NTAPM" /F > NUL
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\Current\System\CurrentControlSet\Enum\ROOT\NTAPM\0000" /F > NUL
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ApmActive" /F > NUL
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ApmActive" /V "Active" /T REG_DWORD /D 00000001 /F > NUL
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\ROOT\NTAPM" /F > NUL
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\ROOT\NTAPM\0000" /F > NUL
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Enum\ROOT\NTAPM" /F > NUL
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Enum\ROOT\NTAPM\0000" /F > NUL
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\NTAPM\0000\Control" /V "ActiveService" /D "NtApm" /F > NUL
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\NTAPM\0000\Control" /V "ActiveService" /D "NtApm" /F > NUL
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\NTAPM\0000" /V "ConfigFlags" /T REG_DWORD /D 00000000 /F > NUL
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\NTAPM\0000" /V "ConfigFlags" /T REG_DWORD /D 00000000 /F > NUL
exit

and 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 mark

hope this helps some of you guys

Lee


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...