Try to mark all the VMS in vCenter to 'upgradeAtPowerCycle' to install VMTools
Page 258 - Yes reference Hal Rottenberg book I bought it, no, I have not read all of this
Try to mark all the VMS in vCenter to 'upgradeAtPowerCycle' to install VMTools
Errors and details below. All points will be awarded. Thank you.
PowerCLI C:\ > $spec = new-object vmware.vim.virtualmachineconfigspec
PowerCLI C:\ > $spec. Tools = new-object vmware.vim.toolsconfiginfo
PowerCLI C:\ > $spec. Tools.ToolsUpgradePolicy = "upgradeAtPowerCycle".
PowerCLI C:\ > $vmview = get - vm | % {(get-vue $_).} MoRef}
PowerCLI C:\ > $vmview. ReconfigVM ($spec)
The method call failed because [System.Object []] does not contain a nam method
ED 'ReconfigVM '.
On line: 1 char: 19
+ $vmview. ReconfigVM < < < < ($spec)
+ CategoryInfo: InvalidOperation: (ReconfigVM:String)], Runtim
eException
+ FullyQualifiedErrorId: MethodNotFound
PowerCLI C:\ > $spec
ChangeVersion:
Name :
Version:
Uuid :
InstanceUuid:
NpivNodeWorldWideName:
NpivPortWorldWideName:
NpivWorldWideNameType:
NpivDesiredNodeWwns:
NpivDesiredPortWwns:
NpivTemporaryDisabled:
NpivOnNonRdmDisks:
NpivWorldWideNameOp:
LocationId:
ID:
AlternateGuestName:
Annotation:
Files :
Tools: VMware.Vim.ToolsConfigInfo
Flags :
ConsolePreferences:
PowerOpInfo:
NumCPUs:
NumCoresPerSocket:
MemoryMB:
MemoryHotAddEnabled:
CpuHotAddEnabled:
CpuHotRemoveEnabled:
VirtualICH7MPresent:
VirtualSMCPresent:
DeviceChange:
CpuAllocation:
MemoryAllocation:
CpuAffinity:
MemoryAffinity:
NetworkShaper:
CpuFeatureMask:
ExtraConfig:
SwapPlacement:
BootOptions:
VAppConfig:
FtInfo :
VAppConfigRemoved:
VAssertsEnabled:
ChangeTrackingEnabled:
Firmware:
MaxMksConnections:
GuestAutoLockEnabled:
ManagedBy:
MemoryReservationLockedToMax:
DynamicType:
DynamicProperty:
PowerCLI C:\ > $spec. Tools
ToolsVersion:
AfterPowerOn:
AfterResume:
BeforeGuestStandby:
BeforeGuestShutdown:
BeforeGuestReboot:
ToolsUpgradePolicy: upgradeAtPowerCycle
PendingCustomization:
SyncTimeWithHost:
LastInstallInfo:
DynamicType:
DynamicProperty:
PowerCLI C:\ > $vmview
Type Value
---- -----
VirtualMachine vm-1419
VirtualMachine vm-1481
VirtualMachine vm-1134
VirtualMachine vm-1098
VirtualMachine vm-1099
VirtualMachine vm-1097
VirtualMachine vm-1094
VirtualMachine vm-1182
VirtualMachine vm-1432
VirtualMachine vm-974
VirtualMachine vm-976
VirtualMachine vm-975
etc etc etc.
Your $vmview variable contains an array of objects VirtualMachine, not a single object VirtualMachine.
And the ReconfigVM method is called on a VirtualMachine object, not on a table.
What you can do
$spec = new-object vmware.vim.virtualmachineconfigspec $spec.Tools = new-object vmware.vim.toolsconfiginfo $spec.Tools.ToolsUpgradePolicy = 'upgradeAtPowerCycle' get-vm | % { $_.Extensiondata.ReconfigVM($spec) }
The appeal for each VM of separately in a foreach loop.
The VirtualMachine object is available through the Extensiondata property. So, you can call the ReconfigVM method on this property.
Tags: VMware
Similar Questions
-
I have windows xp pro. whenever I try to minimize all the windows they don't show in my taskbar.
You have only one monitor and your system is configured to use a single monitor?
This can occur if you have several configured monitors and one of them are not connected or are turned off that you can't see reduced tasks.
Whatever it is, you should be able to see a task enlarged, restored or minimized (unless the application has been configured to hide the task in the task bar).
-
Need a script to change the password of admin for all the VMs (windows)
Need a script to change the password of admin for all the VMs (windows)
Hi LucD,
Need your help about changing the password to root for Linux VM.
It throws the following error when I run on Linux VM
Invoke VMScript: 10/04/2013-16:52:02 Invoke VMScript Could not authenticate with the guest operating system by using the supplied credentials. Thank you
Suresh
-
dkafox1 lost all THE WINDOWS updates that THEY ARE NOT INSTALLED UPDATES
Original title:
dkafox1 lost all THE WINDOWS updates that THEY ARE NOT INSTALLED UPDATES, more problems with windows update. May HAVE a PROBLEM WITH REGISTRATION BUT DO KNOW NOT if this msi I HAVE HELPED.
I have windows 7 x 64 Version 6.1.7600.16385. My windows update has only downloaded and installed a fix (KB947821 on 22/03/14. In the event err log # 2147942487command line: "C\:WINDOWS\SYSTEM32\WUSA '". "»» "EXE" "Windows Update Troubleshooter said" search for missing or corrupted files. I did a sfc/scannow and everything was fine, that the settings are incorrect... Went to computer management by looking at the windows log. Event ID was found in respect of the implementation of 3. Looks like I've lost all my updates. Window update is only showing KB947821 HOT of difficulty. All my other downloading updates for the past two weeks included Microsoft Office Update that I can't see anything there all gone. I check the installed updates and 14 updates that don't settle all gone. Windows Update indicates any problem or error #. It says Windows update installed "Never". I tried the solution to the difficulty of corruption problems MSI software update registration. Help I don't know where to go from here. I ran the windows Memory Diagnostic tool, which came with no error. In the community he sent me to back registry which I do not know how to do. Can I save on my hard drive or another source. He says type reedit32.exe. I have the windows 7 registry editor wants me to save the registry key or subkey > I do not know what files to back up or export. I'm not computer savvy, but I do what I can do better. Had problems with windows update not install and now not download or install 2 MOS. So where and how can I know what updates I need after that this problem is corrected. Thank you
If you want Office 2007 updates to appear in the installed updates again, you would need to uninstall/reinstall Office 2007 and install all the updates again.
Assuming that Office 2007 is installed & working properly and no update is offered when you run a manual check for updates now, you might want to leave enough alone (that is, do nothing) - then see if the 2 updates for Office 2007 SP3 be released next Tuesday (a) receive, (b) successfully install and (c) are listed in the installed updates later.
PS: The possible causes of the problem are messing with registry cleaners, messing around with the Software Distribution folder, and the fact that it was a computer refurbished when you bought it.
-
Script to find all the VMS with dates/no tools installed.
Hey,.
I need help guys. I need a script that finds all VMS in vCenter which do not have the tools installed or tools or outdated. I also need the script to generate the following data in a CSV file. Name of the virtual machine and the State of the tools (not installed or outdated).
Thank you guys.
Good suggestion. 'Get-View - ViewType VirtualMachine' is much faster than ' Get - VM | Get-View»
You inspired me to go at maximum speed. So I moved all the filtering also to the cmdlet Get-View. The following script is used in my environment about 30% faster than what you suggested. My first script took me 1 minute 50 seconds. Your script 1,624 seconds. And the following script 1,110 seconds in an environment with about 500 virtual machines...
Get-View -ViewType VirtualMachine -Property Name,Guest.ToolsStatus -Filter @{ "Config.Template"="False";"Guest.ToolsStatus"="toolsNotInstalled|toolsNotRunning|toolsOld"} | ` Select-Object @{N="Name";E={$_.Name}},@{Name="ToolsStatus";E={$_.Guest.ToolsStatus}} | ` Export-CSV -Path VmToolsStatus.csv -NoTypeInformation -UseCulture
"Config.Template"="False" filter models so that you get only the virtual machines.
"Guest.ToolsStatus"="toolsNotInstalled | toolsNotRunning | toolsOld" returns invited with ToolsStatus toolsNotInstalled or toolsNotRunning or toolsOld.
Thanks to Eric Wannemacher to show me how to use regular expressions in a Get - view filter in his blogpost: VMware PowerCLI and Get-View filters.
-
Get all the VMS in givencluster on the specific data store
Hello
I need help, filtering of all virtual machines in a given Cluster, which are located on specific data warehouses. I go so far:
List of all the virtual machines in a given cluster:
Get-Cluster CLUSTER-TEST | Get - VM
List all the virtual machines on given data warehouses:
Get - VM - data store 'TEST-DATA store.
But when I try to combine these I still have all the virtual machines (also other clusters) on this data store:
Get-Cluster CLUSTER-TEST | Get - VM - data store 'TEST-DATA store.
I also found this command:
Get-Cluster CLUSTER-TEST | Get - VM | % {@{$_ .name = $_.datastoreidlist | %{(get-View-propriété Name-Id $_).}} Name}}}
It lists data warehouses for all the virtual machines in the given cluster. Now, I need that filter down to a specific data store.
I need assistance with anyway =)
With a nested Where clause and some not-so-nice trick PS it seems to work
$ds = Get-Datastore Test* | %{$_.ExtensionData.MoRef} Get-Cluster Test-Cluster | Get-VM | where {$vm = $_; $ds | where {$vm.DatastoreIdList -contains $_}}
-
HA 5.0 - what happens if not all the VMs of high priority start?
If you are using vSphere 5.0 with the new HA and I have selected for example 10 virtual machines with a high priority and the rest with a way by default, then after failing the medium priority VMs should not start until all the high VMs have been restarted.
However, if for any reason a priority high THAT VM does not start - what will happen with the environment? They will wait forever or is there any time-out value that will allow them to get actually?
Also, if all the high VMs restart successfully, when are usually begun average VMs? Is there any time or similar value that governs this?
Prior to 5.0, HA will re-start all virtual machines more or less at the same time. The priority of restarting been really used only to decide _which_ vms to failover if there are not enough resources to restart all the. In 5.0, HA will restart all virtual machines of high priority before starting to restart more low priority vms. This ranking is only with respect to the operation 'turned on. As soon as all virtual machines of high priority are turned on, HA will increase to restart the Middle, then the vms of priority below. High-priority virtual machines can still be booting virtual machines of medium priority starting power. Once HA has restarted VMS high priority it passes immediately to lowest priority those - it does not wait for 30 seconds. And as already mentioned, this ranking is only for initial failover attempt. If some high priority vm fails to failover for a reason, HA will not until failover of VMS of lower priority if the retry of the high-priority virtual computer restarts may occur during or after the lower priority vms are be toggled.
Elisha
-
Best Solution to backup all the VMS to ESX 3.0 Server
Dear admin,
What the best solution for the protection of all the server/VM inside the ESX 3.0 server if equipment malfuction?
As everyone has pointed out, HA provides defective material so really have good VMware ESX 3.5 HA, DRS and VMotion grouped where it gives you the flexibility to migrate VMs live/cold. If you have already a San and 2 ESX hosts that can be made. I would recommend that you add more memory to your hosts, because this is where performance counts. You design with N + 1 in mind, which means at least that your standby hosts can manage all the virtual machines if it must pass dead server. So, you could buy 1 server more or add more memory to contain virtual machines.
VMware.com has good resources for architecture and planning on the new cluster check it out for more details or visit the VIOPS.
If you found this information useful, please consider awarding points to 'Correct' or 'useful '. Thank you!!!
Kind regards
Stefan Nguyen
iGeek Systems Inc.
VMware, Citrix, Microsoft Consultant
-
Script to list all the VMS and their scsi controller
Hey guys,.
New to scripting and my boss is looking for me to get a list of all the vm in our environment and the type of scsi controller they have. It seeks to go to paravirtual controller and need to know what vm, he needs to hit. I saw there is a script to change the paravirtual but he won't do it again, just the list including vm has what. Any help would be greatly appreciated.
Thank you
Rich
Something like that?
Get-VM | Select Name,@{N="Controller Type";E={Get-ScsiController -VM $_ | Select -ExpandProperty Type}}
-
Try to find all THE objects that point to a column...
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE Production 11.2.0.3.0
AMT for Solaris: 11.2.0.3.0 - Production Version
NLSRTL Version 11.2.0.3.0 - Production
I have several patterns, all that have tons of objects that point to a column in a table.
I tried looking at v$ sqltext and v$ sqlarea, but it does not appear as expected.
There is a view that I can watch that will show me all the objects that relate to a single column?
my situation. Had to change the structure of data in this one column. Changed the default value of a Y a l I have packages, functions, triggers, etc... dealing with this single column. I make sure I have go through EACH of them and modify them to reflect the change in the column of the table. And still, it extends over several patterns that point to it.
I can't forget all the objects. Is there any one place to find it?
Thank you.Use the mode - DBA_DEPENDENCIES
select * from dba_dependencies where type= 'TABLE' and name = '
'; Another gross way...
select * from all_source where lower(text) like lower('%
%') group by owner,name,type; But, this will not search in the views & MView queries.
HTH
Vanessa B.Published by: Vanessa B on October 15, 2012 23:09
-added -
We sccm 2007 R2.
We used AD discovery to discover all the computer in AD and automatic installation. We are able to deploy the agent to computers.
I was on leave we I come back, I discovered that there us no computer system. An abducted person discovery method. I managed to re-create AD discovery of computers, but now all the computer shows that there is no agent installed.
Hi lefogwane,
Thanks for posting your question in the Microsoft answers Forum. For any questions about SCCM, please visit the following link:
http://social.technet.Microsoft.com/forums/en-us/configmgrgeneral/threads
-
Is it possible to receive all the updates for Windows XP after re-installing?
I realize that Microsoft no longer make new updates for Windows XP (form apart recent exception), but I was about to run a complete reset of my Windows XP Netbook when I thought to myself "I'll be able to get the updates?"
So my question is just that, if I turn my Windows XP Netbookreset, it will download all the necessary updates, to the point where Microsoft stopped, making them?
If not, is there another way to get the updates, I would need, or is it better to not run the factory reset at all.
Your help is very appreciated,
Sylar
Yes, Windows Update will always offer updates for XP that were issued before April 8, 2014.
There is a catch, however, (which may apply to the vilidjit) - Windows Update won't work for XP, unless service pack 3 is already installed. It is also possible that it will not work until IE 8 is installed, but I'm less sure of that.
If your computer is running after a 'restoration provided the factory' earlier level of service pack for XP, you must download and install service packs manually. If you have no service pack, you need to install sp2 before you install sp3 (if you have sp 1 or sp1a, you don't need sp2).
If you did a "restore to factory conditions", don't forget to uninstall any free trial of an antivirus program (the free trial period will be long expired). Use the appropriate removal of the manufacturer of the virus program tool.
https://support.Norton.com/SP/en/us/home/current/solutions/kb20080710133834EN_EndUserProfile_en_us
http://service.McAfee.com/FAQDocument.aspx?ID=TS101331
XP Service Pack 2 (ignore comments on "for computing professionals")--> http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=28
XP Service Pack 3 (ignore comments on "for computing professionals")-->
http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=24
Before installing sp3, read--> http://support.microsoft.com/kb/950717 and if you have an AMD processor, also read--> http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?cc=uk&lc=en&dlc=en&softwareitem=pv-60484-2
Download and install IE 8--> http://www.microsoft.com/en-us/download/internet-explorer-8-details.aspx
Go to Windows Update and download all post-sp3 updates. It may take several visits.
Install an antivirus of your choice.
If you have an XP install CD (as opposed to a "restore to factory conditions" system), do you a favor and wake a full sp3 with all updates of CD--> http://xdot.tk/
-
Win7 64 bit, all the devices code 52 after unsigned driver install
I am running Windows 7 Pro 64-bit in test mode, I accidentally forgot to 'fake sign' a libusb-win32 with "driver signature enforcement overrider" driver forehand and tried to installed, the computer froze during installation and then after a hard reset, most of the devices in the Device Manager show a code 52 (windows cannot verify the digital signature for the drivers required for this device). This error applies to the devices even with drivers faith. No USB devices work since the host controller will not work. I can't use my mouse or access the internet from this computer (wireless and ethernet also does not work).
I uninstalled entries hidden for the device I've initially tried to install and rebooted and still the problem has not disappeared.
I have no System Restore enabled.
Disabling test mode is not enough, even after rebooting.
delete the DLL and SYS to C:/Windows libusb0 did not help
Reinstall the Dell WLAN drivers does not resolve wireless
beginning with "Disable Driver Signature Enforcement" does not help
Unable to perform the backup due to not having any capacity USB or network
Frank_26080115,
See the link below to put on with similar problem and try the steps mentioned by"Gokul T" and check if it helps!
I hope this helps!
Halima S - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
When you try to delete web pages of my story on the site of a drop down bar area, I do what Firefox instructed by hitting the "ctrl, shift, delete ' key but some web pages stay." Even if I highlight each page and click on remove, they stay. How can I remove these web pages?
Entries in the bar location drop-down list with a yellow star (blue on Mac) at the right end of the bookmarks and Scripture cannot be cleared from the location bar menu drop down with the delete key.
You can delete this an item marked with a bookmark that appear in the list, if you open this url in a tab and click on the yellow star in the address bar.
This will open the "Edit this bookmark" dialog box and you can click on the delete button to delete the bookmark if you want to delete such an entry marked with a bookmark. -
I get these two error codes 65535 and 0x8000ff, I'm running Vista 32 bit, with only 1 GB of Ram and use a memory stick as a RAM boost option. System starts as usual, I can connect to the Web, but don't load all files, folders and applications. I have icons on the desktop, but like I said nothing loads. have you tried Live One Care safety scanner, downloads, but used to run, just get the codes above, no matter what I try. In desperation I tried a complete reinstall, still did not work and can not find the productkey.
Thanks for the reply, we, ve decided that the hard drive is shot to pieces, and will install and old windows xp disc i've got. to solve the problem.
Maybe you are looking for
-
How can I change the default start in 32-bit mode mode
This is the message I get when I try to download my music to Musicnotesorder: Sorry, this plugin requires that your browser run in 32-bit mode. To change the startup by default Firefox 32 bit mode, click on the screen and select the menu item: "Show
-
My I Mac computer is older than 6 years and became slower and slower. I added the memory once in the past which has contributed to the speed. He was clocked at 2.66 Ghz Intel Core 2 Duo for a processor and memory is 4 GB 800 Mhz DDR2 SDRAM. I wond
-
Asdking updates keep me to download SP 4
Why updates ask me at the bottom of the load SP 4. I have windows XP
-
I got a PhotoViewer keychain as a gift and when I went to install images on the subject, he said that not being able to complete the format on removable disk (i). How can I fix?
-
Suddenly my laptop is not able to broadcast on one of my devices? Never had this problem
All of a sudden last week none of my devices at home see my Windows Media Player to stream from. Never had this problem before. Everything is set up exactly where it was before this issue was raised. I tried many options in the last week, and again,