Skip to content

Commit c0aa436

Browse files
committed
pridan radek "set-executionpolicy bypass", ktery automaticky povoli powershellu spoustet cizi skripty na novem stroji
1 parent 351d65e commit c0aa436

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/classes/NSCPConfigBatGenerator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ function cfgInit()
137137
case 'windows':
138138
$this->nscBatArray = ['
139139
@ECHO OFF
140+
powershell Set-ExecutionPolicy ByPass
140141
set NSCDIR=%ProgramFiles%\NSClient++\
141142
set NSCLIENT="%NSCDIR%\nscp.exe"
142143
set ICINGA_SERVER="'.$this->prefs['serverip'].'"
@@ -501,4 +502,5 @@ public function deployScripts()
501502
}
502503
}
503504
}
504-
}
505+
}
506+

0 commit comments

Comments
 (0)