Step 2: Wrap the script in a function and connect to the remote server using a wmi module( wmi.connect_server). Include the remote administrator username and .