You can easily disable the MSiSCSI service with this simple line: $ret = Set-Service MSiSCSI -Status Stopped -StartupType Disabled if (!$?) {write-host (“Warning: $($error[0])”)} Else {write-host (“Successfully disabled Microsoft iSCSI Initiator Service (MSiSCSI)”)}