Skip to main content

WMIC – How to test WMI on a remote machine?

I was recently searching for a quick way of testing the WMI on remote machine. Apparently you can accomplish this task by using PowerShell or VBScript etc. However there seems to be much easier way. The Windows Management Instrumentation Command (WMIC) perfectly fits here. Following command allows checking the state of Server service on a […]

Read More

Script Event log creation

How to script Log Event creation? … By default the vbscript does not allow to log events with custom Source or custom Event ID; however the command line tool eventcreate does it.   Please find default and custom way of writing in Event Viewer log. ‘ ############ Event Types for LogInEV_A ‘ Ref: http://technet.microsoft.com/en-us/library/ee156617.aspx Const […]

Read More