Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
devel:documentation:systems:dev:how_to_write_scripts_for_winrm_ad_connector [2019/10/08 13:05]
fiserp [Powershell]
devel:documentation:systems:dev:how_to_write_scripts_for_winrm_ad_connector [2021/11/29 13:39] (current)
kucerar Write output
Line 56: Line 56:
  
 ====== Powershell ====== ====== Powershell ======
 +<note important>When connector server is on Windows use Write-Output instead of Write-Host</note>
 I'll use same solution as with Python script and jump directly to some example script I'll use same solution as with Python script and jump directly to some example script
 +
 +Tips:
 +  * Use -Confirm:$false parameter to avoid "freezing" of your script
 +  * Use -ErrorAction Stop or -ea Stop for better error handeling, because some command will print error to stdout by default so you won't be able to catch them without this parameter
  
 This is example search script so I can show handling of response This is example search script so I can show handling of response
  • by fiserp