Today we finished up one of my advanced PowerShell
classes. What was unique about this one
is that I ran the labs using Azure which gave the labs internet access. Because of this, we were able to play around
a little bit more and access our PSWA sites on our phones. That was one cool thing, but the other thing
that I never noticed is the ability to have a disconnected session.
Here is our current session:
Notice that I created a variable of $X = 5. To disconnect, just simply click Save instead of Exit.
Open your web browser again and sign into PowerShell Web
Access with the same credentials. Here
is what you get:
From here you can do the following:
- Check the current session and select Delete. This will close the disconnected session.
- Click New Session to open a fresh session.
- Click PSWA1. This is your disconnected session. (You can have multiple disconnected sessions.)
Notice that when you run Get-Variable, your X variable is still present:
Also your history list is preserved.
It’s the little things that you notice from time to time
that keeps things interesting.
Comments