======Microsoft - Scripting - WMI======
=====StdRegProv Methods Return Codes=====
* 0 for success \\
* 1 for key read with no default value
* 2 for key not found
* 6 for invalid hive
Source:[[http://www.eggheadcafe.com/software/aspnet/29903468/trying-to-read-a-registry-value-dword.aspx|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:[[http://technet.microsoft.com/en-us/library/bb742610.aspx|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