Virtual Machine "Phantom" in Hyper-V running locally
and I' happened to find a ghost in the VM of Hyper-V console and fail to Elim so ortodssa (Menu 'contextual / delete) so,' stubborn I decided to go other routes.
Thanks to a very useful tool called WMI Code Creator, I created the following code: strComputer
= "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\virtualization")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Msvm_ComputerSystem Where EnabledState >= 2",,48)
For Each objItem in colItems
Wscript.Echo "-----------------------------------"
Wscript.Echo "Msvm_ComputerSystem instance"
Wscript.Echo "-----------------------------------"
If isNull(objItem.AssignedNumaNodeList) Then
Wscript.Echo "AssignedNumaNodeList: "
Else
Wscript.Echo "AssignedNumaNodeList: " & Join(objItem.AssignedNumaNodeList, ",")
End If
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CreationClassName: " & objItem.CreationClassName
If isNull(objItem.Dedicated) Then
Wscript.Echo "Dedicated: "
Else
Wscript.Echo "Dedicated: " & Join(objItem.Dedicated, ",")
End If
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "ElementName: " & objItem.ElementName
Wscript.Echo "EnabledDefault: " & objItem.EnabledDefault
Wscript.Echo "EnabledState: " & objItem.EnabledState
Wscript.Echo "HealthState: " & objItem.HealthState
If isNull(objItem.IdentifyingDescriptions) Then
Wscript.Echo "IdentifyingDescriptions: "
Else
Wscript.Echo "IdentifyingDescriptions: " & Join(objItem.IdentifyingDescriptions, ",")
End If
Wscript.Echo "InstallDate: " & objItem.InstallDate
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "NameFormat: " & objItem.NameFormat
Wscript.Echo "OnTimeInMilliseconds: " & objItem.OnTimeInMilliseconds
If isNull(objItem.OperationalStatus) Then
Wscript.Echo "OperationalStatus: "
Else
Wscript.Echo "OperationalStatus: " & Join(objItem.OperationalStatus, ",")
End If
If isNull(objItem.OtherDedicatedDescriptions) Then
Wscript.Echo "OtherDedicatedDescriptions: "
Else
Wscript.Echo "OtherDedicatedDescriptions: " & Join(objItem.OtherDedicatedDescriptions, ",")
End If
Wscript.Echo "OtherEnabledState: " & objItem.OtherEnabledState
If isNull(objItem.OtherIdentifyingInfo) Then
Wscript.Echo "OtherIdentifyingInfo: "
Else
Wscript.Echo "OtherIdentifyingInfo: " & Join(objItem.OtherIdentifyingInfo, ",")
End If
If isNull(objItem.PowerManagementCapabilities) Then
Wscript.Echo "PowerManagementCapabilities: "
Else
Wscript.Echo "PowerManagementCapabilities: " & Join(objItem.PowerManagementCapabilities, ",")
End If
Wscript.Echo "PrimaryOwnerContact: " & objItem.PrimaryOwnerContact
Wscript.Echo "PrimaryOwnerName: " & objItem.PrimaryOwnerName
Wscript.Echo "ProcessID: " & objItem.ProcessID
Wscript.Echo "RequestedState: " & objItem.RequestedState
Wscript.Echo "ResetCapability: " & objItem.ResetCapability
If isNull(objItem.Roles) Then
Wscript.Echo "Roles: "
Else
Wscript.Echo "Roles: " & Join(objItem.Roles, ",")
End If
Wscript.Echo "Status: " & objItem.Status
If isNull(objItem.StatusDescriptions) Then
Wscript.Echo "StatusDescriptions: "
Else
Wscript.Echo "StatusDescriptions: " & Join(objItem.StatusDescriptions, ",")
End If
Wscript.Echo "TimeOfLastConfigurationChange: " & objItem.TimeOfLastConfigurationChange
Wscript.Echo "TimeOfLastStateChange: " & objItem.TimeOfLastStateChange
Next
Lo script Genera list with a tutte le PROPRIETA 'delle macchine virtualities you trovan sull'Hyper-V Server in a determinate moment, produces an output eat Quest:
Msvm_ComputerSystem instance
------------ -----------------------
AssignedNumaNodeList:
Caption: Virtual Machine
CreationClassName: Msvm_ComputerSystem
Dedicated:
Description: Microsoft Virtual Machine ElementName
: EN_BPB_BPBEXCH
EnabledDefault : 2
EnabledState: 3
HealthStat: 5
IdentifyingDescriptions:
InstallDate: 20091007075603.000000-000
Name: 5975D3F3-412A-AC92-EE3D-DFBAB45F58D0
NameFormat: 0
OnTimeInMilliseconds
OperationalStatus: 10
OtherDedicatedDescriptions:
OtherEnabledState:
OtherIdentifyingInfo:
PowerManagementCapabilities:
PrimaryOwnerContact:
PrimaryOwnerName:
ProcessID: 0
RequestedState: 12
ResetCapability: 1
Roles:
Status:
StatusDescriptions:
TimeOfLastConfigurationChange: 20091007085737.000000-000
TimeOfLastStateChange: 20091007091948.000000 -000
Assuming that the machine is called Phantom PHANTOM_VM, we derive the name of the machine configuration file from the property 'name: -EE3D 5975D3F3-412A-AC92-DFBAB45F58D0.
At this point it will 'simply find the lnk file related to the configuration file Phantom of the machine and proceed to its cancellation. In my case the file was in C: \\ Users \\ All Users \\ Microsoft \\ Windows \\ Hyper-V \\ Virtual Machines \\
Thursday, October 29, 2009
Monday, October 19, 2009
Vga Cable Too Long 1080
The artist atelier Blue Camel Giancarlo Galatolo "Giga", and 'was selected to the International Biennial of Rackstadmuseet Arvika, Sweden.
Tuesday, October 13, 2009
Wart Infections Finger
today and I 'happened, following the movement of a Virtual Machine from a Server 2008 R2 with Hyper-V almost identical to another, having to reactivate the VM. How to practice
I clicked on the notify icon in the lower right on the Windows taskbar, but instead of the usual dialog box appear with the choice of type of activity, I get this nice message:
"Can not Activate Windows. The local execution of scripts and 'been disabled on this computer. This' can be done as a preventive measure against the virus or as a security measure. Once activated the local execution of the script, restart the task "after hours of research (in vain) on Microsoft KB, I run the following solution: 1
.
Start Regedit 2. Set" HKEY_CURRENT_USER \\ Software \\ Microsoft \\ Windows \\ CurrentVersion \\ Internet Settings \\ Zones \\ 0 \\ 1400 "to 0
3. Set" HKEY_LOCAL_MACHINE \\ Software \\ Microsoft \\ Windows \\ CurrentVersion \\ Internet Settings \\ Zones \\ 0 \\ 1400 "to 0
4. Close the Registry Editor
5. Reviving the activation process of Microsoft Windows
The value
1400 corresponds to the policy of the Local Activation Scripting
Subscribe to:
Posts (Atom)