abdul
Goto Top

Power Management Windows XP

per Reg oder GPO

Hallo,

ich habe mich im Internet wirklich fast totgesucht, aber leider nichts funktionierendes finden können, vllt. könnt ihr mir ja helfen!

Es geht um folgendes Problem:

Nachdem ein Windows XP auf einem Notebook installiert, sind die Powerschemtatas für uns sehr "unpraktisch". Ich möchte als Standardeinstellung nicht "Portable/Laptop" haben, sondern "Always on" haben, d.h. egal welcher User sich anmeldet, er soll als Energieschema "Always on".

In den GPOs habe ich leider nichts finden können ... face-sad

In der Reg. habe ich unter HKEY_USERS\.DEFAULT\Control Panel\PowerCfg zwar eine Einstellungsmöglichkeit gefunden, die aber partout nicht funktioniert, egal ob sich ein neuer oder alter User anmeldet.
Ändere ich das ganze unter HKEY_CUSER funzt es...aber dann habe ich es ja nur benutzerbezogen ... ??? *denk*

Desweiteren möchte ich die Advanced Settings ändern, denn im Moment ist es so, wenn der Monitor runtergeklappt wird, geht das Notebook schlafen...auch blöd! Ich möchte, dass nichts passiert! Hierzu habe ich leider auch noch nichts gefunden!

Vielen Dank für die Hilfe,

Gruss AbDuL

http://www.longimanus.org ^^

Content-ID: 41835

Url: https://administrator.de/contentid/41835

Ausgedruckt am: 22.11.2024 um 18:11 Uhr

DEDINCA
DEDINCA 10.10.2006 um 14:21:41 Uhr
Goto Top
Ich habe hier etwas zusamengebastelt. VORSICHT ZUERST IN EINER TESTUMGEBUNG TESTEN. Die Nutzung erfolgt auf eigene Gefahr
Den Text einfach in eine "Datei.ADM" speichern und in einer GPO als Administrative Vorlage einfügen.

Text Anfang:

#if version <= 2

CLASS USER

CATEGORY !!GPOnly

POLICY !!GPOnlyPolicy
KEYNAME "Software\Policies"

PART !!GPOnly_Tip1 TEXT
END PART

PART !!GPOnly_Tip2 TEXT
END PART

PART !!GPOnly_Tip3 TEXT
END PART

PART !!GPOnly_Tip4 TEXT
END PART

PART !!GPOnly_Tip5 TEXT
END PART
END POLICY

END CATEGORY

CLASS MACHINE

CATEGORY !!GPOnly

POLICY !!GPOnlyPolicy
KEYNAME "Software\Policies"

PART !!GPOnly_Tip1 TEXT
END PART

PART !!GPOnly_Tip2 TEXT
END PART

PART !!GPOnly_Tip3 TEXT
END PART

PART !!GPOnly_Tip4 TEXT
END PART

PART !!GPOnly_Tip5 TEXT
END PART
END POLICY

END CATEGORY


#endif


#if version >= 3
;;;;;;;;;; Machine ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

CLASS MACHINE
; HKEY_LOCAL_MACHINE\SOFTWARE\Policies\DEDINCA\EZ_GPO

CATEGORY !!EZ_GPO
; Base Options
POLICY !!BASE_CFG
KEYNAME "Software\Policies\DEDINCA\EZ_GPO"
EXPLAIN !!BASE_CFG_EXP
PART "Power Management Settings Schema" DROPDOWNLIST REQUIRED
VALUENAME "SettingsScheme"
ITEMLIST
NAME !!SettingsSchemeSimpleIndex VALUE "Simple" Default
END ITEMLIST
END PART
PART "Power Management Settings Schema Major Version" NUMERIC REQUIRED
VALUENAME "MajorVersion"
DEFAULT 2
MIN 1
MAX 100
END PART
PART "Power Management Settings Schema Minor Version" NUMERIC REQUIRED
VALUENAME "MinorVersion"
DEFAULT 0
MIN 0
MAX 99
END PART
PART "Control Variable [Do Not Modify]" DROPDOWNLIST REQUIRED
VALUENAME "Control"
ITEMLIST
NAME "Control Variable [Do Not Modify]" VALUE "Verify"

Default
END ITEMLIST
END PART
END POLICY

; Log Options
POLICY !!OPTIONS
KEYNAME "Software\Policies\DEDINCA\EZ_GPO\Options"
EXPLAIN !!OPTIONS_EXP
; PART [!!]name PartType
; type-dependent data
; [KEYNAME KeyName ]
; VALUENAME ValueName
; END PART
; PART "Security Override" CHECKBOX
; VALUENAME "SecurityBypass"
; VALUEON NUMERIC 1 ;Security Override flag
; VALUEOFF NUMERIC 0
; END PART

PART "Force Standby to Be Set on All Machines" CHECKBOX
VALUENAME "ForceStandby"
VALUEON NUMERIC 1 ;Force Standby flag
VALUEOFF NUMERIC 0
END PART

; PART "Log flag to turn on logging" CHECKBOX
; VALUENAME "Log"
; VALUEON NUMERIC 1; Log Flag
; VALUEOFF NUMERIC 0
; END PART
; PART "Log Level" NUMERIC
; VALUENAME "LogLevel"
; DEFAULT 1
; MIN 0
; MAX 10
; END PART
; PART "Log Server" EDITTEXT
; VALUENAME "LogServer"
; DEFAULT "localhost"
; END PART
; PART "Log File" EDITTEXT
; VALUENAME "LogFile"
; DEFAULT "%TEMP%\EZ_GPO_log.txt"
; END PART

END POLICY
; Simple Scheme
POLICY !!SETTINGS_SCHEME_SIMPLE
KEYNAME "Software\Policies\DEDINCA\EZ_GPO\Simple"
EXPLAIN !!SETTINGS_SCHEME_SIMPLE_EXP
PART "AC No User Monitor Timeout" NUMERIC REQUIRED
VALUENAME "ACUserMonIdleTime"
DEFAULT 10
MIN 0
MAX 300
END PART
PART "AC No User System Standby Timeout" NUMERIC REQUIRED
VALUENAME "ACUserStandByIdleTime"
DEFAULT 15
MIN 0
MAX 300
END PART

;Uncomment to get this functionality
; PART "AC No User Hard Disk Spindown Timeout" NUMERIC REQUIRED
; VALUENAME "ACUserHDDspindownIdleTime"
; DEFAULT 5
; MIN 0
; MAX 300
; END PART

; Below segment is not used
; PART "AC Machine Standby Timeout" NUMERIC REQUIRED
; VALUENAME "ACMachStandByIdleTime"
; DEFAULT 20
; MIN 0
; MAX 300
; END PART
PART "AC No User Hibernate Timeout" NUMERIC REQUIRED
VALUENAME "ACMachHibernateIdleTime"
DEFAULT 30
MIN 0
MAX 300
END PART
PART "DC No User Monitor Timeout" NUMERIC REQUIRED
VALUENAME "DCUserMonIdleTime"
DEFAULT 2
MIN 0
MAX 300
END PART
PART "DC No User System Standby Timeout" NUMERIC REQUIRED
VALUENAME "DCUserStandByIdleTime"
DEFAULT 5
MIN 0
MAX 300
END PART

;Uncomment to get this functionality
; PART "DC No User Hard Disk Spindown Timeout" NUMERIC REQUIRED
; VALUENAME "DCUserHDDspindownIdleTime"
; DEFAULT 5
; MIN 0
; MAX 300
; END PART

PART "DC No User Hibernate Timeout" NUMERIC REQUIRED
VALUENAME "DCMachHibernateIdleTime"
DEFAULT 10
MIN 0
MAX 300
END PART
END POLICY
END CATEGORY ; EZ_GPO


;;;;;;;;; USER ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
CLASS USER
; HKEY_CURRENT_USER\Software\Policies\DEDINCA\EZ_GPO

CATEGORY !!EZ_GPO
; Base Options
POLICY !!BASE_CFG
KEYNAME "Software\Policies\DEDINCA\EZ_GPO"
EXPLAIN !!BASE_CFG_EXP
PART "Power Management Settings Schema" DROPDOWNLIST REQUIRED
VALUENAME "SettingsScheme"
ITEMLIST
NAME !!SettingsSchemeSimpleIndex VALUE "Simple" Default
END ITEMLIST
END PART
PART "Power Management Settings Schema Major Version" NUMERIC REQUIRED
VALUENAME "MajorVersion"
DEFAULT 2
MIN 2
MAX 99
END PART
PART "Power Management Settings Schema Minor Version" NUMERIC REQUIRED
VALUENAME "MinorVersion"
DEFAULT 0
MIN 0
MAX 99
END PART
PART "Control Variable [Do Not Modify]" DROPDOWNLIST REQUIRED
VALUENAME "Control"
ITEMLIST
NAME "Control Variable [Do Not Modify]" VALUE "Verify"

Default
END ITEMLIST
END PART
END POLICY

; Log Options
POLICY !!OPTIONS
KEYNAME "Software\Policies\DEDINCA\EZ_GPO\Options"
EXPLAIN !!OPTIONS_EXP
; PART [!!]name PartType
; type-dependent data
; [KEYNAME KeyName ]
; VALUENAME ValueName
; END PART
PART "Security Override" CHECKBOX
VALUENAME "SecurityBypass"
VALUEON NUMERIC 1 ;Security Override flag
VALUEOFF NUMERIC 0
END PART

PART "Force Standby to Be Set on All Machines" CHECKBOX
VALUENAME "ForceStandby"
VALUEON NUMERIC 1 ;Force Standby flag
VALUEOFF NUMERIC 0
END PART

; PART "Log flag to turn on logging" CHECKBOX
; VALUENAME "Log"
; VALUEON NUMERIC 1; Log Flag
; VALUEOFF NUMERIC 0
; END PART
; PART "Log Level" NUMERIC
; VALUENAME "LogLevel"
; DEFAULT 1
; MIN 0
; MAX 10
; END PART
; PART "Log Server" EDITTEXT
; VALUENAME "LogServer"
; DEFAULT "localhost"
; END PART
; PART "Log File" EDITTEXT
; VALUENAME "LogFile"
; DEFAULT "%TEMP%\EZ_GPO_log.txt"
; END PART

END POLICY
; Simple Scheme
POLICY !!SETTINGS_SCHEME_SIMPLE
KEYNAME "Software\Policies\DEDINCA\EZ_GPO\Simple"
EXPLAIN !!SETTINGS_SCHEME_SIMPLE_EXP
PART "AC User Monitor Timeout" NUMERIC REQUIRED
VALUENAME "ACUserMonIdleTime"
DEFAULT 10
MIN 0
MAX 300
END PART
PART "AC User System Standby Timeout" NUMERIC REQUIRED
VALUENAME "ACUserStandByIdleTime"
DEFAULT 15
MIN 0
MAX 300
END PART
PART "AC Machine Hibernate Timeout" NUMERIC REQUIRED
VALUENAME "ACMachHibernateIdleTime"
DEFAULT 30
MIN 0
MAX 300
END PART
PART "DC User Monitor Timeout" NUMERIC REQUIRED
VALUENAME "DCUserMonIdleTime"
DEFAULT 5
MIN 0
MAX 300
END PART
PART "DC User System Standby Timeout" NUMERIC REQUIRED
VALUENAME "DCUserStandByIdleTime"
DEFAULT 10
MIN 0
MAX 300
END PART
PART "DC Machine Hibernate Timeout" NUMERIC REQUIRED
VALUENAME "DCMachHibernateIdleTime"
DEFAULT 15
MIN 0
MAX 300
END PART

;Uncomment to get this functionality
; PART "AC User Hard Disk Spindown Timeout" NUMERIC REQUIRED
; VALUENAME "ACUserHDDspindownIdleTime"
; DEFAULT 5
; MIN 0
; MAX 300
; END PART

;Uncomment to get this functionality
; PART "DC User Hard Disk Spindown Timeout" NUMERIC REQUIRED
; VALUENAME "DCUserHDDspindownIdleTime"
; DEFAULT 5
; MIN 0
; MAX 300
; END PART

END POLICY
END CATEGORY ; EZ_GPO

#endif

[strings]
GPOnly_Tip1="The EZ_GPO.adm file you have loaded requires Group Policy"
GPOnly_Tip2="in Windows 2000. You cannot use the System Policy Editor"
GPOnly_Tip3="to display Windows 2000 Group Policy settings."
GPOnly_Tip4=" "
GPOnly_Tip5="Enabling or disabling this policy has no effect."
GPOnly="Unsupported Administrative Templates"
GPOnlyPolicy="EZ_GPO.adm"
EZ_GPO="DEDINCA.COM - EDV Beratung"
MONITOR_PM="PC Power Management"
BASE_CFG="Base Options"
BASE_CFG_EXP="These are the base configuration settings for the program to

function. You should enable this and choose all of the defaults unless you are sure

about what you are doing. See the documentation for more info."
OPTIONS="Options"
OPTIONS_EXP="The first option named Security Bypass (NB: User based only and not

found under the Computer Policy hive) directs the tool to bypass the hardcoded

restrictions placed on it to change power management settings. See the

documentation for more but it is only needed when users are of type user or guest.

Note, this is a safety override (like rm -f) and does not actually gives users of

insufficient rights, the ability to change PM settings. The second option, Force

Standby, overrides the default behavior of the tool which enables system standby on

machines capable of S3 (ACPI ver.2) or better. Enabling this option will allow the

tool to set standby on earlier ACPI and APM2 capable machines. This could be useful

for non Intel or laptop heavy environments since standby worked better on non S3

capable laptops as opposed to desktops.

;NB: Logging is experimental and should not be used in production. There are
; also 3 options for logging. The first is to turn on Logging capabilities.
; The second is the level of log detail. 0-10 is the valid
; range where 10 gives the most verbose output. The third is the file for
; logging purposes. This can contain shell expansions such
; as %TEMP%\EZ_GPO_Log.txt for example. See the documentation for more Info."

SettingsSchemeSimpleIndex="Simple Settings Scheme"
SETTINGS_SCHEME_SIMPLE="Simple Scheme"
SETTINGS_SCHEME_SIMPLE_EXP="This is the most basic Settings Scheme available. Each

setting can be set to a range of 0-300 minutes where 0 = 'Never'. NB: Hibernation

should be higher than System Standby or set to 0. It should never be equal to

System Standby."

Text Ende
DEDINCA
DEDINCA 11.10.2006 um 10:20:30 Uhr
Goto Top
Konntest Du damit was anfangen??
AbDuL
AbDuL 11.10.2006 um 15:43:07 Uhr
Goto Top
Hallo!
Danke für das Scripte! Ich habe es schon installiert...werde es allerdings erst in den nächsten Tagen ausprobieren...heute ist nen Server abgedampft...!
Vielen Dank schonmal!
AbDuL
AbDuL 19.10.2006 um 17:08:36 Uhr
Goto Top
Hallo,

vielen Dank für dieses Template! Funktioniert astrein face-smile

Danke face-smile