public void TurnOffComputerPower(string ComputerName, string PassWord) { //check that password is valid //if (PassWord != remoteShutDownPassword) //{ // throw new Exception("invalid password for shutdown"); //} // RemotePowerControl.shutDownRemoteComputer(ComputerName); RemotePowerControl.shutDownRemoteComputer(ComputerName); }
public void TurnOnComputerPower(string MacAddress, string SubNet) { RemotePowerControl.wakeUpComputer(MacAddress, SubNet); }