Jump to content

streetmentioner

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

My Information

  • Agent Count
    Less than 100
  1. streetmentioner

    Script for work station Power Settings

    You can import, export, and change power plans in scripts with powercfg.exe https://docs.microsoft.com/en-us/windows-hardware/design/device-experiences/powercfg-command-line-options Here's something I have done in the past for "always on" devices: Create a custom power plan on a reference machine Export it and grab the file it creates Throw the .pow file on your LTShare\Transfer folder Use an LT script to download and install it I haven't tried it but you should be able to monitor for your customer power plan as well. Here's the batch file I wrote to check and see if it's already installed, then install it if not, then set it active:. Note that your GUID and (PowerPlanName) will differ from mine :: Set Power Settings :: Note: custom power profile should be copied in seperate step. powercfg /h OFF @echo off :: Latest power plan with GUID and alias SET custpow=Power Scheme GUID: 2d1fe04b-0337-4faa-b642-116054518679 (AlwaysOn-v1) :: Test if latest power plan is installed, install if not powercfg /list | findstr /c:"%custpow%" > nul IF ERRORLEVEL 1 ( ECHO Installing Custom Power Scheme powercfg /import c:\utils\power\alwayson-v1.pow 2d1fe04b-0337-4faa-b642-116054518679 ECHO ) ELSE ( ECHO Custom Power scheme already installed ) :: Test if latest power plan is active, set active if not powercfg /getactivescheme | findstr /c:"%custpow%" > nul IF ERRORLEVEL 1 ( ECHO Setting Cust power scheme active powercfg /setactive 2d1fe04b-0337-4faa-b642-116054518679 ECHO ) ELSE ( ECHO Custom power scheme already active )
×