New
#1
Powercfg windows 7
Ok i have a question I am trying to write a script that will import and set the active power scheme in windows 7
here is my script
@echo off
Echo This script will install the power settings for a system Imaged with Windows 7
if /I "%computername:~0,6%"=="Computername" goto :2
:2
Net Use V: "Server share"
copy "v:\configs\Laptoppowerw7.pow" C:\
powercfg import "c:\LaptopPowerW7.pow" 0016fea0-3f62-009a-5e28-25007c219azz
Powercfg /setactive 0016fea0-3f62-009a-5e28-25007c219azz
powercfg -changename 0016fea0-3f62-009a-5e28-25007c219azz "Laptops Windows 7"
del c:\Laptoppowerw7.pow
net use r: /delete /yes
net use v: /delete /YES
exit
:1
Net Use V: "server share"
copy "v:\configs\desktopW7.pow" C:\
powercfg import "c:\desktopw7.pow" 0016fea0-3f62-009a-5e28-25007c219azz
Powercfg /setactive 0016fea0-3f62-009a-5e28-25007c219azz
powercfg -changename 0016fea0-3f62-009a-5e28-25007c219azz "Desktop Windows 7"
del c:\desktopw7.pow
net use r: /delete /yes
net use v: /delete /YES
exit
Can you name the GUID in windows 7? In a nutshell I want the imported scheme from the file to have this GUID 0016fea0-3f62-009a-5e28-25007c219azz
but everytime I import the file the GUID is diffrent which ruins the rest of the batch file
Thanks for any help