diff --git a/README.md b/README.md index acaf8f7..d2de86b 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ For Kerberos ## Node definition example -``` +```xml --hostname --password ``` @@ -145,7 +145,7 @@ In some cases, a script can return a warning which will produce that the step fa So if you need to control errors, you will need to find the way to capture the exit code of your commands inside the script, for example: * Option 1: check the last exit code -``` +```powershell # some code with error get-services @@ -158,7 +158,7 @@ if ($lastExitCode -ne "0") { * Option 2: add a try/catch block -``` +```powershell try { # some code with error get-services @@ -173,28 +173,27 @@ catch { If you get the following error: -``` +```log module object has no attribute 'SSL_ST_INIT' ``` -Update your verion of PyOpenSSL: +Update your version of PyOpenSSL: -``` +```bash python -m easy_install --upgrade pyOpenSSL ``` If you get the following error after run a PowerShell Script: -``` +```log Failed: NonZeroResultCode: [WinRM Python] Result code: 1 ``` -Please check first if you have disable the ExecutionPolicy on PowerShell -``` -Get-ExecutionPolicy -``` -If the result is Restricted, please run the following command: +Configure the Script Invocation Script as: +```powershell +powershell.exe -ExecutionPolicy Bypass ``` +Or you can make it permanent on the server executing on the Remote Node in powershell: +```powershell Set-ExecutionPolicy -ExecutionPolicy Unrestricted ``` - ## Docker example Check these [instructions](docker/README.md) for docker test