Petri.com forums Home Forums Start Page Forums Frequently Asked Questions FAQ Member List Members List
Go Back   Petri IT Knowledgebase Forums > Client Operating Systems > Windows 7
Petri.com is happy to award RicklesP the title of Most Valuable Member !!!
Register Calendar Calendar Search Petri IT Knowledgebase Forums Search Todays Posts Today's Posts Mark Forums Read
Notices

Exclude VMware Virtual Adapters from Windows 7 Network Awareness and Windows Firewal

Exclude VMware Virtual Adapters from Windows 7 Network Awareness and Windows Firewal

this thread has 2 replies and has been viewed 11378 times

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th April 2010, 13:07
igor7 igor7 is offline
Casual
It's not a coincidence
 
 Join Date: Feb 2007
  6 month star 12 month star
 Posts: 84
 Reputation: igor7 is on a distinguished road (26)
Default Exclude VMware Virtual Adapters from Windows 7 Network Awareness and Windows Firewal

Hi, everybody!!
Recently I have studied to take Microsoft TS: Windows 7, Configuring 70-680 exam. I learned to use Winrm and Winrs tools.
Quote:
The Windows Remote Management (WinRM) is the Microsoft implementation of WS-Management Protocol, a standard Simple Object Access Protocol (SOAP)-based, firewall-friendly protocol that allows hardware and operating systems, from different vendors, to interoperate.
When I ran winrm quickconfig command on my Windows 7 computer (VmWare is installed on this computer also for learning purposes) I had error in CMD window:



Because the VMware virtual network adapters appear to be in a “Public network”, Windows thinks that the whole machine is exposed to a public network, and it triggers the public profile for Windows Firewall. While in most cases this helps protect the entire computer from external access, sometimes you actually need to have external access, and therefore you need to manually change the setting.
I searched for a solution and found an excellent article on Daniel Petri's site:
Exclude VMware Virtual Adapters from Vista/2008 Network Awareness and Windows Firewall
That was exactly what I needed, but... even if I did everything according to this article, when I run Power Shell script on my Windows 7 computer I got following error:




As we can see problem in the script code somewhere here:

Code:
 [netshelter]# adapters key
pushd 'hklm:\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}'
I continued searching and found a pretty same Power Shell script that worked on my Windows 7 computer:

Exclude VMware Virtual Adapters from Network Awareness. You can take it from attached file (need to change file extension to PS1 before using this script).

Copy this file to the some place where it be easy navigate to the file, for Example C:\. Next, open a PowerShell prompt. Note that you'll need to run it with elevated credentials (i.e. "Run as Administrator"). Navigate it to the folder where you've placed the script, and execute it. You can type the first letter of the script's name and press TAB to auto complete the script's name.:



When finished, VmWare network adapters will be excluded from Windows 7 Network and Sharing Center and Windows Remote Management (WinRM) can be successfully configured:








And if you for some reason cannot run PS1 script it can be configured manually trough windows registry.

1. Run regedit with elevated privileges.
2. Navigate here:

Code:
 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}
3. You will find enumerated keys like 0000, 0001, 0002 and so on.
4. Expend them one by one and look for DriverDesc REG_SZ value data.
You need to find VMware Virtual Ethernet Adapter for VMnet8 or VMware Virtual Ethernet Adapter for VMnet1 or similar if you have more than 2 VmWare virtual adapters.
5. In the same registry key where you found Virtual Ethernet Adapter for VMnet1 DriverDesc value create another new DWORD Value, name it *NdisDeviceType (it Case Sensitive!!). Double click on this value and in "Value Data" field put 1 as Decimal data:



6. Do the same for all others VmWare virtual network adapters.
7. Restart your computer or just disable/enable VmVare virtual network adapters and you will get the same effect as from running Power Shell script!!

I hope you have found this loooong post useful!!!
Attached Files
File Type: txt fix-vmnet-adapters.txt (2.3 KB, 399 views)

Last edited by igor7; 17th April 2010 at 22:17..
  #2  
Old 17th April 2010, 13:24
tehcamel's Avatar
tehcamel tehcamel is offline
Moderator
 
 Join Date: Mar 2009
  6 month star 12 month star
 Location: Melbourne
 Posts: 5,634
  Send a message via Skype™ to tehcamel
 Reputation: tehcamel is a splendid one to beholdtehcamel is a splendid one to beholdtehcamel is a splendid one to beholdtehcamel is a splendid one to beholdtehcamel is a splendid one to beholdtehcamel is a splendid one to beholdtehcamel is a splendid one to behold (717)
Default Re: Exclude VMware Virtual Adapters from Windows 7 Network Awareness and Windows Fire

nice find budddy
__________________

Melbourne IT Support


Please do show your appreciation to those who assist you by leaving Rep Point
  #3  
Old 17th April 2010, 16:04
Ossian Ossian is offline
Administrator
 
 Join Date: Nov 2003
  6 month star 12 month star
 Location: Bonnie Scotland
 Posts: 16,722
  Send a message via Skype™ to Ossian
 Reputation: Ossian has a brilliant futureOssian has a brilliant futureOssian has a brilliant futureOssian has a brilliant futureOssian has a brilliant futureOssian has a brilliant futureOssian has a brilliant futureOssian has a brilliant futureOssian has a brilliant futureOssian has a brilliant futureOssian has a brilliant future (1549)
Default Re: Exclude VMware Virtual Adapters from Windows 7 Network Awareness and Windows Fire

Looks good, but please repost the contents of the zip as a text file (for security reasons)
__________________
Tom Jones
MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
PhD, MSc, FIAP, MIITT
IT Trainer / Consultant
Ossian Ltd
Scotland

** Remember to give credit where credit is due and leave reputation points where appropriate **
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to exclude HyperV Virtual Network Adapters from Server 2008 Network Awareness Mack_Peters Windows Server 2008 / 2008 R2 0 28th August 2009 09:10
Vmware workstation issue with vmware virtual adapters Vista x64. and connectivity markm75 VMware Virtualization 4 23rd September 2008 19:48
How to Convert physical Windows 98 to VMware virtual machine? graffiti VMware Virtualization 5 30th May 2008 19:11
Making Network in windows using vmware imrankhan.in VMware Virtualization 1 11th September 2007 15:46
Windows network based on VMWare Server arberibrahimi VMware Virtualization 6 24th October 2006 10:47


All times are GMT +3. The time now is 02:45.

Steel Blue 3.5.4 vBulletin Style ©2006 vBEnhanced
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
 

Valid XHTML 1.0!   Valid CSS!

Copyright 2005 Daniel Petri