<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Script to register vm's on a snapmirror in VMware Solutions Discussions</title>
    <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/Script-to-register-vm-s-on-a-snapmirror/m-p/60233#M5658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp; have a few things over at my site: &lt;A href="http://www.theselights.com" target="_blank"&gt;theselights.com&lt;/A&gt; .&amp;nbsp;&amp;nbsp; The ESX to vSphere migration posts should have what you need.&amp;nbsp; Here is the VM registration piece:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt; #----{ Register VMs that were chosen to be migrated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write-Host "Registering VMs to: " $newVC&lt;BR /&gt;Foreach ($vm in $vmsToMigrate) {&lt;/P&gt;&lt;P&gt;dir $storePath | where {$_.PSChildName -like "*$vm*"} | % { New-VM -vmhost $vSphereHost -VMFilePath $_.DatastoreFullPath } | Out-Null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables get set earlier in the script so I would recommend checking the full thing out.&amp;nbsp; There are other scripts on there that will break your SnapMirror, find all VMs on a datastore, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 30 Oct 2010 12:01:57 GMT</pubDate>
    <dc:creator>erick_moore</dc:creator>
    <dc:date>2010-10-30T12:01:57Z</dc:date>
    <item>
      <title>Script to register vm's on a snapmirror</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/Script-to-register-vm-s-on-a-snapmirror/m-p/60230#M5656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping someone could advise of a script or a util to register all the VM's into a ESX environment after snapmirror is broken to a DR site just to automate a timesink process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be nice if it had some sort of GUI that you could select just the ones you want, but anything would do nicely atm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expect this is a fairly common thing, so hopefully there is a fair bit of material around already instead of having to write my own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 07:06:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/Script-to-register-vm-s-on-a-snapmirror/m-p/60230#M5656</guid>
      <dc:creator>gary_thomas</dc:creator>
      <dc:date>2025-06-05T07:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script to register vm's on a snapmirror</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/Script-to-register-vm-s-on-a-snapmirror/m-p/60233#M5658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp; have a few things over at my site: &lt;A href="http://www.theselights.com" target="_blank"&gt;theselights.com&lt;/A&gt; .&amp;nbsp;&amp;nbsp; The ESX to vSphere migration posts should have what you need.&amp;nbsp; Here is the VM registration piece:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt; #----{ Register VMs that were chosen to be migrated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write-Host "Registering VMs to: " $newVC&lt;BR /&gt;Foreach ($vm in $vmsToMigrate) {&lt;/P&gt;&lt;P&gt;dir $storePath | where {$_.PSChildName -like "*$vm*"} | % { New-VM -vmhost $vSphereHost -VMFilePath $_.DatastoreFullPath } | Out-Null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables get set earlier in the script so I would recommend checking the full thing out.&amp;nbsp; There are other scripts on there that will break your SnapMirror, find all VMs on a datastore, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Oct 2010 12:01:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/Script-to-register-vm-s-on-a-snapmirror/m-p/60233#M5658</guid>
      <dc:creator>erick_moore</dc:creator>
      <dc:date>2010-10-30T12:01:57Z</dc:date>
    </item>
  </channel>
</rss>

