Slmgr Output To Text Format

February 15, 2025 by · Leave a Comment
Filed under: How To Output Slmgr to Text 

When running slmgr /dlv or slmgr /dvi, Windows will output the results as a popup graphic. If you would like have the data in text form, here are 2 methods. One is for Powershell and the other method is for DOS.

1) From Powershell (Admin) mode:

cscript //Nologo C:\Windows\System32\slmgr.vbs /dlv | Out-File -FilePath C:\slmgr_output.txt -Encoding utf8

This will output the results as text to the file C:\slmgr_output.txt.

2) From CMD(Admin) mode:

cscript //Nologo C:\Windows\System32\slmgr.vbs /dlv

This will output the data to the DOS window as text which you can copy and paste.