Create reusable sessions

- We've already utilized PowerShell remoting to both…get a command line on a remote computer and to send…commands to multiple remote computers for execution.…In all of those examples, when we were using…enter PS session, exit PS session, and invoke command,…we were allowing PowerShell to implicitly…connect to the machine, do the work that it needed to do,…and then shut down the connection.…For example.…

I've now had PowerShell spin up a copy…of PowerShell on ussdc.…I've created a remoting connection to it,…and I can do whatever work I need to.…Get a list of processes.…Get a directory listing.…Whatever I want to do.…When I'm done, exit PS session disconnects me,…shuts down that session, and closes the copy of PowerShell…on the remote computer.…A lot of times, that's perfectly fine,…but if you have a computer,…and you want to be continually…remoting into it throughout the day,…you can save yourself a little bit of overhead.…

Rather than having PowerShell constantly starting up…and shutting down remote instances,…you can create a reusable session.…

Resume Transcript Auto-Scroll

Author

Released

3/10/2012

This course is your entry-level introduction to PowerShell. No prior scripting experience is required! If you can run "ipconfig" then you can master PowerShell. Rather than relying on complex scripting languages and partial capabilities, with PowerShell you'll finally enjoy a complete, consistent administrative experience that encompasses both the GUI and the command line. Author Don Jones shows you how to run commands, access the built-in help system, and extend the power of PowerShell with product shells, PSSnapins, and modules. Plus, learn how to work with PowerShell objects and variables, enable remote access, manage input and output, configure security policies, and save time by turning commands into reusable tools.