Monday, November 3, 2008

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

Thursday, October 16, 2008

Test VMware HA

esxcfg-vswif -D (disable service console network)

HA occur


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:
3.Set the following registry value:
Value Name: IPEnableRouter
Value type: REG_DWORD
Value Data: 1
A value of 1 enables TCP/IP forwarding for all network connections that are installed and used by this computer.
4.Quit Registry Editor.

Friday, September 26, 2008

show members ad group

Show myuser information
net user myuser /domain


Show group information
net group "domain admins" /domain

Thursday, June 19, 2008