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


1 2 3 6
January 1st, 2019

Congratulations 2019 Windows Insider MVP!

In addition to my fifth year as a Microsoft MVP, I’m truly honored to receive the award for Windows Insider […]

October 28th, 2018

Get my script from TechDays Sweden

A big thank you for attending Olav and mine session during TechDays Sweden. As promised (though late), here is the script I demoed

October 18th, 2018

My slides and videos from Cloud Camp Dublin

My slides and videos from Cloud Camp Dublin

September 26th, 2018

Slides and extras from my session @ Ignite 2018

A stunning 1100 Ignite participants had signed up for my session – Windows 10: Stories from the field – Onboarding […]

September 25th, 2018

My Slides; Innofactor Gnist Bergen

First of all, I would like to thank each and every one of you who attended my session at Innofactor […]

June 7th, 2018

My Slides; Innofactor Gnist

Thank you for your engagement and enthusiasm during Gnist

March 27th, 2018

Guide: Retrofit your Office 365 groups- and Teams name

Needless to say, creative naming of Groups and Team sites is a never-ending story. This guide, however, let you retrofit the name of those badly named groups

February 4th, 2018

Get my slides from NIC Future Edition 2018

Like always, NIC is one of the most awesome conferences with speakers from the entire world and a technical level […]

January 4th, 2018

Congratulations – Microsoft OneDrive Expert (MODE) member

Congratulations and welcome as a charter member to the Microsoft OneDrive Expert (MODE) program. You have been identified as one of the top IT pro influencers in the world due to your knowledge and impact on the IT pro community around Microsoft technologies.

November 24th, 2017

Get AirServer for Xbox One (Black Friday discount)

Turn your Xbox One into a Apple TV