Table of Contents

Microsoft - Scripting - WMI

StdRegProv Methods Return Codes

Source:eggheadcafe - trying to read a registry value DWORD

wmic.exe

Get the manufacturer and model of the local computer.

wmic COMPUTERSYSTEM Get Manufacturer,Model

See also:TechNet - WMIC - Take Command-line Control over WMI

Disable password expiration on an account

Disable password expiration on the local Administrator account:

"%SYSTEMROOT%\system32\wbem\wmic.exe" useraccount where "name='Administrator'" set PasswordExpires=FALSE