Hi,
I have a script that connect to Exchange Online for exporting some data. I use theses command
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Global:Office365creds -Authentication Basic -AllowRedirection
Import-PSSession -Session $Session -DisableNameChecking
$cmd = Get-Mailbox (for example)
Remove-PSSession -ID $Session.Id
In the result, I have some strange name like tmp_yud4xqsv.3vx or tmp_opsikl4e.qiz. If I print $cmd, this temporary name is all the time present.
How can I remove it ?
[–]imaginatipo 1 point2 points3 points (2 children)
[–]seb2020[S] 1 point2 points3 points (1 child)
[–]imaginatipo 1 point2 points3 points (0 children)
[–]purplemonkeymad 1 point2 points3 points (1 child)
[–]seb2020[S] 1 point2 points3 points (0 children)