How to obtain user account settings on Windows 7 – The Visual Guide
User account settings are easily obtainable on Windows 7 using the wmic command line syntax. Here we go.
Step 1- Run a Cmd prompt with admin rights
Step 2 – Command line Syntax
wmic useraccount list brief
Step 3 – Format the output into a html file
wmic /output:c:\test.html useraccount list brief
Step 4 – View results in your browser
Step 5 – Do this again with the syntax for full user account info
wmic useraccount list full
wmic /output:c:\test1.html useraccount list full
Use your browser to view test1.html
Step 6 – Explore other commands
wmic computersystem list brief
wmic computersystem list full
wmic sysaccount list brief
Sysaccount provides detailed information on all user and groups, including the built-in accounts. In a domain, use
wmic ntdomain list brief
Now lets go panning for gold….
wmic service list brief
wmic process list brief
wmic startup list brief
wmic register list full
wmic nteventlog list brief – this reveals the log directories in use
wmic os list brief
Step 7 – Kill running applications
Now let’s get evil!
1. Launch calculator.exe
wmic process where (name = ‘calc.exe’) delete
If you’re not in the US – there’s a bug that affects output for wmic. You need to change to US-EN and reboot. Winge… like it’s our language dude, what do you mean it doesn’t work in British English!!
wmic computersystem list full / format:table
wmic computersystem list full / format:list
wmic computersystem list full / format:csv
wmic computersystem list full /format:xml
wmic computersystem list full / format:hform
wmic computersystem list full / format:htable
wmic /output:c:\users\smile\documents\test3.html useraccount list brief /format:hform
I am mortified to tell you that the rumours regarding the US English options are true. The CSV and HTML does work – providing your language options are set to US EN.
Start > Control Panel > Region and Language
Suddenly all the CSV and HTML formatting works.
ummmh, the html output is great.
Having to work with a US keyboard is not so great – as you lose currency symbols and regional character sets. You have to guess the symbols, but it looks pretty.