Check that file within comments system partitions are correctly aligned
An attempt to follow the best practices of VMware, I am creating a script via powerCLI that will tell me whether or not the system partitions are aligned. I realize that, for 2008, and the systems operating newer, partitions are automatically aligned, however for the old servers I would check and make sure that they are also well aligned. I wrote the script following, but for some reason, it does not:
$vms = get - vm | where {$_.} PowerState - eq "Receptor" - and $_. {Guest.OSFullName - match "Microsoft Windows *"} | name sort
{foreach ($vm to $vms)
$wmi = get-wmiobject-class "win32_DiskPartition" - namespace "root\CIMV2" ComputerName - $vm
$wmi | Select Name, NumberofBlocks, Startingoffset
#Alignment = Startingoffset / blocksize
$blocksize = $wmi | Select the block size
$startingoffset = $wmi | Select startingoffset
$Alignment = $startingoffset / $blocksize
}
I'm doing this code, check partitions for each virtual machine in my environment and export to a spreadsheet data it obtains. No matter who would be able to help me to get this script working properly?
Try something like this
$vms = Get-VM | where {$_.PowerState -eq "PoweredOn" -and $_.Guest.OSFullName -match "Microsoft Windows*" } | Sort-Object -Property Name$Report = @()foreach($vm in $vms){ Get-WmiObject -Class "win32_DiskPartition" -Namespace "root\CIMV2" -ComputerName $vm | %{ $row = "" | Select VM, Partition, NumberofBlocks, Blocksize, Startingoffset, Alignment $row.VM = $vm.Name $row.Partition = $_.Name $row.NumberofBlocks = $_.NumberofBlocks $row.Blocksize = $_.blocksize $row.Startingoffset = $_.startingoffset $row.Alignment = $row.startingoffset / $row.blocksize $Report += $row }}$Report | Export-Csv report.csv -NoTypeInformation -UseCulture
Tags: VMware
Similar Questions
-
With my new desktop Windows 7 hardware configuration, I decided (before you consider VMware Player) to retry Windows Virtual PC; but instead of using Windows XP Mode (which is useless because the disk is inaccessible), I decided to use my own Windows XP Pro OEM. [I use it for games that won't play on Win7. Security issues are also irrelevant, because for these games, I'm not likely to use the Web. Of course, I always Windows Security Essentials in my OEM customers.]
The problem here is, whenever I have to Activate my integration, features VPC opens as if the Windows XP Mode have been installed (it is not); and when the screen is turned on, it asks my user name and password. I tried to use the name and the password that I entered when installing my XP OEM; but I get this message:
"The system could not log. Make sure that your user name and domain are correct. Type your password again. Letters in passwords must be entered using the proper case. »
How is it that I can't access my Windows XP OEM guest when the integration features are enabled? Only when they are disabled can I activate my OS; invited but it's counterproductive, because I won't be able to move items from my host in my comments. Once more, if I should decide to use VPC as my host VM for Linux Ubuntu/Kubuntu, what chance is there that the activation of the integration features will lock out me my Linux guest?
Another thing: in the Start Menu under Windows Virtual PC folder I have shortcuts for ' Windows Virtual PC ' or 'Virtual Machines' (according to the Win7 version I use, 32-bit or 64-bit); but I also have "Windows XP Mode", I have not installed. How is that possible? I checked the shortcut, and point it to rundll32.exe. Should I just get rid of the shortcut, or I will incur damage to my VPC if I do?
Hello Cooky,
Please provide a detailed description of the issue.
I understand the inconvenience you encountered. However, I appreciate your efforts.
To get more information about it, we have a dedicated forum where these issues are dealt with and would be better suited to the TechNet community.
Please visit the link below to find a community that will provide the best support.
https://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro
I hope this information is useful.
Please let us know if you need more help, we will be happy to help you.
Thank you.
-
Original title: according to the license
The President complied,
I want to check that my windows operating system license on the website status, please informed how to check?
I suggest that you run the Microsoft Genuine Advantage diagnostic tool in normal mode (not safe mode) and copy and paste the results into a response for further analysis:
http://go.Microsoft.com/fwlink/?LinkId=52012
Run the tool and when it ends, click the copy button, open a text such as Word or Notepad file and select Edit, paste. You can paste directly into an answer here. Open a response, right click and select Paste.
-
I can't get the automatic updates on my samsung jack sgh-i616.
"Connection to the update server is not available. "Check your data connection settings and make sure that the device date and time are correct.
RESULT CODE: 80072ee7
-It is a windows mobile 6.1
Thank you very much! = DAs a guide.
This error code translates ERROR_INTERNET_CANNOT_CONNECT.
You may encounter temporary connection related errors when you use Windows Update or Microsoft Update to install updates
http://support.Microsoft.com/kb/836941Harold Horne / TaurArian [MVP] 2005-2011. The information has been provided * being * with no guarantee or warranty.
-
One of the pages of my site moves to the right when using anchors to scroll. I checked for Ghost off the page boxes and checked that all my 100% width images are actually 100%. I discovered that this problem is chrome and does not happen in Firefox. Any suggestions?
Thank you Brad, my ankles were lined up however they were in the Center. I am proposing to-100 and it solved the problem. Thanks for your help.
-
Original title: Link to Outlook g.mail
I'm loving g.mail at Outlook 03, but I get the following error message: the pop3.gmail of the host could not be found. Please check that you have entered the server name correctly. Pop3g.mail.com, server pop3g.mail.com, Prtotocal pop3, Port 995, SSL server without error Socket 11001, error 0x800CCC0D account No. Can someone help me with this problem?
Hi Eva,
Thanks for posting on Microsoft Community. According to your description, it seems that you couldn't configure Gmail on Outlook and you receive error 0x800CCC0F. If I'm not mistaken you have Microsoft Outlook 2003 is installed.
This happens usually when there are questions about the server. If you have not been able to set up the account successfully, I suggest you read this article that shows how to set up email on Outlook accounts.
If you have configured the account successfully, but I could not send or receive e-mails, you go through this article which has troubleshooting for this issue.
If this is not enough, you can replicate with the result, then we can help you solve more.
Thank you!
-
Can't send or receive messages for the IMAP account. The host 'IMAP' could not be found. Please check that you have entered the server name correctly.
Server: 'IMAP '.
Windows Live Mail error ID: 0x800CCC0D
Protocol: POP3
Port: 110
Secure (SSL): No.
Socket error: 11001You are in the wrong forum, if you cannot solve your problem here try
IMAP is a Protocol, you can use it instead of POP3, something inLet's not your e-mail configuration. A mail server name is something likeIMAP.example.org or SMTP.exemple.com or similar. -
Original title: "e-mail mistakes".
Recently, we lost all of our information on our laptop and have had to reinstall Windows and unfortunately we lost data, emails etc.
We are still after the reinstallation, this error to come (see below) when e-mail messages are downloaded. Don't know what to do at this point, really need help.
The host 'POP3' could not be found. Please check that you have entered the server name correctly.
Account: 'POP3 (1)', server: 'POP3', Protocol: POP3, Port: 110, secure (SSL): no, Socket error: 11001, error number: 0x800CCC0D"Trust" has written in the new message: * e-mail address is removed from the privacy... *
Hi Bruce, I'm setting up account e-mail again, as for the mail server, in my opinion, bigpond is our mail server.
I found a better link for you:
http://BigPond.custhelp.com/app/answers/detail/A_ID/12611/kW/Windows%20Mail/SNO/1
Best regards Steve. MS - MVP. MAIL. [DTS] UK. http://www.getsafeonline.org/
-
* Original title: INSTAGRAM BETA
I have an active instagram account but I can't access despite the fact that my user name and password are correct.
How can I fix?
Help, please.
You will need to contact Instagram. We have no knowledge of their systems
-
The host 'SMTP' could not be found. Please check that you have entered the server name correctly.'Report issue', account: 'POP3', server: 'SMTP', Protocol: SMTP, Port: 25, secure (SSL): no, Socket error: 11001, error number: 0x800CCC0D.I'm answering an ad on craigslist and Windows Live continues to appear, but will not send my email I can be reached at * address email is removed from the privacy * or 614-499-1541.Thank youStephen lawless
Your post has nothing to do with Windows Update.
You're not even close to have properly configured your e-mail account in Windows Live Mail.
You will find support for Win7 e-mail Clients in this forum: http://social.answers.microsoft.com/Forums/en-US/w7network/threads
You will find support for Windows Live Mail in this public newsgroup:
http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Windows.live.mail.desktopThrough your News Reader:
News://msnews.Microsoft.com/Microsoft.public.Windows.live.mail.desktop~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft
-
Can not connect to my tablet PC. When the powers of the Tablet, it ask for password and user name of ny, but when I get home it gives message to make sure that the name and the password are correct. I was on the shelf and I tried to change the workgroup and domain, it askes restart once I did c Hanger, but now I can not open yet. The PC is running XP and it is old, 15 years! Help!
Hi ERASMOTERAN,
Please see the below article mentioned on the Microsoft Policy on lost or forgotten the password.
Microsoft's strategy concerning lost or forgotten passwords
See also:
Keep secure passwords - Microsoft strategy on move the passwords
-
What I do when I get this message?
The host 'SMTP' could not be found. Please check that you have entered the server name correctly.
'SUBSCRIPTION', account: 'POP3', server: 'SMTP', Protocol: SMTP, Port: 25, secure (SSL): no, Socket error: 11001, error number: 0x800CCC0DHello
I doubt that the fault lies in Internet Logistics (what this forum is about).
I guess you have a problem with the configuration in your e-mail software (Outlook? Windows Live Mail? you don't tell us). Find tools, accounts or similar and triple to check the settings for sending server.
Kind regards
Hans
-
Original title: outlook.
The host 'smtp' could not be found. Please check that you have entered the server name correctly.
'Job', account: 'pop3', server: 'smtp', Protocol: SMTP, Port: 25, secure (SSL): no, Socket error: 11001, error number: 0x800CCC0D now that I signed up with outlook.com, I wish I had the other implemented to send emails, and anything else I might need to do. Is this possible without too much difficulty?If you use a POP3 account, you need an email like Windows Live Mail client to do. Outlook.com is Webmail.Help for Outlook.com is located in this forum
http://answers.Microsoft.com/en-us/windowslive/Forum/mail?tab=allWindows Live Mail help is in this forum
http://answers.Microsoft.com/en-us/windowslive/Forum/LIVEmail?tab=all -
My e-mail and password are correct when I try to configure my mail in Thunderbird, but I always get the error message: Thunderbird could not find your e-mail account settings.
I have also entered with Gmail and was assured that it is configured for IMAP
Thank you.
-
I can get mail in the mail of the window, in fact, it took all my yahoo box & put it in the Inbox for windows mail. I don't like that at all, and I can't send any email. Host error message cannot be found continues to come and I do not know how to find the host either. Help, please!
Partial error messages are not enough. We need to see the full message verbatim.Tools | Accounts | This account | Properties | Servers. Check the box "keep a copy of messages on the server. As far as putting the messages downloaded in return, the only way to do it is to send to yourself. Of course, this will completely change the message headers.Bruce Hagen
MS - MVP October 1, 2004 ~ September 30, 2010
Imperial Beach, CA
Maybe you are looking for
-
Hello! ITunes froze when synchronization/trying to add songs on my iPod Classic. And then the Finder froze while I tried this way eject it. I found myself having to just disconnect. Now my iPod reads without music! Argh. I accidentally unplugged the
-
How can I download Youtube videos on my mac? Real used to work and it does not longer.
I can't download YouTube more. I have FF 20.0 and use mac os x 10.8. Real used to work, but no more.
-
I have a time capsule as the main, extreme router as an extension of another wifi extend, but there are two new Express extended to the extreme, worked well, two days before the discovery of wifi slow down, after the discovery of two Express is not e
-
Installation of an optical disc (SD-2212) in a Satellite 1900 305 drive
The SD-2212 drive in my laptop failed. I bought an identical car, turned off the laptop, installed the new drive, back running the laptop and the drive is not found. I took the drive and replaced an old and preformed a restore of the system without r
-
Scanner is not able to scan a page in pdf format
I JUST BOUGHT HP 2515 PRINTER ink advantage ALL IN ONE. I LOOK to find out why my scanner fails to scan a page to pdf file, even if the options are to come, but after saving I m get a white page