Register-PSsessionConfiguration -runas
hello, have created , registered pssessionconfiguration file allow a orchestrator runbook see if user logged citrix. runbook account team in company , not admin in citrix space. account able make remote connection , able run script long i register config with the -runas using admin account in citrix space. if dont use account isnt able load citrix modules , access information needed.
my goal allow account access function created get-citrixsessions returns true or fals if user logged in. don't want possibllity of account able drop shell , see function. don't know -runas account information stored , if automatically updated if account info changes, or if config needs reregisterd, or if authenticates everytime script run. can please me understand process better.
thanks
shanem.
thanks boe, please correct me if i'm wrong. mean if account used register configfile change passwords need reregister config file?
if true based on scenario have better recommendation?
thanks time!
shanem.
correct, need update sessionconfiguration if changed password of runasaccount using set-pssessionconfiguration.
set-pssessionconfiguration -name <sessionname> -runascredential <accountname>
boe prox
blog | twitter
poshwsus | poshpaig | poshchat | posheventui
powershell deep dives book
Windows Server > Windows PowerShell
Comments
Post a Comment