List

Every now and then I get these questions regarding power management, sluggish performance in general. As a cheat-sheet, I’ve come up with this PowerShell script that gives you all you need in one run

First, open PowerShell as administrator, and set your execution policy to unrestricted by running this command:

Set-ExecutionPolicy Unrestricted

Then, type the following and run:

cd $env:userprofile\Desktop

$A = gwmi win32_bios | fl SerialNumber
$A += gwmi Win32_PnPSignedDriver | ?{$_.DeviceName -like “*surface*”} | Select DeviceName, DriverVersion, IsSigned
$A | Out-File $env:computername-driverlist.txt

powercfg -batteryreport -output $env:computername-batteryreport.html

The reports will appear as two files on the administrators accounts desktop, one .txt and one .html for reviewing, both with you device name as ID.

Now, of course, if you run this on a device not being a Surface, you must remove the *Surface* in the second line. Also, if you want the files to be stored somewhere else than your administrators desktop – feel free to edit as you please. Ideas or comments? Please comment or give me a heads-up

  • Alex

  Posts

1 2 3 5
November 24th, 2017

Get AirServer for Xbox One (Black Friday discount)

Turn your Xbox One into a Apple TV

October 25th, 2017

Get our slides from TechDays 2017

First of all, I would like to thank you each and every one of awesome people for joining Olav and mine sessions at TechDays 25th of October in Stockholm

September 1st, 2017

CB or CBB for your clients?

Patch management is more important than ever and sometimes you might end up with questions like “what is the difference between CB and CBB – and how many days should I defer?”

August 10th, 2017

Say hello to the new PowerShell Module Browser

Ever since I started scripting and programming, features like “Get-Help” and javadoc have been my lifesaver – now I welcome a new tool: PowerShell Module Browser

July 12th, 2017

Meet me at TechDays Stockholm

I am honored to be invited to TechDays as a speaker for the third time. For those of you who […]

February 3rd, 2017

Get my slides from NIC 2017

For those who could, and those who couldn’t join my sessions – here are my slides

January 27th, 2017

Use PowerShell to generate driver- and batteryreport

Every now and then I get these questions regarding power management, sluggish performance in general. As a cheat-sheet, I’ve come up with this PowerShell script that gives you all you need in one run

January 16th, 2017

Join my sessions at NIC – Nordic Infrastructure Conference 2-3. feb.

Regardless of how many presentations I’ve had, there are always a line of questions to be answered when the session is over. One of my sessions are for you: Ask me anything!

January 1st, 2017

Congratulations 2017 Microsoft MVP!

For the fourth year, I’m truly honored to recieve the highest recognized award for ITpros.

December 18th, 2016

Resolving Modern Device Issues for SMBs

For many SMBs, modern device management have proven to give some challenges, as the devices just like other areas of the tech industry have been moving forwards