Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
devel:documentation:systems:dev:how_to_write_scripts_for_winrm_ad_connector [2019/09/05 11:50] kucerar minor ps fix |
devel:documentation:systems:dev:how_to_write_scripts_for_winrm_ad_connector [2020/03/25 07:29] kucerar tips for ps |
||
---|---|---|---|
Line 9: | Line 9: | ||
This is example create script | This is example create script | ||
- | < | + | < |
# | # | ||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
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 | ||
- | < | + | < |
# Search script, which will return information about user's exchange account | # Search script, which will return information about user's exchange account | ||
# INPUT: | # INPUT: |