[Initial] setLogLevel=9 ExitOnError=True ScriptErrorMessages=on TraceMode=off StayOnTop=True [Actions] Message "Preparing..." DefVar $guid$ DefVar $guid_balanced$ DefVar $guid_high_performance$ DefVar $guid_powersave$ DefVar $name$ DefVar $ProductId$ DefVar $OS$ DefVar $TEMP$ DefVar $MinorOS$ DefVar $reset_to$ DefVar $reset_to_guid$ DefVar $monitor-timeout-ac$ DefVar $monitor-timeout-dc$ DefVar $disk-timeout-ac$ DefVar $disk-timeout-dc$ DefVar $standby-timeout-ac$ DefVar $standby-timeout-dc$ Set $reset_to$ = GetProductProperty ( "reset_to", "high_performance" ) Set $monitor-timeout-ac$ = GetProductProperty ( "monitor-timeout-ac", "0" ) Set $monitor-timeout-dc$ = GetProductProperty ( "monitor-timeout-dc", "5" ) Set $disk-timeout-ac$ = GetProductProperty ( "disk-timeout-ac", "0" ) Set $disk-timeout-dc$ = GetProductProperty ( "disk-timeout-dc", "20" ) Set $standby-timeout-ac$ = GetProductProperty ( "standby-timeout-ac", "0" ) Set $standby-timeout-dc$ = GetProductProperty ( "standby-timeout-dc", "30" ) set $ProductId$ = "Windows Config Power-Managment" set $OS$ = GetOS Set $TEMP$ = "C:\tmp" set $MinorOS$ = GetNTVersion Set $guid_balanced$ = "381b4222-f694-41f0-9685-ff5bb260df2e" Set $guid_high_performance$ = "8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c" Set $guid_powersave$ = "a1841308-3541-4fab-bc81-f71556f20b4a" Set $name$ = "FAW gGmbH" Set $guid$ = "261d4290-da21-4fac-9f63-309ed29cdcf3" ShowBitmap "%scriptpath%\pow_cnfg.png" $ProductId$ sub "%ScriptPath%\delsub.ins" Message "Import: " + $name$ + " (" + $guid$ + ")" Files_copy_data WinBatch_Import Files_delete_data Message "Set Active: " + $name$ + " ( " + $guid$ + ")" WinBatch_set_active Message "Finnished" [Files_copy_data] copy "%scriptpath%\$name$.pow" "$TEMP$" [Files_delete_data] delete -f "$TEMP$\$name$.pow" [WinBatch_Import] powercfg -IMPORT "$TEMP$\$name$.pow" $guid$ [WinBatch_set_active] powercfg -SETACTIVE $guid$