Enable setting password. Some EXITCODE for api<->control checking.

This commit is contained in:
2019-06-17 14:02:50 +02:00
parent 746765a146
commit f5c4f59263
6 changed files with 96 additions and 52 deletions

View File

@@ -9,7 +9,7 @@ $UUID=(get-wmiobject Win32_ComputerSystemProduct).UUID
$exists = Invoke-RestMethod -Method Get -Uri "$server/get/computerexists?ComputerName=$computerName&UUID=$UUID"
if ($exists.Result -eq "ERROR"){
if ($exists.EXITCODE -eq '1'){
if ($exists.EXITCODE -eq '3'){
Write-Host "Computer outside database:" $computerName
}else{
Write-Host "Computer and UUID of $computerName doesn't match"