How to Disable PowerShell Remoting on a computer

by [Published on 25 Aug. 2014 / Last Updated on 25 Aug. 2014]

Tip explains how to disable PowerShell remoting on a computer.

You can use Disable-PSRemoting PowerShell command to prevent remote access to all session configurations on a computer as shown below:

Executing below command prevents remote access to all session configurations on the local computer.

  • Disable-PSRemoting

Use the –Force switch if you do not want to see a prompt as listed below:

  • Disable-PSRemoting –Force

About Nirmal Sharma

Nirmal is a MCSEx3, MCITP and was awarded Microsoft MVP award in Directory Services. He is specialized in Directory Services, Microsoft Clustering, Hyper-V, SQL and Exchange and has been involved in Microsoft Technologies since 1994. In his spare time, he offers technical help by writing tips and articles. Nirmal can be reached at nirmal_sharma@mvps.org.

See Also


The Author — Nirmal Sharma

Nirmal Sharma avatar

Nirmal Sharma is a MCSEx3, MCITP, and was awarded Microsoft MVP in Directory Services. In his spare time, he likes to help others and share some of his knowledge by writing tips and articles for various online communities. Nirmal can also be found contributing to PowerShell based Dynamic Packs for ADHealthProf.ITDynamicPacks.Net solutions.

Featured Links