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
Last revision Both sides next 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 [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:$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
-<code>+<code powershell>
 # Search script, which will return information about user's exchange account # Search script, which will return information about user's exchange account
 # INPUT: # INPUT:
  • by kucerar