Admin Wmic
Admin Wmic
mof(Phase Error - 3) , mof error corruption 2 Determine user currently logged in remotely 3 For a text file of the manual run 4 Remotely list startup apps 5 Reboot or Shutdown a box 6 Kill a process use with care 7 Get OS Information and export to CSV, html, xsl, mof 8 List running processes and output to HTML/XSL form. 9 Query Device Driver Status 10 Get a list of NICs and IPs in use 11 Remotely change the IP to a static IP (Index is Interface#) 12 Remotely change IP to use DHCP 13 Remotely Display machines MAC Address 14 Get Process Owner or OwnerSID 15 Remotely list running processes every second 16 Delete ARPCache 17 System Information o 17.1 Remotely display System Info o 17.2 Full Drive Info o 17.3 Bios Info o 17.4 List all Hotfixes and Services Packs o 17.5 List HotfixID, description and Install date o 17.6 Remotely List Local Enabled Accounts o 17.7 Start a service o 17.8 Change startup mode for a service o 17.9 List Services with brief description o 17.10 List useraccounts o 17.11 Enable RDP o 17.12 List ShadowCopy Info o 17.13 List Event Logs o 17.14 Remotely output Logon Events to a html file o 17.15 List number of times a user logged on
o
WMIC not working, rpc server unavailable, Cli.mof(Phase Error - 3) , mof error corruption
sc \\remotemachine stop winmgmt and it's needed deps rename remotemachine's c:\windows\system32\wbem\repository sc \\remotemachine start winmgmt psexec \\remotemachine cmd.exe reg add "hkcu\Environment" /v PROCESSOR_ARCHITECTURE /t REG_SZ /d x86
Test wmic
wmic process list brief
Query this status on all machines in the domain. You have all the machines in the domain in a text file
wmic /node:"@targets.txt" /output:savrt.csv sysdriver where name="savrt" list status /format:csv
Delete ARPCache
netsh int ip delete arpcache
System Information
Remotely display System Info
wmic /node:machinename computersystem list full
Bios Info
wmic bios list full
Start a service
wmic /node:machinename 4 service lanmanserver CALL Startservice
List useraccounts
wmic useraccount wmic useraccount list brief
Enable RDP
wmic /node:"machinename 4" path Win32_TerminalServiceSetting where AllowTSConnections=0 call SetAllowTSConnections 1
Display Shares
wmic share list brief