Adding totals for some to this script
$Report = @)
Get-datastore abc123. Select-Object - property name,
@{N = "CapacityGB"; E = {[math]: tour ($_.)} (CapacityGB, 0)}}, @{N = "FreeSpaceGB"; E = {[math]: tour ($_.)} (FreeSpaceGB, 0)}} | FreeSpaceGB tri-objet | name tri-objet | % {
$ReportRow = "" | Select-Object Name, CapacityGB, FreeSpaceGB, UsedGB
$ReportRow.Name = $_. Name
$ReportRow.CapacityGB = $_. CapacityGB
$ReportRow.FreeSpaceGB = $_. FreeSpaceGB
$ReportRow.UsedGB = $_. CapacityGB - $_. FreeSpaceGB
$ReportRow.SizeGB = $_. SizeGB
$Report += $ReportRow
}
The following books... but I really need at the bottom of the above, the totals of output... im not sure how to integrate it into my little script.
so I would really like that...
....
....
....
Total capacityGB
Total freespaceGB
Total usedGB
advice please...
Try something like this
$Report = @)
Get-Datastore abc123. Select-Object - property name,
@{N = "CapacityGB"; E = {[math]: tour ($_.)} (CapacityGB, 0)}},
@{N = "FreeSpaceGB"; E = {[math]: tour ($_.)} (FreeSpaceGB, 0)}} |
Sort-Object Name, FreeSpaceGB. % {
$ReportRow = "" | Select-Object Name, CapacityGB, FreeSpaceGB, UsedGB
$ReportRow.Name = $_. Name
$ReportRow.CapacityGB = $_. CapacityGB
$ReportRow.FreeSpaceGB = $_. FreeSpaceGB
$ReportRow.UsedGB = $_. CapacityGB - $_. FreeSpaceGB
$Report += $ReportRow
}
$ReportRow = "" | Select-Object Name, CapacityGB, FreeSpaceGB, UsedGB
$ReportRow.Name = "totals".
$ReportRow.CapacityGB = $report | Measure-object-property CapacityGB-sum | Select sum - ExpandProperty
$ReportRow.FreeSpaceGB = $report | Measure-object-property FreeSpaceGB-sum | Select sum - ExpandProperty
$ReportRow.UsedGB = $ReportRow.CapacityGB - $ReportRow.FreeSpaceGB
$Report += $ReportRow
$Report | FT - AutoSize
Tags: VMware
Similar Questions
-
HELLO, I TRIED TO UPGRADE TO WINDOWS 10 MONTHS NOW. MICROSOFT SAYS MY SYSTEM IS COMPATIBLE BY FAR, BUT FOR SOME REASON, THIS MODEL OF DELL DOES NOT ACCEPT IT. I HAVE A DELL STUDIO 540, X 64 BASED PC. PLEASE HELP, I REALLY WANT TO TRY WINDOWS 10.
Original title: WIDOWS 10 UPDATE
If Dell has said that it is not compatible, I wouldn't do it. Dell needs to have the drivers and software for it or it is not working properly. I would make sure you call, email or web-chat with Dell and ask them first.
If you really want to try anyway (at your own risk), you can, but I suggest that do you a full picture of backup of your computer in order to "undo" that and go back to the way you are today if something is wrong or you don't like it.
-
remove totals for some dimension values
Hello
I have a PivotTable in which I need to display totals for certain categories and for other categories must be no totals. Could you please let me know if this is possible?
Here's an example, for the C product label should be total measurement.
Thank you.
Kind regards
Oana
Hello
not possible out of the box. Totals everywhere or nowhere.
-
Now, he opens with "not responding". I can open it in safe mode but nothing works. The button "restore" & "start new session" does not work. It does not connect to any web site. I had a lot of tabs open when it crashed. There is no crash report (latest is 6 weeks ago).
If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.
- Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
- Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')
See also:
- http://KB.mozillazine.org/Error_loading_websites
- https://support.Mozilla.com/kb/error+loading+Web+sites
Create a new profile as a test to see if your profile is the source of the problems.
See "basic troubleshooting: a new profile:
There may be extensions and plugins installed by default in a new profile, so check that in "tools > Modules > Extensions & Plugins" in case there are still problems.
If this new profile works then you can transfer files from the old profile to the new profile, but make sure not to copy corrupted files.
See:
-
Looking for a an example script...
I'm looking for some samples of script or direction for the following:
1 copy all the .vmx on the ESXi host files to a specified location.
2 get an amount of storage space used by each virtual machine on a host.
The attached script is the answer to your first question and copy all files .vmx on the ESXi host at c:\users\robert:
I have to attach the script because it contains brackets and the forum software has problems with them.
Robert
Post edited by: RvdNieuwendijk
-
Gmail and all the others crash in "Oops!" Google cannot load this page for some reason any
I am running 10.10.5 and Firefox 41.0.2. Sophos said me no problem.
In case of Gmail or any other program running in Firefox, the program stops to the message of the screen;
"Oops!""Google can not load this page for some reason any."
The box Try Again has no effect.
However the use of "Most visited" (top of the line LH of Firefox screen) returns to place that quit, without loss of data
Clear the cache and delete cookies only from Web sites that cause problems.
"Clear the Cache":
- Firefox > Preferences > advanced > network > content caching Web: 'clear now '.
'Delete Cookies' sites causing problems:
- Firefox > Preferences > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".
If the deletion of cookies did not help, then it is possible that the cookies.sqlite file that stores the cookies has been corrupted.
- Rename (or delete) cookies.sqlite (cookies.sqlite.old) and if present remove cookies.sqlite - shm and cookies.sqlite - wal in the Firefox profile folder in the cookies.sqlite case has been corrupted.
You can use this button to go to the current Firefox profile folder:
- Help > troubleshooting information > profile directory: see file (Linux: open the directory;) Mac: View in the Finder)
- http://KB.mozillazine.org/Profile_folder_-_Firefox
-
For some time now as bookmarks and Tools menus will be dark outside and only reveal after a quick mouse above. I am running windows 7, more recent updates and the latest version of Firefox. I have linked an example of picture of what happens to my bookmark menu.
Hello, you can try to reproduce this behavior when you start firefox in safe mode, once? Otherwise, it might be a problem with hardware acceleration...
-
It stopped, for some reason any functional on firefox, a week or two it y a. I tried to uninstall and reinstall firefox but the problem persists. I've tried chrome and Explorer, and they don't seem to have this problem.
I would not stop using firefox but it so annoying that at least i can fix it, I have to change my browser!
Try to disable the AVG Safe Search add-on or the safe browsing.
-
Hi, I have a macbook 13 "retina pro and for some reason any when I try to plug in my external hard drive or a computer SD cards don't regencies them because they do not open on my screen. Does anyone know how to fix this?
Have you looked in the Finder?
-
I had installed a plugin to add the tab "duplicate" to right-click menu for tabs. This was lost when I stupidly updated FF4 (my bad). I don't remember how I added this feature, which is STANDARD with IE8, FF3.6! Tab Manager disobeys. WHY IS - IT NOT A STANDARD CONTAINED IN FF4?
Could this be the add-on you think:
https://addons.Mozilla.org/en-us/Firefox/addon/duplicate-this-tab/
-
For some reason any I to open a new tab. How can I fix this please?
For some reason any I to open a new tab. How can I fix this please?
You are welcome.
If please, return to the forum and click on the button 'Resolved' next to the answer that solved your problem. Thank you.
-
I have these multiple .exe running on my registry? security of wireless modem?
I have 2 questions:
1. I use a wireless modem to get on the internet at Virgin Mobile Broadband2Go device. Is it possible for some to get access to my PC, when this device is active?
2. I think that someone is due to ghosting my PC. On my registry, I have 2 of the following: iexplore.exe attributed to administrator. Then I have an explorer.exe attributed to administrator. I have 6 svchost.exe running 2 assigned the Local, 2 assigned to network service and 2 running service attributed to the system. Can anyone provide an answer why I have these multiples, exe running on my registry?
Thank you very much
GreenGiant
HelloYes, it is possible to gain access to your computer; but not without your permission. The firewall on the computer prevents any unauthorized entry. Refer to the following articles.What is a firewall?Windows FirewallHow will I know if a wireless network is secure?When you say "Record" do you mean "Services" in the Windows Task Manager. Its common to have these processes or services to run in the background.'iexplore.exe' means 'Internet Explorer'.'explorer.exe' means 'Windows Explorer'.What is svchost.exe?You can scan your computer with MSE to check the virus or malware if it affects your performance.The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.
http://www.Microsoft.com/security/scanner/en-us/default.aspx
Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.
Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.
Hope this information is useful.
-
When I start my laptop I get "your system is low on virtual memory. Windows is increasing the size of your virtual memory paging file. This process may be denied requests for some applications. "and my laptop takes forever or does not open my programs. any help? Thank you.
less than low disk space,
What seems to be the case, it's that your windows is having a hard time resize its file for virtual memory.
my suggestion is to remove "auto" at that time, and then set a custom format.
I recommend that you set the initial size of 2 and max at 1152.
Here's how to put a link:
http://Windows.Microsoft.com/en-us/Windows-Vista/change-the-size-of-virtual-memory
DB·´¯'·.. ¸ > DatabaseBen, Retired Professional - Analyst - Database Developer's - accounting - former veteran of the Armed Forces - @Hotmail.com 'share nirvana mann' - dbZen ~ ~ ~ >
-
Original title: Start menu
Hello
I have a problem with my Start menu in vista.
For some reason a cant open my "documents" link in the right-hand corner under my avatar.
His explains the configuration (I tried to start the copy and stick to the desktop screen) operation because there is an unexpected error of cant.
This is the error code 0 x 80070057 settings are incorrect
and then the registry of reg key change for key documents.Well... How can I get my link back to work again?
Because if I click right mouse on the link and the properties of its white screen bit the properties of documents.
One thing that I remember is that the path to the documents is c:/user/documents instead of the documents.
But the name of the map itself I've already renamed as 'documents' even on C: / as on the windows user, but the cushion that him is a "docu".
And if I want to configure target to DOCUMENTS it says incorrect "whether it is the right path to the target."
And if it is resolved in its ready to use again, I guess?Thank you already!
My best regards,
Kenneth(Sorry for this type of bad English, I'm Dutch so...)
http://ImageShack.us/photo/my-images/521/naamloosxy.jpg/
Sorry, I jumped over to my other account but that's what its all about even copy / paste gives me errors, I need to get the path of documents users card return related to the link in my Start menu.Resolved, I found the answer
http://forums.techarena.in/Vista-Help/1005434.htm
->>
http://www.Vistax64.com/tutorials/148461-personal-user-folder-restore-missing-folder.htmlThank you!!
-
I have Windows 7 and for some reason, I can't install Adobe Type Manager on my computer. I need ATM to install the DIN font but I'm having no luck what so ever. I can see the police DIN in my Dropbox, but it appears like this: - ._DIN-"BOLD", no file extension. what I am doing wrong? What is Mac?
(1) Adobe Type Manager (ATM) is not compatible with any version of Windows beyond Windows XP (32 bit only). Try to install ATM on any newer version of Windows can actually disable the ability of the rendering of Type 1 and OpenType CFF fonts window, requiring a reinstall of Windows.
(2) there is no need to use the ATM to install fonts on Windows.
(3) the name of the file ._DIN-bold is indicative of a police of MacOS. These fonts may not be installed on Windows systems.
-Dov
Maybe you are looking for
-
New iMac and Macbook Pro to run Snow Leopard?
Hello, I just record music using Garageband that runs on Snow Leopard. My old 2008 iMac is dying and I need to know: what is the newest iMac or Macbook Pro which will be held in Snow Leopard? Thank you!
-
HelloI have a new problem now with my Sony Xperia z2... The color of the screen changes automatically... When I take a screenshot, or click on a picture of my camera... wwhen view you the picture later, the picture is normal for 3 seconds... then the
-
Photosmart 7960: Photosmart 7960: color printing problem print Brown instead of Red
Instead of printing red print Brown.
-
Ghost car blocks disk access USB external?
I have a WD MyBook drive on an external USB connection. No particular reason, I can relate, he arrested recognized by my system Win7. He has worked before, but now, instead of him in the 'Computer' window, I have a completely false Ghost with a new d
-
Need help with password lock screen
Dear Sir I can't lock screen with password in my window 7 64 bit OS. Kindly tell me how to lock the screen with password