Functions/Authentication/Use-PASSession.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# .ExternalHelp psPAS-help.xml function Use-PASSession { [CmdletBinding()] param( [parameter( Mandatory = $true, ValueFromPipeline = $true )] [psTypeName('psPAS.CyberArk.Vault.Session')]$Session ) BEGIN { }#begin PROCESS { Set-Variable -Name BaseURI -Value $Session.BaseURI -Scope Script Set-Variable -Name ExternalVersion -Value $Session.ExternalVersion -Scope Script Set-Variable -Name WebSession -Value $Session.WebSession -Scope Script }#process END { }#end } |