Collections:
Other Resources:
"Remove-PSSession" Cmdlet in Windows PowerShell
What is the "Remove-PSSession" cmdlet in Windows PowerShell?
✍: FYIcenter.com
You can use the "Remove-PSSession" cmdlet to remove one or more existing PSSessions in Windows PowerShell by using the "-id n" or "-name xxx" to specify the PSSession.
Here is an example of using the "Remove-PSSession" cmdlet:
PS C:\fyicenter> New-PSSession office-server Id Name ComputerName State ConfigurationName Availability -- ---- ------------ ----- ----------------- ------------ 1 Session1 office-server Opened Microsoft.PowerShell Available PS C:\fyicenter> new-pssession mail-server Id Name ComputerName State ConfigurationName Availability -- ---- ------------ ----- ----------------- ------------ 2 Session2 mail-server Opened Microsoft.PowerShell Available PS C:\fyicenter> get-pssession Id Name ComputerName State ConfigurationName Availability -- ---- ------------ ----- ----------------- ------------ 1 Session1 office-server Opened Microsoft.PowerShell Available 2 Session2 mail-server Opened Microsoft.PowerShell Available PS C:\fyicenter> Remove-PSSession -id 2 PS C:\fyicenter> get-pssession Id Name ComputerName State ConfigurationName Availability -- ---- ------------ ----- ----------------- ------------ 1 Session1 office-server Opened Microsoft.PowerShell Available
⇒ Example of PowerShell Session on Remote Computer
⇐ Connect to Existing PSSession in Windows PowerShell
2016-10-13, 2359🔥, 0💬
Popular Posts:
Can I disable Windows service "Network DDE" to speedup my computer? Microsoft application service "N...
I have a problem wiht the Drivers Video Card, I have a laptop HP dv6448se and the video card are a N...
Every time I open Internet Explorer a bar pops up saying that it is runner with out add ons. I check...
What is Java Console Extra Tools Menu Item for Internet Explorer (IE) browsers? Java Console Extra T...
How to access Services Management Console on Windows Vista? Services Management Console is a system ...