How to Disable Ad Hoc Wireless Connections on Vista

  • Section(s): Security, Networking, Administration
  • Published on Oct 28, 2008.
  • Last Modified on Oct 28, 2008.
  • Last Modified by Mitch Tulloch.
  • Rated 3 out of 5 based on 2 votes.
Windows Vista won’t automatically create ad hoc wireless connections with other computers, but for greater security you may want to disable ad-hoc wireless connections entirely. Here’s how to do this.

Windows Vista won’t automatically create ad hoc wireless connections with other computers, but for greater security you may want to disable ad-hoc wireless connections entirely. You can do this by running the following Netsh command at an elevated command prompt:

netsh wlan add filter permission=denyall networktype=adhoc

To re-enable ad hoc wireless connections, run this command:

netsh wlan del filter permission=denyall networktype=adhoc

For more information on networking in Windows Vista and Windows Server 2008, see the Windows Server 2008 Networking and Network Access Protection (NAP) from Microsoft Press.

About Mitch Tulloch

Mitch Tulloch is a widely recognized expert on Windows administration, networking, and security. He has been repeatedly awarded Most Valuable Professional (MVP) status by Microsoft for his outstanding contributions in supporting users who deploy and use Microsoft platforms, products and solutions. Mitch has published over two hundred articles on different IT websites and magazines, and he has written or contributed to almost two dozen books and is lead author for the Windows 7 Resource Kit from Microsoft Press. For more information, see www.mtit.com .


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred Anti Spam Hardware solution?

Follow TechGenix on Twitter