Team,
anyone can help me here
how can i see vmware virtual machine Vlan id through Invoke-VMScript command.
Which guest OS do you have running inside the VM?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
both windows and linux
both windows and linux
Thanks a lot LucD,
one more help is required from you.
I have multiple commands with me and now I want to combine on one script. so how its possible .. please help me
Invoke-VMScript -VM ashok-2012 -ScriptText "systeminfo" -GuestUser administrator -GuestPassword M@cr5sofT
for Date format
Invoke-VMScript -VM ashok-2012 -ScriptText "date" -GuestUser administrator -GuestPassword M@cr5sofT
for Drives
Invoke-VMScript -VM ashok-2012 -ScriptText "get-psdrive -psprovider filesystem" -GuestUser administrator -GuestPassword M@cr5sofT
for local administrator members
Invoke-VMScript -VM ashok-2012 -ScriptText "net localgroup administrators" -GuestUser administrator -GuestPassword M@cr5sofT
for vmware tool status
for VMWare tool check (this is good)
$vm = get-vm ashok-2012
$vm | select -expandproperty ExtensionData | select -expandproperty guest
$vm.ExtensionData.Guest | Select Hostname,Tools* (shortcut way to get the same information.)
Get-VM | select ashok-2012,@{N="Tools Status";E={$_.Guest.Extensiondata.ToolsVersionStatus}}
$text = Invoke-VMScript -VM ashok-2012 -ScriptText 'dir c:\' -GuestUser administrator -GuestPassword M@cr5sofT -ScriptType Bat
select -ExpandProperty ScriptOutput
$text -split "`r`n" | where{$_ -match "<DIR>"}
Not sure what you are asking here?
You can just place all the Invoke-VMScript lines in sequence in one script.
On the VLANid, you can obtain those through tcpdump/windump.
How do you get the VLAN id now?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
