georgep's Posts

I need to add an AD group to the local administrators group when deploying a new VM from template. Using New-OSCustomization with -GuiRunOnce option this is what i was looking to use this: net l... See more...
I need to add an AD group to the local administrators group when deploying a new VM from template. Using New-OSCustomization with -GuiRunOnce option this is what i was looking to use this: net localgroup administrators "my.domain.com\the - grouop- name" /add But not sure if or how i can...any ideas?
Hi LucD, The remote machine  Blah that has PowerCLi installed does use  a 32-bit browser. If I run the Open-VMConsoleWindow  locally on it, it  loads IE 9 and opens the console window to the... See more...
Hi LucD, The remote machine  Blah that has PowerCLi installed does use  a 32-bit browser. If I run the Open-VMConsoleWindow  locally on it, it  loads IE 9 and opens the console window to the VM fine. When I run this from a remote machine to the one above it doesn't error but just returns saying completed. Invoke-Command -ComputerName Blah -Scriptblock {add-pssnapin VMware.VimAutomation.Core; Connect-VIServer -Server MyVC -WarningAction SilentlyContinue; Open-VMConsoleWindow MyVM} Watching the task manager on both machines doesn't show a browser trying to load. So getting access to a VM consoles without PowerCLI installed locally might not seem possible. So another approach I am looking at might be to use vmware-vmrc.exe Example when run from machine Blah Connect-VIServer = MyVC $vm = Get-VM MyVM $gvm = Get-View $vm.id $moref = $gvm.MoRef.Value $Parameters = " -h MyVC -M $moref" Start-Process -FilePath "C:\Program Files (x86)\Common Files\VMware\VMware VMRC Plug-in\Internet Explorer\vmware-vmrc.exe" -ArgumentList $Parameters Is there a way to run this from a remote machine that doesn't have vmware-vmrc.exe installed?
Two examples of accessing PowerCLI cmdlets from a remote machine. Works invoke-command  -ComputerName blah -Scriptblock {add-pssnapin VMware.VimAutomation.Core; Connect-VIServer -Server myVC... See more...
Two examples of accessing PowerCLI cmdlets from a remote machine. Works invoke-command  -ComputerName blah -Scriptblock {add-pssnapin VMware.VimAutomation.Core; Connect-VIServer -Server myVC -WarningAction SilentlyContinue} invoke-command  -ComputerName blah -Scriptblock {add-pssnapin VMware.VimAutomation.Core; Connect-VIServer -Server myVC -WarningAction SilentlyContinue; get-vm} | select Name Does not work invoke-command -ComputerName blah -Scriptblock {add-pssnapin VMware.VimAutomation.Core; Open-VMConsoleWindow My VM}
Also it appears your can't use a String value $VC = "VirtualCenter" Invoke-Command -ComputerName SRV -Scriptblock {add-pssnapin VMware.VimAutomation.Core; connect-viserver $VC; Get-vm | sele... See more...
Also it appears your can't use a String value $VC = "VirtualCenter" Invoke-Command -ComputerName SRV -Scriptblock {add-pssnapin VMware.VimAutomation.Core; connect-viserver $VC; Get-vm | select-object Name} Error: Cannot validate argument on parameter 'Server'. The argument is null or empty. Supply an argument that is not null or empty and then try the command again. + CategoryInfo     : InvalidData: (:) [Connect-VIServer], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,VMware.VimAutomation.ViCore.Cmdlets.Commands.ConnectVIServer + PSComputerName   :  MyComputer
you were right to ask what version the machine had.....5.1 .....I have now upgraded to 5.8 release 1. However when I ran this command Invoke-Command -ComputerName SRV -Scriptblock {add-pssn... See more...
you were right to ask what version the machine had.....5.1 .....I have now upgraded to 5.8 release 1. However when I ran this command Invoke-Command -ComputerName SRV -Scriptblock {add-pssnapin VMware.VimAutomation.Core; connect-viserver VC1; Open-VMConsoleWindow  'MyVM'} It connect's to the VC and then after some time completes but without opening the browser. Doing it as normal i.e  Open-VMConsoleWindow 'MyVM' works. Has anyone tried this? or is there any other way to open a VM console window using Invoke-Command?
Noticed that Open-VMConsoleWindow' doesn't work however. "The term 'Open-VMConsoleWindow' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spel... See more...
Noticed that Open-VMConsoleWindow' doesn't work however. "The term 'Open-VMConsoleWindow' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
Hi LucD, Ok as mentioned using Select-Object works . I had  missed that off. So this works Invoke-Command -ComputerName SRV -Scriptblock {add-pssnapin VMware.VimAutomation.Core; connect-... See more...
Hi LucD, Ok as mentioned using Select-Object works . I had  missed that off. So this works Invoke-Command -ComputerName SRV -Scriptblock {add-pssnapin VMware.VimAutomation.Core; connect-viserver VC1; Get-vm | select-object Name} Invoke-Command -ComputerName SRV -Scriptblock {add-pssnapin VMware.VimAutomation.Core; connect-viserver VC1; Get-Host | select-object Name} Without | Select-Object they don't return any results. I've yet to install PowerCLI 5.8 but will shortly. Thanks to all for posting on this issue and a simple work around.
I too also have this problem. Has there been any resolution to this? I was trying to run a script on a remote computer that doesn't have PowerCLI installed and so thought that this method would b... See more...
I too also have this problem. Has there been any resolution to this? I was trying to run a script on a remote computer that doesn't have PowerCLI installed and so thought that this method would be a work around and now I have the same issues as mentioned above. I just wish that PowerCLI cmdlets could be added easily using "Import-Module" ....something that so be worked on for future releases.
LucD I too need such a script. My esx host's are mainly Dell or IBM but i cannot seem to be able to get the asset tag or bios version for Dell. If you could crack this then that would be grea... See more...
LucD I too need such a script. My esx host's are mainly Dell or IBM but i cannot seem to be able to get the asset tag or bios version for Dell. If you could crack this then that would be great.
Does anyone have a PowerShell script that will run within "vEcoShell" that will show the patching information of ESX 3.5 + Host's. Currently you can get "version" and "build" information but woul... See more...
Does anyone have a PowerShell script that will run within "vEcoShell" that will show the patching information of ESX 3.5 + Host's. Currently you can get "version" and "build" information but would also like to see patch information?