| TABLE 1: WMIC Verbs |
| Verb |
Sample Command |
Description |
| Assoc |
group where name= 'administrators' assoc |
Shows all the associations that the Administrators group has with the system. For example, Administrators group members and the drives that they own appear in the list of properties displayed. |
| |
os assoc |
Displays information about the OS and installed patches and hotfixes. |
| Create |
environment create name="progloc", username="wkst01\ ethanw",variablevalue= "%programfiles%\prog01" |
Adds a variable named Progloc and sets its value to a folder below the Program Files folder. For example, the sample command is adding this variable to the Ethanw user account on the WKST01 workgroup computer. |
| Delete |
environment where(name= "progloc") delete |
Deletes the Progloc environment variable. To avoid unintended deletions when testing a WMIC command that uses the Delete verb, use the /interactive:on global switch. You'll then be prompted to confirm each deletion. |
| Get |
partition get bootpartition, description, deviceid, bootable |
Returns the boot-partition Boolean (true or false), description string, and device ID properties of the partition alias. |
| Set |
path WIN32_USERACCOUNT where(name="user01") set disabled="true" |
Disables the User01 user account on a member server or workstation. |