WMIService not returning virtual machines in the list after performing a Hyper-V VM export/import

Hello,
Win 8.1, VBscript
After moving 3 servers to a new PC, my scripts don't work because WMIService is not returning the virtual machines in the list from the query.  The following query shows the problem:
Option Explicit
WScript.Echo "vmStatus"
Dim WMIService
Dim VMList
Dim VM
'Get instance of 'virtualization' WMI service on the local computer
Set WMIService = GetObject("winmgmts:\\.\root\virtualization\v2")
'Get all the MSVM_ComputerSystem object
Set VMList = WMIService.ExecQuery("SELECT * FROM Msvm_ComputerSystem")
WScript.echo "count "
WScript.echo VMList.count
For Each VM In VMList
WScript.Echo "========================================"
WScript.Echo "VM Caption: " & VM.Caption
WScript.Echo "VM Name: " & VM.ElementName
WScript.Echo "VM GUID: " & VM.Name
WScript.Echo "VM State: " & VM.EnabledState
Next
This is the output:
vmStatus
count
1
========================================
VM Caption: Hosting Computer System
VM Name: WBCDEVIDEPC2
VM GUID: WBCDEVIDEPC2
VM State: 2
On the previous machine there would be 4 machines in the list, the host plus 3 VM's.
Any ideas why this might be happening?  Clearly winmgmt is running or the host machine wouldn't have been returned.  I've compared as many things as I can with the previous PC (also win 8.1) and can't find any differences.  I'm assuming
there is some basic thing about the new PC that isn't setup correctly, but I can't figure it out.
The VM's that were moved to the new hosting machine are in fact working correctly.  There's a domain controller, a TFS server and a build machine.  The domain is functioning and clients can reach the TFS just fine.
Thanks.
Best Regards,
Alan

Hi jrv,
Got it, you're right, it's intuitive - and cool.  Thanks for talking me into it.  It'll take time to get good, but I don't need to be good right now.
While I was searching around (just before you last post), I found this
site and as you say, it seems pretty straightforward.
So when I type get-vm in my powershell, I get nothing back.  That's why I was a little slow on the uptake, I thought I was doing something wrong.
My vm's are working just fine.  The domain is up, TFS is working, but my vm's are simply not being reported through get-vm.
Where should I turn next?
Best Regards,
Alan

Similar Messages

  • I cant start 2 Virtual machines at the same time in a Hyper-V enabled machine

    Hi,
    I have installed Windows 2008 Enterprise edition. Updated all patched from windows updated. Add the Hyper-V role and installed Windows 2003 in one Virtual Machine and Windows 2008 in another. After the first VM installation itself i had the problem as the below error was coming ibn.
    I has to shutdown the Windows 2003 to install Windows 2008.
    Now i can only run 1 OS at a time. Shut down 1 to start the other
    [Window Title]
    Hyper-V Manager
    [Main Instruction]
    An error occurred while attempting to change the state of virtual machine New Virtual Machine.
    [Content]
    'New Virtual Machine' failed to start.
    Microsoft Emulated IDE Controller (Instance ID {83F8638B-8DCA-4152-9EDA-2CA8B33039B4}): Failed to power on with Error 'The process cannot access the file because it is being used by another process.'
    Failed to open attachment 'E:'. Error: 'The process cannot access the file because it is being used by another process.'
    [Expanded Information]
    'New Virtual Machine' failed to start. (Virtual machine 418ACD0E-5FBA-4053-AFDD-1EDA51694EF5)
    'New Virtual Machine' Microsoft Emulated IDE Controller (Instance ID {83F8638B-8DCA-4152-9EDA-2CA8B33039B4}): Failed to power on with Error 'The process cannot access the file because it is being used by another process.' (0x80070020). (Virtual machine 418ACD0E-5FBA-4053-AFDD-1EDA51694EF5)
    'New Virtual Machine': Failed to open attachment 'E:'. Error: 'The process cannot access the file because it is being used by another process.' (0x80070020). (Virtual machine 418ACD0E-5FBA-4053-AFDD-1EDA51694EF5)
    Hide details  [Close]
    Any help is of great use.
    REgards
    Sharath

    I have both the vm's created in different drives. E drive is my DVD drive....
    I renamed them,Reinstalled OS, Created a new set of vm's after the first i get the error
    It works fine if i stop 1 vm and install the other or stop 1 and start the other...Running both at the same time is the problem

  • I can not create virtual machines   =(

    hi, I again
    I can not create virtual machines using the oracle manager, andalusia creandolas time this occurs, an error which generates two logs. These are:
    1.Get VNC Port: (XMachineX):
    failed:<Exception: failed:<Exception: xm list 98_XP_es=>Error: Domain '98_XP_es' does not exist. > StackTrace: File "/opt/ovs-agent-2.2/OVSXXenStore.py", line 196, in xen_get_vnc_port vm_id = xen_get_vm_id(vm_path) File "/opt/ovs-agent-2.2/OVSXXenStore.py", line 35, in xen_get_vm_id stdout = run_cmd("xm list %s" % vm_name) File "/opt/ovs-agent-2.2/OVSCommons.py", line 87, in run_cmd raise Exception('%s=>%s' % (cmd, p.childerr.read())) > StackTrace: File "/opt/ovs-agent-2.2/OVSSiteXenStore.py", line 45, in get_vm_vnc_conn raise Exception(rs)
    2. ParaInstallation: (XMachineX):
    failed:<Exception: failed:<Exception: virt-install paravirt name=98_XP_es ram=512 vcpus=1 mac=00:16:3E:73:7D:45 bridge=xenbr0 file /OVS/running_pool/98_XP_es/System.img file-size=12 vnc vnclisten=0.0.0.0 vncpasswd=/tmp/tmpzYrJVG noautoconsole location=nfs:linuxvm:/el/EL5-x86 keymap=en-us=>ERROR: Invalid NFS location given: [Errno 2] No such file or directory: '/var/lib/xen/xennfs.ZceAYm/images/xen/vmlinuz' > StackTrace: File "/opt/ovs-agent-2.2/OVSXXenVMInstall.py", line 306, in xen_install_vm_para run_cmd(cmd) File "/opt/ovs-agent-2.2/OVSCommons.py", line 87, in run_cmd raise Exception('%s=>%s' % (cmd, p.childerr.read())) > StackTrace: File "/opt/ovs-agent-2.2/OVSSiteVMInstall.py", line 184, in install_vm_para else: raise Exception(rs)
    thanks for any help; as I am new in this

    hi,
    i use vm 2.1.5, this upgrade from 2.1.2
    but i can't create vm
    err:
    failed:<KeyError: 'vcaps'> StackTrace: File "/opt/ovs-agent-2.2/OVSSiteVMInstall.py", line 77, in install_vm_hvm l = [ h for h, srv in cds.db_srv.items() if not "hvm" in srv["vcaps"] ]
    help me plz...

  • Exchange BPA Errors (Exchange server is a virtual machine but the additional tools are not installed and The 'Services' string type value located in 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Setup\Services' registry key is missing)

    Hi,
    I am running BPA on My Exchange 2010 VM (Server 2008 R2 VM on Hyper-V) and get the following errors:
    The 'Services' string type value located in 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Setup\Services' registry key is missing or inaccessible. The Microsoft Exchange Information Store service won't start. As a result, all services that depend
    on this service won't be able to start
    Exchange server [Exchange Server FQDN] is a virtual machine but the additional tools are not installed. This configuration is not supported. Install Virtual Machine Additions for this guest.
    Problem is that, for the first, that Key exists and the service is actually running fine. And for the second my VM tools are already installed.
    Hopefully someone out there has had the same issue and can assist.
    Pete

    Hi Pete,
    For the first error message, please try the following steps:
    Make sure the Information Store service is in Starting status,
    Automatic startup type and works well, as a test we can try to
    restart the Infroamtion Store service and verify the service works well.
    Start
    Registry Editor, find the registry key “Services” under “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Setup”, its value is “C:\Program
    files\Microsoft\Exchange Server\v14”(default install location), please check your registry, make sure the key “Services” exist and value is the Exchange Server install location and the
    location is accessible;
    Start
    Registry Editor, and locate the following registry key:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Exchange\Setup
    Use the
    Permission option under the Security tab to check the permission setting on this key. Make sure
    System is in the list with Full Control permissions if the service account is Local System. If you are not using Local System as the service account, check the existence of the corresponding account in the list and ensure that
    it has Full Control permissions. Please refer to this article:
    Title: Exchange Store Does Not Start: Errors 7024, 1026, 9542, and 5000
    Link:
    http://support.microsoft.com/kb/285116
    Start
    ADSI Edit, and then browse to the following location:
    Domain.com/Configuration/Services/Microsoft Exchange/Org/Administrative Groups/AdminGroup/Servers/Server Name
    Right-click the
    server name, and then click Properties.
    Click the
    Security tab, make sure this own server’s server object have
    full control permission on its own server.
    If not or the object is missing, please modify the permission or click
    Add, locate the computer account for the Exchange Server computer, add it to the Permissions list with full control.
    Click OK, and then close ADSI Edit.
    Use
    Active Directory Users and Computers to add the current affected
    Exchange Server computer account to the Exchange Servers(previous version should be “Exchange Domain Servers”) group in the
    Microsoft Exchange Security Groups( or Users) OU. Refer to this article:
    http://support.microsoft.com/kb/297295.
    Restart the Exchange Server computer, then rerun the ExBPA.
    For the second error message, Microsoft don’t recommend to install Exchange Server on virtual machine without additional tools, so the error message occurs. We can just ignore
    this message, it will not affect the Exchange servers.
    Regards, Eric Zou

  • Hyper-V could not replicate changes for virtual machine 'machinename': The connection with the server was terminated abnormally (0x00002EFE).

    I have a 3 node cluster that has replica setup to replicate to another cluster off-site.
    Suddenly one of the servers is not replicating with the error:
    Hyper-V could not replicate changes for virtual machine 'machinename': The connection with the server was terminated abnormally (0x00002EFE). (Virtual Machine ID CC0FD4CC-F9B7-4C68-ABE8-B7D52A87899F)
    All other servers are replicating fine so there cannot be a permissions or connectivity issue between the 2 clusters.
    This server has 2TB of data so I'd rather not have to start the replication again.
    Does anyone have any pointers?
    Thanks.

    Hi drensta,
    Based on my knowledge , "hyper-v replica broker " is needed for failover cluster replica .
    Here is a link for "Why is the "Hyper-V Replica Broker" required?"
    http://blogs.technet.com/b/virtualization/archive/2012/03/27/why-is-the-quot-hyper-v-replica-broker-quot-required.aspx
    Hope this hleps
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • HT3275 Time machine at home and it will not allow me to remove the listing of my external hard drive from the excluded files list.

    Please help guys, I have a Time machine at home and it will not allow me to remove the listing of my external hard drive from the excluded files list.
    I am trying to use time machine to back up the hard drive. For backing up from Macbooik pro and Imac, there is no problem. It seems to not want to allow the external drive to be removed from the Excluded list and as such will not back up from it.
    Is there a way to be able to transfer files (music, movies etc) to time machine, format the external drive then put the files back to hard drive?
    Sorry it is a long winded question but it is driving me nuts that I cant sort this out.
    The <Macbook and Imac are both running mountain lion.
    Thanks Guys

    As for the hard drive to which you have never been able to write, is it by any chance in NTFS format? OS X can read NTFS for importing files, but it does not contain code for writing on an NTFS volume. That's a choice, not a bug.
    There is third-party software available to install NTFS-writing capability into OS X. An example is Paragon NTFS for Mac OS X. Another alternative would be to use a disk format that both Macs and Windows systems can use for both reading and writing; this would require either a new drive or erase the existing data.
    If by "the new system software" you mean OS X 10.9 Mavericks, you may want to repost that portion of your query in the Mavericks forum at https://discussions.apple.com/community/mac_os/os_x_mavericks . I haven't made the leap yet.
    I don't know what other problems you have been having, so I cannot comment on them. You don't seem to have any other recent postings on these forums.

  • �Unable to create the virtual machine. The error was -4�

    I have a VS2003 C# application, which call JACE (a JNI wrapper) through C++ mixed mode to use JAVA object�s functions.
    Because the natural of our JAVA program it must be able to reach maximum heap size of 512MB, we set it during the startup of JVM by using �-Xmx512M� parameter.
    It worked well with a small PC (Dell Optiplex GX750 and Shuttle Xpc ) with only 512MB physical memory. We have about 50 machines running the application in the production.
    Recently, one of our customers installs the application to a larger PC ( Shuttle Xpc with different model), which has 1 GB of physical memory. The application started throw exception from JVM. The error message is �Unable to create the virtual machine. The error was -4�. I checked with JNI return code and found that -4 mean �not enough memory�.
    I did some experiment by running the application with 2GB PC, 1 GB PC, 1GB laptop, 512MB PC. I don�t found relationship between how much �maximum heap size� can be assigned and how much �physical memory� is available (reading from task manager). The 2GB machine can take only 128MB of �maximum heap size� However, 1GB machine can take up to 300MB of �maximum heap size�.
    I also use program like ImageJ (http://rsb.info.nih.gov/ij/) to test maximum heap size for it. I found that ImageJ can take 512MB maximum heap size without problem. It can even take 1024MB of maximum heap size.
    I have created a small program to duplicate this problem. Although it use exact the same code to start JVM up, it can go up to 650MB heap size for both 2GB and 1GB PC.
    This is puzzling. Does anyone know what are factors determine how much �maximum heap size� can be set for JVM from JNI?
    Software used
    Windows XP SP2
    Visual studio.net 2003 SP1 (the problem also occurred without SP1)
    .NET Framework 1.1 SP1
    JACE 1.1rc1_05
    JRE 1.5.07 (also tested with JRE 1.5.09 and 1.6.0 beta)

    Do you resolve the problem? If so what was the fix?
    I have been getting the Java Virtual Machine Launcher error message “Could not create the virtual machine” when attempting to run an Oracle application that uses JNLP via a browser. Even clicking on componets such as javaw.exe produces the error message. In conjunction with receiving the error message, the application that I am working with will not launch.
    I had JRE 5u10 and J2RE 1.4.2u13 installed and thought that installing JDK 5u17 may resolve the issue. I removed JRE 5u10 and J2RE 1.4.2u13 and installed JDK 5u17 (and the included JRE 5u17.) The error message was still there.
    I have unistalled (via Add/Remove programs) and reinstalled (via both Win off-line and on-line) JDK 5u17 and JRE 5u17 many times.
    During the uninstalls I have received a Java Web Start 1.5.0_17 bad installation – error invoking JVM error message.
    I have restarted the machine also.
    There are some remains of J2RE 1.4.2u13 still on the machine –even after the 1.4.2u13 uninstall. The Java\j2re1.4.2_13\lib folder remains.
    I am running Win XP SP2 and IE6 SP2.
    Note: I cannot use Java 6 since the application that I am working with is Java 5 based.

  • Oracle XE on multiple virtual machines on the same physical machine?

    hi,
    does oracle's licensing for 11g express edition prohibit running XE databases on multiple virtual machines on the same physical machine? if not, does the machine have to be "hard partitioned" per oracle specifications (link below) to make it legal?
    http://www.oracle.com/us/corporate/pricing/partitioning-070609.pdf
    i found a similar question regarding 10g express edition in the forum (link below), but it doesn't seem like the question was ever definitively answered.
    Oracle XE on multiple virtual machines on the same physical machine?
    thanks

    I thought until I just checked that this was a clear cut no in that it specifies 'a single server'. Now I'm not sure as 'server' is an amibuous term. I at least know that as soon as you start giving developers access to theor own XE instance for dev/testing that there are many VM environments where you can't really know what physical macine your VM is running on to actually be able to tell if you had multiple XE instances running on a single 'Physical' server. I'm not sure the question has been answered by Oracle though.

  • Find an item not returning results in SharePoint calendar list

    Environment: SharePoint 2013 upgraded to SP1. We have 1000s of team sites that have been upgraded from 2010 to 2013. In the lists in these sites, quite often I encounter that
    Find an item does not return results for certain fields other than the title field. For example, we have a calendar list which has a Single Line of Text field. I can not get meaningful results searching on
    this field.  I have tried this, no luck:
    http://www.enjoysharepoint.com/Articles/Details/sharepoint-2013-find-an-item-search-box-does-not-return-20956.aspx
    Search service crawls incremental every hour. I hope this does not need a full crawl.
    Thanks, Soumya | MCITP, SharePoint 2010

    Thanks Ganesh. All these settings are as you recommended it to be. Nonetheless I double checked and here are the results:
    Ensure in the Search Service Application that the Web Application is included in the Content Source under SharePoint Start Addresses.
    Yes. Please remember we are getting search results. To be specific we are not getting Find items in the list to be returning accurate results.
    Make sure that the address in Alternate access mappings default text box is same as the start crawl address in the search service application.
    Yes.
    List Setting - Allow items from this list to appear in search results? yes
    Ensured
    set “Require content approval for submitted item?” to “No”.
    It is set to "No". However, will it not work for approved contents also?
    Thanks, Soumya | MCITP, SharePoint 2010

  • "A critical error has occurred while running the virtual machine and the machine execution has been stopped"

    I have the following error:
    "A critical error has occurred while running the virtual machine and the machine execution has been stopped"
    When I am installing grid clusterware and when is copying files from one node to other I received that virtualbox error and is stop working.
    Can somebody give me any hint how to solve it ?
    Thank you
    Eugen

    I think that is not a Clusterware issue, The clusterware installation may generating a high load on your machine and Virtual Box is not supporting.
    Check vbox.log file to identify root cause.

  • Can not see my Airport in the list of Wifi networks and is blinking organge all the time

    Can not see my airport on the list of WiFi networks and is blinking orange all the time. Tried to reset several times.

    Do you have a Mac or idevice for setting up the Express? It does require a later utility than is available for windows.
    You might be able to setup with the v5 utility in windows but there is no guarantee.
    You should use a simple name both for the base and the wireless. eg AEXgen2 base name and AEXwifi for wireless name.. that is if you get access.

  • Updated my iPhone 5 to ios7, in the App store after installing updates I now have a never ending list of the Apps I've updated.  How do I get rid of the list after they've been updated?  In the previous version I did not have an annoying permanent list.

    Updated my iPhone 5 to ios7, in the App store after installing updates I now have a never ending list of the Apps I've updated.  How do I get rid of the list after they've been updated?  In the previous version I did not have an annoying permanent list.

    iOS 7 allows you to have your apps update automatically. Therefore, the list of what has been updated stays so that you can see what was updated, when and what the release notes say. It has been suggested that they list has a limit, much like Recents. Currently, there is no way for the user to delete the entries manually. Just try not to look at them.

  • I can not eliminate ASK engine from the list. It came back by itself. Please, tel me how I can eliminate this problem. Another problem, this browser is no longer compatible with some institutions. This new version might have some problems.

    '''I can not eliminate ASK engine from the list. It came back by itself. Please, tel me how I can eliminate this problem.
    Another problem, this browser is no longer compatible with some institutions. .'''

    Step by step, how did you arrive at seeing this agreement?

  • Server does not return query metadata check the query

    hi,
    i want know how to  use bex query designer,
    when i  insert a data provider,the message is appear "server does not return query metadata check the query",
    who can help me ?
    thanks a lot !
    addition: my current entironment is: gui710 with sp4,bi710 with sp2.

    Hi,
    All the yellow and red lights will have an effect on query performance or execution.  Read up on them as there are too many to explain via this forum.
    There is a document on SDN on query performance.  Some useful links:
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9f4a452b-0301-0010-8ca6-ef25a095834a]
    [http://help.sap.com/saphelp_nw70/helpdata/en/41/b987eb1443534ba78a793f4beed9d5/frameset.htm]
    [http://help.sap.com/saphelp_nw70/helpdata/en/d9/31363dc992752de10000000a114084/frameset.htm]
    [http://help.sap.com/saphelp_nw04/helpdata/en/2e/caceae8dd08e48a63c2da60c8ffa5e/frameset.htm]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0501cb9-d51c-2a10-239c-c141a22c45a6]
    Cheers...

  • Should I have to run a firewall or antivirus under virtual machines if the host iMac already has them running? Thanks!

    I am learning my way around my new iMac (after using PC's ever since there first WERE PC's). In addtion to using the Mac OS, I am running two virtual machines (Windows XP Pro and Windows 7) during the transition and learning phase.
    I am running with a firewall and antivirus on the iMac. Should I run an additional firewall and antivirus while in the virtual machines? Or is this completely unneeded? Thank you!

    You really don't need the firewall or anti-virus software for OS X, and it won't protect a virtual machine. The VMs will need their own anti-virus software and protection for each VM.

Maybe you are looking for

  • How to aviod L3 008 message during the TO creation (Technically)

    Hi , How to skip the L3 008 error message during the TO cration , we have picking strategy user exit is active and we want to skip the L3 008 error message for specific logic in user exit . We had found FM RV_DELIVERY_PICK_VIEW is helpful but how to 

  • What is the range for the Time Capsule

    Good day for you all, Can anyone help me on the following: 1. What is effective the range for the Time Capsule if there are 2 walls 6" thick each obstacle the way? 2. Can I backup my data to my Time Capsule anywhere in the world using the Internet? 3

  • User Based whitelist with SpamAssassin

    Hello, im currently setting up a IMS 5.2 with SpamAssassin as a spam filter. The user should be able to switch the Spam filter on and off. If the filter is on, a check required if the sender (From:) address is within the AddressBook of the receiver o

  • SQL Statement as Loop - easy question?

    Am reading from S. Feuerstein's book: DECLARE CURSOR checked_out_cur IS SELECT pet_id, name, checkout_date FROM occupancy WHERE checkout_date IS NOT NULL; BEGIN FOR checked_out_rec IN checked_out_cur LOOP INSERT INTO occupancy_history (pet_id, name,

  • Export of pictures - original raw data not found

    Hello everyone, I have been trying to export a few pictures. But I always get the error, that the orginal folder could not be found. So Lightroom just creates an empty folder without exporting any of the pictures. I have attached a sreenshot of the t