C#

C# Install SCCM Package on Client

I needed to be able to kick of an installation of a SCCM Package on a client from a C# windows form. I discovered the SDKClient WMI Namespace and am using the following code.

 

C# convert WMI DateTime to standard DateTime

WMI Dates and times are in DMTF datetime format. The following is the command to convert a given DMTF datetime to DateTime.

Microsoft Documentation

C# Start service on remote machine

Here is a simple method to start a service on a remote system using C#. Call the method using

Method will attempt to change the status and return the current Status

   

%d bloggers like this: