The items listed here are a combination of commands and findings that have either saved me countless hours or spent considerable effort in finding.
I use this site as a quick reference to lookup information whilst on site, and by publishing it hope to return the favour to many sites I have referenced over the years.

Wednesday, April 16, 2008

Find the Serial number of a computerwmic /node:WSNAME1 path win32_computersystemproduct get identifyingnumberwmic /node:WSNAME1 csproduct get identifyingnumberQuery Active Directory using WMIWMIC /NAMESPACE:\\root\directory\ldap PATH ds_user WHERE ds_cn="user1" GET ds_department /VALUEIssue: WMIC returns error "Invalid Global Switch."Cause: This is caused by the computer name containing the "-" special character.Workaround:Enclose the computer name with double quotes.

Categories

Note that posts on this site are provided “as is” with no warranty nor supportability engagement. Before using any of the information contained on this site you should evaluate its suitability and impact to your computing situation. If you are unsure seek professional Information Technology assistance.