<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>VMware Communities: Message List - How do I script changing from Bridged to NAT?</title>
    <link>http://communities.vmware.com/community/developer/forums/automationapi?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Tue, 28 Jul 2009 03:51:42 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2009-07-28T03:51:42Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1322325?tstart=0#1322325</link>
      <description>&lt;br /&gt;
I am hoping I can get this figured out. Do you have any more suggestions to help me?&lt;br /&gt;
&lt;p /&gt;
 Please!  Thanks in advance&lt;br /&gt;
&lt;p /&gt;
Mark&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Tue, 28 Jul 2009 03:51:42 GMT</pubDate>
      <author>mswarbrick77</author>
      <guid>http://communities.vmware.com/message/1322325?tstart=0#1322325</guid>
      <dc:date>2009-07-28T03:51:42Z</dc:date>
      <clearspace:dateToText>4 months, 15 hours ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1308172?tstart=0#1308172</link>
      <description>I have looked through the command reference and tried entering a few commands. I"m totally lost and don't know what to do next.</description>
      <pubDate>Fri, 10 Jul 2009 20:33:28 GMT</pubDate>
      <author>mswarbrick77</author>
      <guid>http://communities.vmware.com/message/1308172?tstart=0#1308172</guid>
      <dc:date>2009-07-10T20:33:28Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1308127?tstart=0#1308127</link>
      <description>and then...?  Sorry I'm so dumb about this</description>
      <pubDate>Fri, 10 Jul 2009 19:59:16 GMT</pubDate>
      <author>mswarbrick77</author>
      <guid>http://communities.vmware.com/message/1308127?tstart=0#1308127</guid>
      <dc:date>2009-07-10T19:59:16Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1308041?tstart=0#1308041</link>
      <description>Number 2.</description>
      <pubDate>Fri, 10 Jul 2009 18:20:10 GMT</pubDate>
      <author>fixitchris</author>
      <guid>http://communities.vmware.com/message/1308041?tstart=0#1308041</guid>
      <dc:date>2009-07-10T18:20:10Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1308011?tstart=0#1308011</link>
      <description>&lt;br /&gt;
I connected, hit W, and I get...&lt;br /&gt;
&lt;p /&gt;
 1. VIX_VM_GUEST_VARIABLE&lt;br /&gt;
&lt;p /&gt;
2. VIX_VM_CONFIG_RUNTIME_ONLY&lt;br /&gt;
&lt;p /&gt;
3. VIX_GUEST_ENVIRONEMNT_VARIABLE&lt;br /&gt;
&lt;p /&gt;
 Where do I go from here?</description>
      <pubDate>Fri, 10 Jul 2009 17:49:18 GMT</pubDate>
      <author>mswarbrick77</author>
      <guid>http://communities.vmware.com/message/1308011?tstart=0#1308011</guid>
      <dc:date>2009-07-10T17:49:18Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1307961?tstart=0#1307961</link>
      <description>I was only referring to the LoadWithPartialName lines of code, since this editor hacked em up.&lt;br /&gt;
&lt;br /&gt;
Let's try changing the variable from bridged to nat.  Run the Virtuozo Console, connect to your box, &lt;a class="jive-link-external" href="https://192.168.0.4:8333/sdk"&gt;https://192.168.0.4:8333/sdk&lt;/a&gt;.&lt;br /&gt;
Then select the VM you want and hit W to rewrite the ethernet0.connectionType to nat.  &lt;br /&gt;
Then do your test to see if the variable change has any effect on the traffic pattern.&lt;br /&gt;
Then change the ethernet0.connectionType to bridged and re-do the test.</description>
      <pubDate>Fri, 10 Jul 2009 16:51:53 GMT</pubDate>
      <author>fixitchris</author>
      <guid>http://communities.vmware.com/message/1307961?tstart=0#1307961</guid>
      <dc:date>2009-07-10T16:51:53Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1307940?tstart=0#1307940</link>
      <description>&lt;br /&gt;
The attachment looks a bit different from the other one you sent. This does not have any place to put in my username and password and IP and such.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Here is the out put I get when I paste that into power shell...&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; #region Title Block&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; #Name:vim_0_firestarter&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; #File:vim_0_firestarter.ps1&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; #Author:fixitchris&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; #Date:April 2009&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; #Purpose:Prepares environment for VI/dotnet execution.&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; "module " + $myInvocation.myCommand.Name;&lt;br /&gt;
module&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; #endregion Title Block&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt;&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; #region Firestarter&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; $VMCore = Get-PSSnapin VMware.VimAutomation.Core -EA 0&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; if ( -not $VMCore ) { Add-PSSnapin VMware.VimAutomation.Core };&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt;&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; $scriptPath = split-path $myInvocation.myCommand.Path;&lt;br /&gt;
Split-Path : Cannot bind argument to parameter 'Path' because it is null.&lt;br /&gt;
At line:1 char:25&lt;br /&gt;
+ $scriptPath = split-path  &amp;lt;&amp;lt;&amp;lt;&amp;lt; $myInvocation.myCommand.Path;&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt;&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; #&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadFile($($scriptPath + "\HIDLibrary.dll"));&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; #&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadFile($($scriptPath + "\USBlib.dll"));&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadFile($($scriptPath + "\devconLib.dll"));&lt;br /&gt;
Exception calling "LoadFile" with "1" argument(s): "Absolute path information is required."&lt;br /&gt;
At line:1 char:38&lt;br /&gt;
+ &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadFile( &amp;lt;&amp;lt;&amp;lt;&amp;lt; $($scriptPath + "\devconLib.dll"));&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadFile($($scriptPath + "\nhciClientNET.dll"))&lt;br /&gt;
;&lt;br /&gt;
Exception calling "LoadFile" with "1" argument(s): "Absolute path information is required."&lt;br /&gt;
At line:1 char:38&lt;br /&gt;
+ &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadFile( &amp;lt;&amp;lt;&amp;lt;&amp;lt; $($scriptPath + "\nhciClientNET.dll"));&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithPartialName("Microsoft.VisualBasic")&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithPartialName("System.Diagnostics")&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithPartialName("System.Runtime.InteropServ&lt;br /&gt;
ices")&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithPartialName("System.Net")&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithPartialName("VMware.VimAutomation.Core"&lt;br /&gt;
)&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithPartialName("VMware.Vim")&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithPartialName("VMware.VimAutomation.Types&lt;br /&gt;
")&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithPartialName("VMware.VimAutomation")&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithPartialName("VMware.VimAutomation.Commo&lt;br /&gt;
n")&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithPartialName("VMware.VimAutomation.Clien&lt;br /&gt;
t20")&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithPartialName("VMware.Security.Credential&lt;br /&gt;
Store")&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; #endregion Firestarter&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt;&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; #region TheEnd&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; "vim_0_firestarter finished."&lt;br /&gt;
vim_0_firestarter finished.&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; #endregion TheEnd</description>
      <pubDate>Fri, 10 Jul 2009 16:39:10 GMT</pubDate>
      <author>mswarbrick77</author>
      <guid>http://communities.vmware.com/message/1307940?tstart=0#1307940</guid>
      <dc:date>2009-07-10T16:39:10Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1307648?tstart=0#1307648</link>
      <description>It looks like you're connecting and disconnecting successfully.  The only problem I see is this thread editor changed my 'loadwithpartialassembly' lines.  Take a look at the attachment of how they're supposed to look.&lt;br /&gt;
&lt;br /&gt;
So between your connect and disconnect code you have to retrieve the VM you want and try those two networking CMDLETS.  Look at vmwarescripting.com for Powershell examples.  Or get Halr9000's book.  &lt;a class="jive-link-external" href="http://halr9000.com/article/716"&gt;http://halr9000.com/article/716&lt;/a&gt;</description>
      <pubDate>Fri, 10 Jul 2009 13:21:13 GMT</pubDate>
      <author>fixitchris</author>
      <guid>http://communities.vmware.com/message/1307648?tstart=0#1307648</guid>
      <dc:date>2009-07-10T13:21:13Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1307349?tstart=0#1307349</link>
      <description>&lt;br /&gt;
I wasn't sure what to do with that code. I put it in a batch file, but those don't run in powershell apparently. I then pasted it directly into the powershell windw. Is that right?  This is what I get when I do that. I'm a bit lost here. I appreciate your help...&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
 PS C:\Documents and Settings\Administrator&amp;gt; $VMCore = Get-PSSnapin VMware.VimAutomation.Core -EA 0&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; if ( -not $VMCore ) { Add-PSSnapin VMware.VimAutomation.Core };&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt;&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithParti&lt;br /&gt;
alName("VMware.VimAutomation.Core")&lt;br /&gt;
Unable to find type &lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;: make sure that the assembly containing thi&lt;br /&gt;
s type is loaded.&lt;br /&gt;
At line:1 char:62&lt;br /&gt;
+ &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;: &amp;lt;&amp;lt;&amp;lt;&amp;lt; :LoadWithPartialName("VMware.VimAutomation.Core")&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithParti&lt;br /&gt;
alName("VMware.Vim")&lt;br /&gt;
Unable to find type &lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;: make sure that the assembly containing thi&lt;br /&gt;
s type is loaded.&lt;br /&gt;
At line:1 char:62&lt;br /&gt;
+ &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;: &amp;lt;&amp;lt;&amp;lt;&amp;lt; :LoadWithPartialName("VMware.Vim")&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithParti&lt;br /&gt;
alName("VMware.VimAutomation.Types")&lt;br /&gt;
Unable to find type &lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;: make sure that the assembly containing thi&lt;br /&gt;
s type is loaded.&lt;br /&gt;
At line:1 char:62&lt;br /&gt;
+ &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;: &amp;lt;&amp;lt;&amp;lt;&amp;lt; :LoadWithPartialName("VMware.VimAutomation.Types"&lt;br /&gt;
)&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithParti&lt;br /&gt;
alName("VMware.VimAutomation")&lt;br /&gt;
Unable to find type &lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;: make sure that the assembly containing thi&lt;br /&gt;
s type is loaded.&lt;br /&gt;
At line:1 char:62&lt;br /&gt;
+ &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;: &amp;lt;&amp;lt;&amp;lt;&amp;lt; :LoadWithPartialName("VMware.VimAutomation")&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithParti&lt;br /&gt;
alName("VMware.VimAutomation.Common")&lt;br /&gt;
Unable to find type &lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;: make sure that the assembly containing thi&lt;br /&gt;
s type is loaded.&lt;br /&gt;
At line:1 char:62&lt;br /&gt;
+ &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;: &amp;lt;&amp;lt;&amp;lt;&amp;lt; :LoadWithPartialName("VMware.VimAutomation.Common&lt;br /&gt;
")&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithParti&lt;br /&gt;
alName("VMware.VimAutomation.Client20")&lt;br /&gt;
Unable to find type &lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;: make sure that the assembly containing thi&lt;br /&gt;
s type is loaded.&lt;br /&gt;
At line:1 char:62&lt;br /&gt;
+ &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;: &amp;lt;&amp;lt;&amp;lt;&amp;lt; :LoadWithPartialName("VMware.VimAutomation.Client&lt;br /&gt;
20")&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;::LoadWithParti&lt;br /&gt;
alName("VMware.Security.CredentialStore")&lt;br /&gt;
Unable to find type &lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;: make sure that the assembly containing thi&lt;br /&gt;
s type is loaded.&lt;br /&gt;
At line:1 char:62&lt;br /&gt;
+ &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=void"&gt;void&lt;/a&gt;&lt;a class="jive-link-external" href="http://Reflection.Assembly"&gt;http://Reflection.Assembly&lt;/a&gt;: &amp;lt;&amp;lt;&amp;lt;&amp;lt; :LoadWithPartialName("VMware.Security.CredentialS&lt;br /&gt;
tore")&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt;&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt;&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; $chost = "192.168.0.4";&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; $cuser = "mswarbrick";&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; $cpassword = "cnecne997";&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; $cport = 8333;&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; $cprotocol = "https";&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt;&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; Connect-VIServer -Server $chost -User $cUser -Password $cPassword -Port $cpo&lt;br /&gt;
rt -Protocol $cprotocol;&lt;br /&gt;
WARNING: There were one or more problems with the server certificate:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;A certification chain processed correctly, but terminated in a root certificate which isn't trusted by the trust&lt;/li&gt;
&lt;/ul&gt;
provider.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;The certificate's CN name does not match the passed value.&lt;/li&gt;
&lt;/ul&gt;
&lt;p /&gt;
&lt;br /&gt;
IsConnected : True&lt;br /&gt;
Name        : 192.168.0.4&lt;br /&gt;
Port        : 8333&lt;br /&gt;
SessionId   : A4FA03DA-B4B1-4336-8FF4-15B864F79EA0&lt;br /&gt;
User        : mswarbrick&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt;&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; if ( $DefaultVIServer -eq $null)&lt;br /&gt;
&lt;div class="jive-quote"&gt;&lt;div class="jive-quote"&gt;    { Write-Host "Connection Failed!"; return $false }&lt;br /&gt;
else&lt;br /&gt;
    { Write-Host "Connected : " $DefaultVIServer.IsConnected;&lt;br /&gt;
                ## Lets assign some views to variables&lt;br /&gt;
                $global:moServiceInstance = (get-view ServiceInstance);&lt;br /&gt;
                $global:moHostSystem = Get-View -VIObject (Get-VMHost);&lt;br /&gt;
                $global:DefaultVIServer = $DefaultVIServer;&lt;br /&gt;
    };&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;
Connected :  True&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; #do something&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt;&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt; Disconnect-VIServer -Server $global:DefaultVIServer -WhatIf:$False -Confirm:&lt;br /&gt;
$false -EA 0;&lt;br /&gt;
PS C:\Documents and Settings\Administrator&amp;gt;</description>
      <pubDate>Fri, 10 Jul 2009 01:41:07 GMT</pubDate>
      <author>mswarbrick77</author>
      <guid>http://communities.vmware.com/message/1307349?tstart=0#1307349</guid>
      <dc:date>2009-07-10T01:41:07Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>8</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1306688?tstart=0#1306688</link>
      <description>With the VI toolkit there is a CMDLETs reference.&lt;br /&gt;
&lt;br /&gt;
I would try playing with VMNET0/VMNET8 with Set-VirtualSwitch , Set-NetworkAdapter to begin with.&lt;br /&gt;
&lt;br /&gt;
Here is how you connect to your server:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;$VMCore = Get-PSSnapin VMware.VimAutomation.Core -EA 0
if ( -not $VMCore ) { Add-PSSnapin VMware.VimAutomation.Core };

[void][http://Reflection.Assembly|http://Reflection.Assembly]::LoadWithPartialName(&amp;quot;VMware.VimAutomation.Core&amp;quot;)
[void][http://Reflection.Assembly|http://Reflection.Assembly]::LoadWithPartialName(&amp;quot;VMware.Vim&amp;quot;)
[void][http://Reflection.Assembly|http://Reflection.Assembly]::LoadWithPartialName(&amp;quot;VMware.VimAutomation.Types&amp;quot;)
[void][http://Reflection.Assembly|http://Reflection.Assembly]::LoadWithPartialName(&amp;quot;VMware.VimAutomation&amp;quot;)
[void][http://Reflection.Assembly|http://Reflection.Assembly]::LoadWithPartialName(&amp;quot;VMware.VimAutomation.Common&amp;quot;)
[void][http://Reflection.Assembly|http://Reflection.Assembly]::LoadWithPartialName(&amp;quot;VMware.VimAutomation.Client20&amp;quot;)
[void][http://Reflection.Assembly|http://Reflection.Assembly]::LoadWithPartialName(&amp;quot;VMware.Security.CredentialStore&amp;quot;)


$chost = &amp;quot;192.168.1.1&amp;quot;;
$cuser = &amp;quot;me&amp;quot;;
$cpassword = &amp;quot;mypass&amp;quot;;
$cport = 8333;
$cprotocol = &amp;quot;https&amp;quot;;

Connect-VIServer -Server $chost -User $cUser -Password $cPassword -Port $cport -Protocol $cprotocol;

if ( $DefaultVIServer -eq $null) 
	{ Write-Host &amp;quot;Connection Failed!&amp;quot;; return $false }
else
	{ Write-Host &amp;quot;Connected : &amp;quot; $DefaultVIServer.IsConnected;
				## Lets assign some views to variables
				$global:moServiceInstance = (get-view ServiceInstance);
				$global:moHostSystem = Get-View -VIObject (Get-VMHost);
				$global:DefaultVIServer = $DefaultVIServer;
	};

#do something

Disconnect-VIServer -Server $global:DefaultVIServer -WhatIf:$False -Confirm:$false -EA 0;

&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 09 Jul 2009 14:14:05 GMT</pubDate>
      <author>fixitchris</author>
      <guid>http://communities.vmware.com/message/1306688?tstart=0#1306688</guid>
      <dc:date>2009-07-09T14:14:05Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1306143?tstart=0#1306143</link>
      <description>Ok, I now have Windows Powershell 1.0 and VMware vSphere PowerCLI installed?  Is this correct? Do I have the right things installed? Bear in mind I am not running ESX, but am running Windows Vista 64-bit as the host with VMware Server 2.x and am running 2003 Server in a VM as the guest.  What do I do now?</description>
      <pubDate>Thu, 09 Jul 2009 01:39:56 GMT</pubDate>
      <author>mswarbrick77</author>
      <guid>http://communities.vmware.com/message/1306143?tstart=0#1306143</guid>
      <dc:date>2009-07-09T01:39:56Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1305634?tstart=0#1305634</link>
      <description>I will install those right now. Do you know the URL link to download them?  Tell me how to change the connectiion type varialble or any other command you want me to try and I'll try this right away.</description>
      <pubDate>Wed, 08 Jul 2009 16:48:29 GMT</pubDate>
      <author>mswarbrick77</author>
      <guid>http://communities.vmware.com/message/1305634?tstart=0#1305634</guid>
      <dc:date>2009-07-08T16:48:29Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1305275?tstart=0#1305275</link>
      <description>Have you tried this by just changing the connectionType variable?&lt;br /&gt;
&lt;br /&gt;
Do you have Powershell and VI Toolkit installed... We can try something once you do.</description>
      <pubDate>Wed, 08 Jul 2009 12:42:53 GMT</pubDate>
      <author>fixitchris</author>
      <guid>http://communities.vmware.com/message/1305275?tstart=0#1305275</guid>
      <dc:date>2009-07-08T12:42:53Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>12</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1304500?tstart=0#1304500</link>
      <description>A good test is this: If it switched to NAT, then the VM can see the real network and map drives to machines on the physical network, but no machines on the physical network can see a VM that is on NAT.  If it is bridged, then machines on the physical network can see and map drives to the VM.  I think that is the ultimate test.</description>
      <pubDate>Tue, 07 Jul 2009 16:50:40 GMT</pubDate>
      <author>mswarbrick77</author>
      <guid>http://communities.vmware.com/message/1304500?tstart=0#1304500</guid>
      <dc:date>2009-07-07T16:50:40Z</dc:date>
      <clearspace:dateToText>4 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>13</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1304204?tstart=0#1304204</link>
      <description>Once you have the Virtuozo Suite installed, run the Console from Vix_Virtuozo_Suite folder.  Connect to your Server2.0.  Select the VM.  Then use R and W to read/write RUNTIME variables. (&lt;a class="jive-link-external" href="http://www.vmware.com/support/developer/vix-api/vix16_reference/lang/com/functions/WriteVariable.html"&gt;http://www.vmware.com/support/developer/vix-api/vix16_reference/lang/com/functions/WriteVariable.html&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
We need a network traffic test to see if the NIC is actually changing from NAT to BRIDGED.  How will you know that this change is working correctly?&lt;br /&gt;
&lt;br /&gt;
My worry is that changing the variable might not be enough.  If you look at your virtual network/switch configuration using the 'Manage Virtual Networks' app that comes with Server2.0, you'll see on the 'NAT' tab that, by default, VMNet8 virtual switch is used by the NAT service (&lt;a class="jive-link-external" href="http://www.extremetech.com/article2/0,2845,1156371,00.asp"&gt;http://www.extremetech.com/article2/0,2845,1156371,00.asp&lt;/a&gt;).  So, the thing to do in this situation is either keep searching for answers inside the VI Toolkit, or assign two Virtual NICs to the VM.  One on VMNet0 and one on VMNet8.  Then, as suggested, use netsh to switch between the two (&lt;a class="jive-link-external" href="http://sanbarrow.com/network/commandlineguide2vnets.html"&gt;http://sanbarrow.com/network/commandlineguide2vnets.html&lt;/a&gt;)(&lt;a class="jive-link-external" href="http://communities.vmware.com/thread/133297"&gt;http://communities.vmware.com/thread/133297&lt;/a&gt;).&lt;br /&gt;
&lt;br /&gt;
Any other ideas?</description>
      <pubDate>Tue, 07 Jul 2009 12:44:06 GMT</pubDate>
      <author>fixitchris</author>
      <guid>http://communities.vmware.com/message/1304204?tstart=0#1304204</guid>
      <dc:date>2009-07-07T12:44:06Z</dc:date>
      <clearspace:dateToText>4 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>14</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1303913?tstart=0#1303913</link>
      <description>&lt;br /&gt;
Wow - I think you are on to the answer here. I downloaded and installed all of that and have the VIX Virtuozo Client available. But I don't know what to do next. A specific test? Well, here is what needs to happen. From a command line inside a VM, run a script that changes the NIC of that VM from Bridged to NAT, and another script that does the reverse, changes it from NAT back to Bridged. &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Tue, 07 Jul 2009 05:51:02 GMT</pubDate>
      <author>mswarbrick77</author>
      <guid>http://communities.vmware.com/message/1303913?tstart=0#1303913</guid>
      <dc:date>2009-07-07T05:51:02Z</dc:date>
      <clearspace:dateToText>4 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>15</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1303871?tstart=0#1303871</link>
      <description>RE: &lt;br /&gt;
&lt;div class="jive-quote"&gt; vmware-cmd (path to VMX file) setconfig ethernet0.connectionType="nat" &lt;/div&gt;
&lt;br /&gt;
d/l and install &lt;a class="jive-link-external" href="http://communities.vmware.com/thread/191565?tstart=10"&gt;http://communities.vmware.com/thread/191565?tstart=10&lt;/a&gt;.  All you'll care about is the Console shortcut.  See the pic for explanation.  Do you have a specific test we could do?&lt;br /&gt;
&lt;br /&gt;
 &lt;img src="http://communities.vmware.com/servlet/JiveServlet/downloadImage/2-1303871-6217/Untitled.jpg" alt="Untitled.jpg" width="450" class="jive-image-thumbnail jive-image" onclick="myJiveImage.start(this, 'http://communities.vmware.com/servlet/JiveServlet/downloadImage/2-1303871-6217/Untitled.jpg');return false;"/&gt;</description>
      <pubDate>Tue, 07 Jul 2009 03:05:22 GMT</pubDate>
      <author>fixitchris</author>
      <guid>http://communities.vmware.com/message/1303871?tstart=0#1303871</guid>
      <dc:date>2009-07-07T03:05:22Z</dc:date>
      <clearspace:dateToText>4 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>16</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1303854?tstart=0#1303854</link>
      <description>I'm wondering if it's as simple as calling Set-NetworkAdapter cmdlet and setting the network name, VMNet0/1/2/etc...  Can anyone confirm?&lt;br /&gt;
&lt;br /&gt;
Looking at my Virtual Network Editor in Server2.0, VMnet0 is bridged, VMnet1 is host-only and VMnet8 is nat....&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://blogs.vmware.com/files/vi-toolkit-lab----vmworld-europe-2009.pdf"&gt;http://blogs.vmware.com/files/vi-toolkit-lab----vmworld-europe-2009.pdf&lt;/a&gt;</description>
      <pubDate>Tue, 07 Jul 2009 01:41:36 GMT</pubDate>
      <author>fixitchris</author>
      <guid>http://communities.vmware.com/message/1303854?tstart=0#1303854</guid>
      <dc:date>2009-07-07T01:41:36Z</dc:date>
      <clearspace:dateToText>4 months, 3 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1302543?tstart=0#1302543</link>
      <description>Thanks for the helpful answer. Unfortunately that command is not available in Windows with Server 2.x. Also, I need this command to run from inside the VM. I think you answer is close to the right track, but I'm not quite there yet. Any more suggestions?  It seems that no one out there knows how to make this happen, but I am still hoping.</description>
      <pubDate>Sat, 04 Jul 2009 18:19:20 GMT</pubDate>
      <author>mswarbrick77</author>
      <guid>http://communities.vmware.com/message/1302543?tstart=0#1302543</guid>
      <dc:date>2009-07-04T18:19:20Z</dc:date>
      <clearspace:dateToText>4 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1302539?tstart=0#1302539</link>
      <description>I am no VIX guru, but it looks to me like VIX is intended for manipulating the &lt;i&gt;guest OS&lt;/i&gt; from an external source.  Unfortunately, this does not include messing with the settings in the VMX file.  I'm not that familiar with VMware Server and its APIs, but that is more along the lines of what you are asking.&lt;br /&gt;
&lt;br /&gt;
You might look into using vmware-cmd -- it lives in &lt;i&gt;C:\Program Files\VMware\VMware Server&lt;/i&gt;, I think:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;vmware-cmd (path to VMX file) setconfig ethernet0.connectionType=&amp;quot;nat&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
I am guessing that setting the connectionType to "bridged" would revert to Bridged, but I am not certain since I don't have a VMware Server machine to play with.&lt;br /&gt;
&lt;br /&gt;
(Update) A little more information. You may be able to run vmware-cmd from within a VM and have it talk to the host that is running the VM.  Get vmware-cmd.exe and any required support files into the guest, and use the connection options described below (put them before the path to the VMX file)&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;    Connection Options:
       -H &amp;lt;host&amp;gt;       specifies an alternative host (if set, -U and -P must also be set)
       -O &amp;lt;port&amp;gt;       specifies an alternative port
       -U &amp;lt;username&amp;gt;   specifies a user
       -P &amp;lt;password&amp;gt;   specifies a password
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Message was edited by: DougBaer</description>
      <pubDate>Sat, 04 Jul 2009 17:59:33 GMT</pubDate>
      <author>DougBaer</author>
      <guid>http://communities.vmware.com/message/1302539?tstart=0#1302539</guid>
      <dc:date>2009-07-04T17:59:33Z</dc:date>
      <clearspace:dateToText>4 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>19</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1302132?tstart=0#1302132</link>
      <description>&lt;br /&gt;
That is a helpful suggestion. I had not thought of two NICs, yes that would do it. I am familiar with netsh and am already using that in what I am doing, as I am switching from DHCP to STATIC with that command, and yes, I did not mean "immediate" to be exactly literal. &lt;br /&gt;
&lt;p /&gt;
I would llike to find a way to do it though on the same NIC. I wish there was a command to order the infrastructure to make the switch.</description>
      <pubDate>Fri, 03 Jul 2009 16:03:49 GMT</pubDate>
      <author>mswarbrick77</author>
      <guid>http://communities.vmware.com/message/1302132?tstart=0#1302132</guid>
      <dc:date>2009-07-03T16:03:49Z</dc:date>
      <clearspace:dateToText>4 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>20</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1302089?tstart=0#1302089</link>
      <description>I am thinking here that 'immediately' is a bit relative. You will drop packets and the VM will be unavailable for a brief period of time.&lt;br /&gt;
&lt;br /&gt;
In order to complete the transition, you'll have to &lt;i&gt;ipconfig /release&lt;/i&gt; and &lt;i&gt;ipconfig /renew&lt;/i&gt; within the guest (or something equivalent) to drop the old IP and get the new one -- assuming you're using DHCP.  If not, you will have issues anyway.&lt;br /&gt;
&lt;br /&gt;
The simplest course of action may be to have two NICs configured in the VM  -- one NAT and one Bridged. You could then selectively activate/deactivate them within the guest without touching the VMware Server environment.  Would that work for you?&lt;br /&gt;
&lt;br /&gt;
If so, take a look at &lt;i&gt;netsh&lt;/i&gt; commands within Windows:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;netsh interface set interface &amp;lt;interface name&amp;gt; [ENABLED|DISABLED]
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
For example, to disable an interface with its default name “Local Area Connection,” run: &lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;netsh interface set interface “Local Area Connection” DISABLED 
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
To enable the interface, you'd then run: &lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;netsh interface set interface “Local Area Connection” ENABLED
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
This may be cleaner if you're trying to do everything within the guest OS.</description>
      <pubDate>Fri, 03 Jul 2009 15:40:38 GMT</pubDate>
      <author>DougBaer</author>
      <guid>http://communities.vmware.com/message/1302089?tstart=0#1302089</guid>
      <dc:date>2009-07-03T15:40:38Z</dc:date>
      <clearspace:dateToText>4 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>21</clearspace:replyCount>
    </item>
    <item>
      <title>How do I script changing from Bridged to NAT?</title>
      <link>http://communities.vmware.com/message/1299204?tstart=0#1299204</link>
      <description>&lt;br /&gt;
I want to be able change from Bridged to NAT on a running VM and have it take effect immediately. I need to do this with a script. How can I do it?&lt;br /&gt;
&lt;p /&gt;
My host is Vista. My guest is Server 2003. I am running VMware server 2x</description>
      <pubDate>Tue, 30 Jun 2009 19:47:42 GMT</pubDate>
      <author>mswarbrick77</author>
      <guid>http://communities.vmware.com/message/1299204?tstart=0#1299204</guid>
      <dc:date>2009-06-30T19:47:42Z</dc:date>
      <clearspace:dateToText>4 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>22</clearspace:replyCount>
    </item>
  </channel>
</rss>

