Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next 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 [2020/03/25 07:29] kucerar tips for ps |
||
---|---|---|---|
Line 58: | Line 58: | ||
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: | ||
+ | * 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 |