Help to try to speed up the Get-HDD ScsiCanonicalName
I'm working on a small script that will eventually be used to delete ROW, but for the moment only for testing purposes, I call you only Get-hard drive.
My current code is as such:
Get-disk hard - VM $vm DiskType - RawPhysical | where {$_.} {ScsiCanonicalName - eq $i.GKUUID}
where $vm is an object of a previous call to get - vm and $i.GKUUID is the naa # from a CSV file.
I'm sure that my slow descent is from this line, even when all of the CSV file contains RDMs leave as a single virtual machine, so that get - vm is called only once, the script takes much longer.
I'm pretty new to powerCLI in general, so I hope it's a faster way to find the hard drive.
Here is the information that I have provided with:
Action GKUUID GKHostDeviceName ESXCluster GKDeviceName ArrayName ServerName
Delete "vm" 00000000000000000000000000000000 "cluster name" vmhba:CX:TX:LX 0000 0000-VMAX-X \\.\PHYSICALDRIVE34
Thank you
Hello, trevor12087-
One thing that comes to mind is how you receive information from the hard disk for the given virtual machine. It seems that you call Get-hard drive for each line of the CSV. You could optimize things by calling this cmdlet less time (for example, once a VM). Then, store the hard disk of the virtual machine objects in a table, and _then_ get the info you want on each hard drive (disc name found by ScsiCanonicalName). Who will be a more code (for example, action of group-object), but should result in a more rapid overall performance.
But, your desire to speed up Get-hard drive, or expedite at least to get the info of the disk hard as you want, reminded me that we at vNugglets has written such a function earlier. This function gets Info for 'ordinary' VM - both for the virtual disks hard disks for RDM (including the ScsiCanonicalName). So, I posted now the function to get the disks in VM and RDM using PowerCLI.
This feature will allow in your case - not by speeding up the hard drive Get, but by eliminating the dependence on it (do not use at all). You can use the function to get drive information you want / need and with a significant speed increases. For example, I tested against a particular VM with RDM:
method of retrieving disk information | run duration |
---|---|
Cmdlet Get-hard drive | ~ 26 s |
Function get-VMDiskAndRDM of vNugglets.com | ~2. 2 s |
Thus, about 10 x performance increase - nice! And that's without rewriting as indicated above in paragraph 0. You can also increase performance by only calling the function once per VM.
Anyway, you can read all about this function at, once again, get drives of VM and RDM using PowerCLI. How does do for you?
Tags: VMware
Similar Questions
-
My "Get Mail" button is so slow to implement my emails... click it several times... move on something else and come back and it worked. How can I speed up the Get Mail option?
try to disable parsing of messages and see how you go.
-
I am running the latest version of Chrome, windows XP. The first time I tried, the program could not find "iertutil.dll. I used revo unistall to remove Silverlight, down downloaded/installed the DLL, downloaded again Silver and got this error when I tried to install.
Anyone?Hi Timm, P
I see that you get an error when trying to install the silver light. I'll help you with this problem.
I suggest you to ask your question in the Silver light forums here: http://social.msdn.microsoft.com/Forums/en-us/category/silverlight
Thank you.
-
When I try to install Firefox, I get an error "could not open the output file. I used Firefox before and it doesn't work anymore, so I uninstalled. Cannot re - install now.
This has happened
Each time Firefox opened
I tried to download firefox.
User Agent
Mozilla/4.0 (compatible; INTERNET EXPLORER 6.0; Windows NT 5.1; SV1; AntivirXP08; GTB6.3; .NET CLR 2.0.50727; MS - RTC LM 8)
When you click on the download link on GetFirefox.com, you should be asked if you want to run or save the file. If this situation occurs when you try to run the download, try instead to record and put the file on your desktop or in a similar place, where you are certain that you can find.
When the download is complete, try double-clicking on the downloaded file in the normal Windows Explorer (browse your way to the file from the desktop). This should start the installation.
If, in the Explorer window, you notice that the file seems to be missing the Firefox icon orange/blue, right click the file and select Properties. The image should look like the attached picture (except that mine is in Danish, but that is irrelevant) if saved correctly - if it don't look like this, would you please describe the content or attach a screenshot of the box. Especially what it says under "File Type" - it must be 'program '. If this isn't the case, will have to focus on what could be the problem here.
A bit off-topic, your Internet Explorer seems to be quite a bit outdated (IE 6, where the current version is IE 8), so I highly recommend that you try to run Windows Update to get your system up to date. Is it as a society (such as a thin client Terminal Server computer) system, this is not possible, and most likely, your system administrator will have to help you.
-
I am trying to add my outlook email account to the Mail app, but because it's the same email for my iCloud, for some reason, they are linked, and I discovered that I need to disconnect from iCloud, and then add the outlook account.
But when I try to disconnect from the iCloud in system preferences > accounts on the internet, it says I have to create a separate password - but when I get one it says "passwords do not match"? I tried to do different and same, nothings working: S
The dialog box is like this:
[Stop using iCloud?]
Create separate password for (name of the admin account)
-You will no longer be able to log in or unlock your screen with your icloud password, and you will need to remember two passwords separately.
iCloud password: __________
New password: __________
Check: _
Index of password: __________
[Use the separate password?]
Not sure why that is, that the password does not when it's supposed to be the new s password?
Also, I would like to know what to put in the box check?
Help much appreciated!
Thank you
Oh wow. I just realized I was leaving the case confirm the void and the message "password does not match" mentioned. I just need to retype my password. Hilarious that I have not worked this one earlier.
-
Pavilion 15 p002st: I need help on the speed of the processor (HELP)
When the computer is idle when browsing the Internet seems same 2.9 GHz processor 2.6. But when I went to the game processor speed 2.1 GHz fixed. Please help I need to increase the speed of the processor. If can be found, why wouldn't you be?
Let me put it this way I wrote may be cancelled...
System idle 2.9 Ghz
2.1 game set
How to play 2.9 can I do?
HP Pavilion 15 p002 st
AMD 10 5745 M
HD8610G & R7M260
I have an older AMD desktop computer and it runs something called AMD Cool and quiet - which causes the processor to slow down when is not necessary. I like it because it causes run cooler, thus extending its life.
You should check to see if you have it on your PC.
Disable it CAN allow your CPU to run faster on a regular basis - it's worth a try.
Good luck
-
Get 810 error message when you try to connect to the VPN using L2TP protocol
Original title: L2TP will not let me connect.
I am in Workstation 9 and in each virtual machine, I have an AD - DC (2K8R2Enterprise), CA and RRAS (2K8R2Enterprise) and my last vm is a win7 (they are all tests). All are not updated, but the PPTP, IKEv2 work without problem. The second server that has the CAs and RRAS is a member of the AD - DC server. The Win7 is not on the domain and I have Win7 a client certificate. I have ensured that the CA root of trust is in the user store and computer Trusted Root CA. I have also ensured that the Win7 client certificate is in the user store and personal computer. I get a 810 error message when I try to connect to the VPN using the L2TP protocol. I have exhaustively studied this problem and I can't find a solution to this problem. I also raise the functional level of the domain to 2K8R2.
I think this should be a simple and easy solution, but where can I find the answer?Please help me.Thank you for your time.Allan.Hi Allan,
The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the Forum TechNet site:
http://social.technet.Microsoft.com/forums/en/category/w7itpro
If you need any other assistance, let know us and we would be happy to help you.
-
I never use MSN but when I try to uninstall it I get "sorry impossible to uninstall you must be connected to the internet" even though I am connected via DSL how can I overcome this obstacle and uninstall?
original title: uninstall msnHello
I suggest you to see link and check if it helps.
http://answers.MSN.com/solution.aspx?SolutionID=115dc6c5-4ae7-4e38-8e0b-3eac07d020faThe question you have posted is related to MSN and would be better helped by MSN support. Please visit the link below which offers the best support.
https://support.MSN.com/default.aspx?mkt=en-us&WA=wsignin1.0&St=1&wfxredirect=1For reference:How to contact MSN customer serviceIt will be useful. -
Original title:
Windows Installer.
When I try to install anything I get the following message: "service Windows Installer could not be accessed. Windows can run in safe mode or Windows install not installed correctly. I'm not running in safe mode. This problem started in the last day or two and there have not been any changes to my computer. I'm under Winsows XP Professional, 32-bit, service pack 3. Could you help me solve this problem? Thank you.
HelloYou can try the steps from the following link and check if it works:""The Windows Installer Service could not be accessed "error message when you install a program in Windows XP "Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:322756 (http://support.microsoft.com/kb/322756/) how to back up and restore the registry in WindowsLet us know if it helps! -
Windows does not remember the setting.
When I try to connect to the net on my laptop LG I often get the message saying that windows could not connect and I have to go into the advanced settings and check the box that says allow windows to configure the network. My problem is that windows doesn't remember this setting and that I need to check the box almost everytime I try to connect. He made it with my desktop so I was wondering if anyone has a solution for this.Using a wireless router? What is the brand and model of your router? I don't think it's a matter of windows.
Troubleshooting in windows wireless network connection problems
http://Windows.Microsoft.com/en-us/Windows/help/wireless-network-connection-problems-in-Windows
Hope this helpful. Post back if your problem is not resolved in the link above.
-
Original title: error message
When you try a yahoo search I get the error message "windows cannot find (web site name) make sure you typed the name correctly.
Hello
· What web browser do you use?
· Would which site you find?
· The issue is that with Yahoo search?
· Exactly how you try to search? Web site or toolbar in Internet explorer?
You try to use the Bing search engine to search for Web pages online. To access Bing search engine type www.bing.com in the address bar. Please provide us with more information about the issue to help you further.
-
Original title: help and Support under XP
The installation option "search" in Help and Support is OK, but if I try to open any underlined green/blue link I get the error message "page is not available" also a circle full red bar. This always happens in any response. Obviously something is damaged - but as you please and how to fix it. John
Hello
· You have installed Windows XP Service Pack 3 on the computer?
· You are able to browse normally in internet explore?
This occurs if the Microsoft HTML Help control is blocked (probably by a Microsoft Update) by defining a "Kill bit" in the registry. To resolve the problem, upgrade to Service Pack 3 , which publishes an updated version of the hhctrl.ocx control.
If this doesn't help, run the following command from start, run dialog box:
Regsvr32.exe hhctrl.ocx
Press ENTER
-
I try to go to the website of tomtom and I get an error message DNS-cannot find server.
I try to go to the website of tomtom and I get an error message DNS-cannot find server. I tried the computer desktop and laptop and do not know what the problem is. I thought it was the Web site, but I could put my internet work top. Help, please.
How your internet connection are connected, if you use Proxy, then try to uncheck bypass for local addresses...
If you use a direct connection without proxy, even try to open in another browser, firefox IE, if its opening try to update the browser to your desktop computer.
Thank you & best regards
Alex k
-
When I try to install SP1a, I get a message saying that the file is corrupted.
Need help, Im confusedOK, so I have windows XP I am trying to install on my acer aspire 5100. Its an old copy that came with another computer. All I'm trying to do is to clean the computer clean and start over. Installation was successful, but when I try to install SP1a I get a message saying that the file is corrupted. I can't connect to the internet of him because the surrent version doesn't support WPA2. So im downloading on an external HD and try to run it from my computer. When you try to install SP2, it says that the file is not a valid Win32 application. Any help / ideas would be greatly appreciated, thanks in advance!
Again, your best option is to order a set of Acer recovery disks.
If you insist on doing things the way hard, then check first that download, you have to SP2 (you don't need SP1a because it is part of the SP2) is correct - check the hash of the file downloaded against one published (where you downloaded of?)
If the hash is correct and then try running SFC/scannow from a command prompt - it may work, depending on how the software manufacturer set up the drive, but it is preferable to use in conjunction with a good OS disc, rather than the recovery disk.
-
When I try to "save under" I get a message "Initalising the root folders to display" and then the screen freezes. Sometimes when I click several times on the target folder it opens other times it does not. Any thoughts?
Hello
You try to save files using Microsoft office?
If so, this article should help you
The program stops responding when you try to open or to save a file in an Office 2002 program, in an Office 2003 program, in a 2007 Office program or in a program Office 2010
http://support.Microsoft.com/kb/313937
If its with a different program and then check if the problem exists in Safe Mode, if the computer works as expected in mode without failure, then we can solve the problem in the clean boot state.
Step a. refer to the article below for the procedure safe mode in Windows XP
A description of the options to start in Windows XP Mode
http://support.Microsoft.com/kb/315222
Step b. You need to perform a clean boot to find the program that is causing and then disable or remove.
How to configure Windows XP to start in a "clean boot" State
http://support.Microsoft.com/kb/310353/en-us
Note: When you are finished troubleshooting, follow the steps as explained in the article to reset the computer to start as usual.
Visit our Microsoft answers feedback Forum and let us know what you think.
Maybe you are looking for
-
6s deletion again, cause emails sent without warning or apparent.
During an attempt to find the errors in the composition of any email, I had important text permanently deleted without my choice and without warning. Happens after that I have 'select all' then 'talk', and while speaking, if I touch any key on the ke
-
Mid 2011 Macbook Air 5.1 keeps restarting
So, recently, 11 inch MBA MOM began to close and restart all of a sudden. Once it starts it get this error. Can someone help me out here? Anonymous UUID: 7A7F0870-6BA7-399F-6970-21E4A6BFF782 Wed Mar 9 23:56:41 2016 Panic report *. panic (the appellan
-
Do you need to be online to download windows updates?
I'm on Vista Ultimate, do you need to be online to download Windows updates?
-
How can I fix Windows Update? -Error 8000FFFF for Vista Home Premium
Your suggestions to other users did nothing to solve the problem. I always get: 8000FFFF with update microsoft Windows Vista Home Premium. I ran Microsoft fixit as well as your suggestions for the record of change of name (updated - and reset file)
-
Driver scanner HPScanjet 6200 Windows-7
Looking for a driver (if all goes well for free) for Windows 7 for HP ScanJet 6200 C. Any ideas?