FROM: http://www.yellow-bricks.com/2008/11/03/which-vm-is-connected-to-an-rdm/
$report = @()
$vms = Get-VM | Get-View
foreach($vm in $vms){
foreach($dev in $vm.Config.Hardware.Device){
if(($dev.gettype()).Name -eq “VirtualDisk”){
if(($dev.Backing.CompatibilityMode -eq “physicalMode”) -or
($dev.Backing.CompatibilityMode -eq “virtualMode”)){
$row = “” | select VMName, HDDeviceName, HDFileName, HDMode
$row.VMName = $vm.Name
$row.HDDeviceName = $dev.Backing.DeviceName
$row.HDFileName = $dev.Backing.FileName
$row.HDMode = $dev.Backing.CompatibilityMode
$report += $row
}
}
}
}
$report
Monday, November 3, 2008
Thursday, October 16, 2008
Test VMware HA
esxcfg-vswif -D (disable service console network)
HA occur
After
esxcfg-vswif -E (Enable service console network)
HA occur
After
esxcfg-vswif -E (Enable service console network)
Monday, October 6, 2008
Winxp ip forward
To enable TCP/IP forwarding, follow these steps:
1. | Start Registry Editor (Regedit.exe). |
2. | In Registry Editor, locate the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters |
3. | Set the following registry value: Value Name: IPEnableRouter A value of 1 enables TCP/IP forwarding for all network connections that are installed and used by this computer. Value type: REG_DWORD Value Data: 1 |
4. | Quit Registry Editor. |
Friday, September 26, 2008
show members ad group
Show myuser information
net user myuser /domainand
Show group information
net group "domain admins" /domain
Thursday, June 19, 2008
Subscribe to:
Posts (Atom)