Reply to Message

View discussion in a popup

Replying to:
Tocano
Enthusiast
Enthusiast

I had not. However, that seems specific to customizing new ISE basic tabs as "Remote tabs" using Remote PSSessions and avoid loading the PS_ISE profile or not. I don't see anything in there that applies to what I'm seeing with the Connect-VIServer or that speaks to global variables - likely because it doesn't appear that the PSSessions use global variables the way PowerCLI uses the global:defaultviserver(s).

I'm currently trying to figure out what - if anything - Connect-VIServer in my current tab changes in the global:defaultviserver(s) variables in another tab. It's a stretch, but we'll see.

But this isn't something strange with my setup right? Others have the same issue?

  1. [Open ISE]
  2. > Connect-VIServer [vCenterServer1]
  3. > $allVMs = Get-VM
    1. Should succeed
  4. ['File' -> 'New Powershell Tab']
  5. > Connect-VIServer [vCenterServer2]
  6. > $allVMs = Get-VM
    1. Should Succeed
  7. [return to Tab 'Powershell 1']
  8. > $allVMs = Get-VM
    1. **ERROR**
Reply
0 Kudos