|
da questo dispositivo ha anche altre istruzioni :
Facilità d'uso
Script de ejemplo
Esta sección proporciona un script de ejemplo que muestra cómo usar la línea de comandos ImportPowerPlan
y la línea de comandos ControlPowerPlan en el script de inicio de sesión.
PowerPlanDeployment.bat
@ECHO OFF
SETLOCAL
IF .%PROCESSOR_ARCHITECTURE%.==.x86. (
SET PMDllName=PWMTR32V.DLL
SET PMREG_INFO="HKEY_LOCAL_MACHINE\SOFTWARE\Lenovo\PWRMGRV\InstallInfo"
SET PMREG_PATH="HKEY_LOCAL_MACHINE\SOFTWARE\Lenovo\PWRMGRV\Path"
) ELSE (
SET PMDllName=PWMTR64V.DLL
SET PMREG_INFO="HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\InstallInfo"
SET PMREG_PATH="HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\Path"
)
FOR /F "tokens=1,2*" %%i in ('reg query %PMREG_INFO% /v "PWRMGRVersion"' ) DO (
IF "%%i"=="PWRMGRVersion" (
SET PM_Version=%%k
)
)
FOR /F "tokens=1-3 delims=." %%i in ('echo %PM_Version%') DO (
SET PM_MAJORVER=%%i
SET PM_MINORVER=%%j
)
FOR /F "tokens=1,2*" %%i in ('reg query %PMREG_PATH% /ve' ) DO (
SET PM_INSPATH=%%k
)
IF %PM_MAJORVER% NEQ 8 (
IF %PM_MAJORVER% NEQ 6 goto END
IF %PM_MINORVER% LSS 60 goto END
)
SET PMDllPath=%PM_INSPATH%\%PMDllName%
SET PMDllPath=%PM_INSPATH%\%PMDllName%
IF NOT EXIST "%PMDllPath%" GOTO END
SET SharedFile=\\win-chim5mob2rb\Share\ppd_plan.ini
SET ImportFile=%TMP%\ppd_plan.ini
SET ImpResultFile=%TMP%\ppd_imp_result.txt
SET CtlResultFile=%TMP%\ppd_ctl_result.txt
COPY "%SharedFile%" "%TMP%"
RUNDLL32.EXE "%PMDllPath%",ImportPowerPlan -p "%ImportFile%" -u 20130601 -a > "%ImpResultFile%"
FOR /F "tokens=1,2 delims=:" %%1 IN (%ImpResultFile%) DO (
@ECHO %%1 : %%2
IF .%%2.==.Error. SET IMPERROR=TRUE
)
IF .%IMPERROR%.==.TRUE. goto ERROR_IMP
RUNDLL32.EXE "%PMDllPath%",ControlPowerPlan -InhibitCreate Enable -InhibitSwitch Enable > "%CtlResultFile%"
FOR /F "tokens=1,2 delims=:" %%1 IN (%CtlResultFile%) DO (
@ECHO %%1 : %%2
58
Guía de despliegue de Power Manager
... Questo manuale è adatto anche per i modelli :
Notebook - ThinkPad Edge 13 (408.64 kb)
Notebook - ThinkPad Edge 14 (408.64 kb)
Notebook - ThinkPad Edge 15 (408.64 kb)
Notebook - ThinkPad Edge E10 (408.64 kb)