Differences
This shows you the differences between two versions of the page.
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:04] fiserp [Python] |
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> | ||
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 | ||
- | < | + | < |
# Search script, which will return information about user's exchange account | # Search script, which will return information about user's exchange account | ||
# INPUT: | # INPUT: |