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 7
February 29th, 2020

My slides from Microsoft Ignite The Tour: The grand tour of data protection with Microsoft 365

As promised during the event in Copenhagen, I’m sharing both my slides and my demonstration videos from my breakout session […]

February 28th, 2020

My slides from Microsoft Ignite The Tour: Do and don’t – on-boarding and end-user adoption of Microsoft 365

Thank you all for attending my session on Do and don’t – on-boarding and end-user adoption of Microsoft 365. As […]

February 13th, 2020

My slides from NIC 2020: Malware protection on Windows 10 using Hyper-V and OneDrive for Business

Thank you all for joining my session at the Nordic Infrastructure Conference (NIC) in Oslo. As promised (and always), here […]

November 8th, 2019

My slides from THR2037 – Microsoft Ignite 2019

It’s Friday and last day of Microsoft Ignite 2019 – still – a stronghold of geeks attended my last theater […]

November 8th, 2019

My slides from THR3032 – Microsoft Ignite 2019

First of all – a big thank you to all who attended my session on Thursday. As promised, I’m uploading […]

August 21st, 2019

Blocking specific hardware manufacturers from corporate resources

Microsofts Senior Program Manager, Matt Shadbolt, recently confirmed that the company is working to more granular separate what devices and […]

August 2nd, 2019

Updates to AAD and O365 Naming policy

Although it’s been available through PowerShell for quite some time, the option for adding and editing naming policies in Azure AD

May 22nd, 2019

Get my slides from VeeamON Miami

Thank you all!

March 14th, 2019

Get my slides from ExpertsLive Cafe Bergen

It’s amazing to see how many attended the local ExpertsLive Café event in Bergen the 14th of march 2019. As […]

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 […]