Add the new hard drive in a txt file

Hello

I have list of virtual machines under 'cluster1' and there are specific VMs on a txt file and add thin secondary 10 GB to those virtual machines.

New disks will be created in the data store: DATASTORE1

Cluster_name: Cluster1

Can you help me on this. Thank you.

Get-Content C:\VMs.txt | %{
  $Cluster = Get-VM -Name $_ | Get-Cluster | Select -ExpandProperty Name
  $dsname = "DATASTORE1"
    }

  New-HardDisk -VM $_ -CapacityGB 10 -DiskType Flat -Datastore $dsname -StorageFormat Thin
}

Try like this

Get-Content C:\VMs.txt | %{

Get-VM-name $_.

New-hard disk - CapacityGB 10 - flat DiskType - data store "DATASTORE1" - StorageFormat thin

}

If the TXT file contains all the names of virtual machine, there is no need for the cluster.

Tags: VMware

Similar Questions

  • How to add the new hard drive RAID 5 on

    I have Dell Powerdege 2900 server and I need to merge the new hard drive in a RAID 5

    Hi Sabry75

    If you have open Manage Server Administrator installed, you can do the merge from there. It's rebuild.

    You can refer to the guide to using OMSA below, look under the virtual disks of re-engineering/migration: -.

    NOTE from the ADMIN: Broken link has been removed from this post by Dell >

    Let us know how it goes.

  • Add the new hard drive into the data store in ESXi 4.1

    Hi all

    I got ESX 4.1 installed on the Dell server, and I have 3 virtual machines on a data store.

    I added a new 500 GB scsi hard drive to the server,

    and I need to add it to the datasore or create a new...

    How can I see this new hard drive? and add it to the data store?

    Waiting for your help.

    concerning

    Abrams

    Oracle system engineer

    Abrams,

    That's all I can help you.  These instructions are based on the Perc 5 / i controller, which I think you have on our system.  You have not specified the server so I just assumed that this is so.

    1. unscrew the hot spare that you just made.  Follow this link from Dell.
    http://support.Dell.com/support/eDOCS/storage/RAID/PERC5/en/UG/HTML/chapterh.htm#wp1061343

    2 follow the link for the installation of virtual disks - http://support.dell.com/support/edocs/storage/RAID/PERC5/en/UG/HTML/chapterh.htm#wp1069357

    This link has three steps to void, skip the step on "spare parts of designate hot."
    a. create the virtual disks and select virtual disk options.   -Online steps to create another disk group and add the new disk to the disk group.
    (b) designate the drives hot spares (optional). =>, YOU CAN SKIP THIS STEP
    c. initialize virtual disks. -online must do.  just do not initialize the incorrect disk.

    After the step #2 c, you should be able to access the drive in ESXi or command-line (list of nmp esxcli devices).

    And no, you cannot add this manaully until do you step #2 above which is to define the disk group, creating virtual disks and initialize the virtual disk.

    Good luck.

  • Add the new hard drive, windows does not start now

    OK, ill be as specific as possible here

    Ive always had a few hard drives in my computer at all times

    A few days ago, I had problems with my windows 7 install that I tabled to the installation while I had all of my hard drives connected at installation time.

    2 days ago I decided to start over fresh with a windows 7 ultimate 64-bit. I also bought a new 64gig OCZ SSD for my OS.

    I disconnected all my drives except the SSD and performed a complete installation of windows 7 and all a well worked first go again.
    I then started to shut down my computer and adding a hard drive to the times and re starting and in ensuring that the drive letters came back how I got them I had on my previous built and changing them were nessisary.

    I installed my 5 drives in this case and the computer rebooted fine and everything was perfect until!

    installed hard drives
    1 SSD 64 GB
    2. 1.5 TB of storage
    3. 1.5 TB of storage
    4. 320 GB movies
    5. 320 GB games

    I copied all HDD 4. movies (only movies and music files) on disk 3.
    then I removed the hard drive of 4 and replaced by a new hard disk 1.5 TB and restarted the computer
    the computer starts very well and once loaded windows I coppied the movies and music of the new 1.5 TB hard drive back.

    now, I had

    installed hard drives
    1 SSD 64 GB
    2. 1.5 TB of storage
    3. 1.5 TB of storage
    4 movies 1.5 to
    5. 320 GB games

    This is were the problem started. I restarted my computer and it wouldn't start. He gets the message of realteck and just a cursor flashes and remains like that permanently.

    If I remove the sata cable to the back of the hard disc 4 the computer starts fine
    I can plug the cable in just before the windows screen comes up and the hard drive works fine and is FLEURIDAS and all.
    but leave it plugged during the start of what the computer does nothing

    things I've tried, I made sure all my boot priorities are pointing to the SSD drive
    I have turned all devices normal priming and the hard drive with the OS selected
    Ive made sure that all the drive letters are correct on each drive
    Ive tried to get started with the windows 7 CD to get to the repair section and I click Repair tool, start it recconises there is a problem but informs me it can not be fixed automatically and asks me if I want to send the information to microsoft (which me).

    It's really made me this one any help will be great and thanks in advance

    just in case sick leave my system specs

    EVGA X 58 mobo
    INTEL Core i7 940
    6 GB of corsair ram
    all hard drives, you know
    1000 watt power supply
    2 X PALIT GTX 295 but SLI is not currently connected

    Hi AUST_DeVinE,

    ·         Please give us the exact error that you receive when you plug the SATA cable?

    ·         After you connect the hard drive, are you able to boot in safe mode?

    Check if you are able to boot in safe mode. Link: start your computer in safe mode:

          http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    1. run chkdsk on this hard drive, follow the steps below and check, if it helps:

    i. connect the external hard drive

    II. starting the computer in the Windows recovery environment, you can check the link below: What are the system recovery options in Windows 7?

    http://Windows.Microsoft.com/en-us/Windows7/what-are-the-system-recovery-options-in-Windows-7

    III. run Chkdsk,

    Here are the steps to run chkdsk:

    i. in the command prompt window, type the following command and press enter Chkdsk/r X:

    II. Note: in this command, x is a placeholder that represents the drive letter of the volume you want to check.

    III. o press when you are prompted to check the drive the next time the system restarts.

    IV. restart the computer.

    Note: When you restart, Windows checks the drive for errors, and then Windows starts.

    Link, please refer to: Chkdsk: http://technet.microsoft.com/en-us/library/cc730714 (WS.10) .aspx 

    2. you can even format the hard drive and check if this can help, see the below link for the same: Formatting disks and drives: frequently asked questions: http://windows.microsoft.com/en-US/windows7/Formatting-disks-and-drives-frequently-asked-questions

    3 make sure you check the firmware updates and the updates of the system BIOS

    For updates and updates the system BIOS, contact the manufacturer of the hardware in the computer, refer to the following Web site:

    http://support.Microsoft.com/GP/vendors/en-us 

    Not even verify that the system BIOS correctly detects the hard disk

    For more information about how to verify that the system BIOS correctly detects the hard disk, contact the manufacturer of the computer hardware.

    BIOS WARNING: Change to the BIOS/complementary metal oxide semiconductor (CMOS) settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.

    Thank you, and in what concerns:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • cannot add the new hard drive more than 2 TB on vsphere upgrade 5

    can someone give me a clue? I can't add new greater than 2 TB drive to my vm on my upgraded vsphere 5.0. My data store is 6 TB and already read by vsphere... I create new virtual machine and add the new drive, but it limits again just 2 TB when I change 4 TB, the error message will appear. I recently added my datastore LUN with VMFS5 version. is there a any mistake I made? Please help me this problem is so frustrating me... i need to create new disk 6 TB to my new file server

    Hello.

    You will need to use a RDM in physical Compatibility Mode to achieve. As weinstein5 said, a VMDK cannot be greater than 2-to-512bytes. You can use the OS to spread over several 2 TB-512bytes VMDK, if that's what you really want.

    Good luck!

  • Add the new hard drive for HP 700-147C

    I bought a new desktop model 700-147, AMD APU A10-6700, 1 TB didk lecteurC.  I have a 1 TB drive that I rescued a HP Pavilion death I want to install in the new computer.  I can't find instructions for this operation.  What cables do I need?  Where can I get the proper cables?  Where do I Pug in?

    JDBrwn, welcome to the forum.

    Here's a guide to help you install the hard drive.  You can buy the cables at any store that sells computer supplies; Best Buy, etc.

    Please click on "BRAVO", if I helped you and click on "Accept as Solution" If your problem is resolved.

  • Pavilion series P6000: Configure the new HARD drive.

    I install a new Seagate 1 TB HARD drive in a Pavilion P6620F.  What I need to clone new HARD drive or just run the recovery discs?

    It all depends of what your intentions are.

    You are replacing the original disk or adding storage space?

    The simplest method would be to clone the current to the new hard drive, when you replace the original hard drive. Install the drive cloned in the same place where the Moose an and with the same connectors.  Start the PC and everything should be STATED as it was before, except that it will be on a new hard drive.

    If you add a drive for extra storage of storage, it is simply a matter of conecting a sata conector between unused hard drive and a sata header and connect a power connector from the hard drive.

    Once it is done, turn on the PC and log in to Windows.

    Use Windows Explorer to create up to four partitions and then format the partitions.  I am unware of how space exists in the case ATX mid for additional disks.

  • I changed the hard drive, how do I put on an operating system on the new hard drive

    I changed the hard drive, how do I put on an operating system on the new hard drive

    Restart with the keys Option and command R keys. If this keyboard shortcut does nothing on your Mac, use a compatible Mac OS X installation DVD.

    Follow the prompts on the screen.

    (142198)

  • Satellite M45 - does not start after restoration on the new HARD drive

    I installed a new PATA 250 GB HDD on my pc. The BIOS is configured to boot from CD/DVD. Toshiba Recovery disk started cold, start follow-up statement to load a new system on the HARD drive. He made a (quick) format on the HARD drive, spent 50 minutes, copy the files from the CD to the new HARD drive. Followed the instructions to remove the CD and reboot the pc. Did. I get the Toshiba homepage for 2-3 seconds, and then I get a white screen with a white block cursor in the upper corner of the LH of the screen. Looks like it does not find the block on the HARD disk?
    The procedure of collection 3 times with the same results. Checked the BIOS to check that it is configured to boot from the HARD disk after installation.

    The recovery CD is blank. Never used because I bought the PC (3.5 years). Put the new HARD drive in a USB enclosure and formatted with Windows, tried again with the same result? Put the old HDD, PC starts and works very well. Put the live CD Knoppix and boot from that, works very well. See the new HARD drive.

    Thus, any suggestions are appreciated. The recovery CD Toshiba is defective? In any case to test?

    Thank you
    -J

    Hello

    Sounds like a problem with the recovery disk or the new HARD disk if your computer starts up fine with the old HARD drive...

    In your case before you start a lengthy discussion, you should try a Microsoft Windows disk to install Windows. If he work it seems that only the recovery disk is defective.

    Otherwise, the HARD disk must be defective. Maybe a bad sector or something else

  • Satellite 1800-712 does not start with the new HARD drive

    Hello world.

    I am currently trying to install a new HARD drive in my notebook of 1800-712.
    I'm having a few trubbles as my Satellite won't start with my new HARD drive.

    I upgraded my BIOS to the latest version.
    The new HARD drive is a 40 GB Samsung.

    Any suggestions on what I need to do to make it all works?

    THX, Philippe

    Hello

    This device was shipped with 20 GB HARD drive.
    You again is 40 GB.
    I guess that the BIOS does not recognize the HARD drive because of the size.

  • Portege Z830 - where can I get the new HARD drive

    Hello

    I have problem with my toshiba portege z830 ultrabook.
    My HARD drive died, and I don't know where I can get the new HARD drive.

    I've got guaranteed but I am forgotten registered my cell phone before when I went for repairs not authorized, because my first problem was with the motherboard.

    This motherboard has been replaced for new ones.
    If my warranty is maybe cancelled.

    Well, that's my problem to another.

    What should I do?
    Please help me. I am available to do anything.

    Hello

    I think that you should first check if your warranty is still valid.
    This can be checked on Toshiba Unitdetails page:
    http://APS2.toshiba-tro.de/unitdetails/

    Where the warranty is valid, get in touch with maintainer authorized Toshiba in your country for replacement.

    But as far as I know the Portege Z830 was equipped with an mSATA SSD drive.
    This means that the laptop doesn't support HDD 2.5 common but requires special mSATA SSD drive module.

    In case your warranty is not valid, you will pay for a new mSATA module.
    Replacement should do a service provider authorized Toshiba as well because this replacement is a little tricky on this model of laptop.

  • Install the new hard drive

    Hi everyone, I have the macbook pro 13 "mid-2012. I had a problem with my old hard drive to replace it with the new hard drive.

    But there is a problem with the operating system installation.

    I'm following the instructions in the internet

    1. Press command + r, then recovery of the internet running

    2. go in disk utility and erase the new harrdisk

    3 reinstall Mac OS x: set up and install a new copy of the lion

    4. then there are screen appear: to download and restore of Mac OS X, your computer eligibility is checked with Apple. Then I click on continue.

    5. after that, it has screen appear "the request has expired.

    What is the bad guy? Someone please help

    Your Internet connection may be suspect.  Use a place where you connect with the Ethernet.  You can also go to an Apple store and ask them to help you.

    Ciao.

  • Satellite C650 - reinstall with the new hard drive

    Hello

    The hard drive in my C650 just died so I put in a replacement, and the problem I have is that I never create a recovery disc for my laptop.

    I tried to use the windows disk 7 I got with my desktop, but when I boot it I get the error ' A required CD/DVD drive driver is missing. If you have a flash driver diskette drive, CD, DVD or USB, please insert now. ".

    So, I downloaded the driver for chipset support page and excerpts to a flash drive. The installation detects these drivers "ICH9" on my USB, but after loading them, I always get an error ' no new deices could be found. Make sure that the driver files are correct and located on the driver installation media. ».

    I checked the bios and the new hard drive is detected without a doubt.
    Is there anything else I can do, short of ordering toshiba recovery disks?

    Thank you!

    Hello

    The message
    > ' Required the reader driver CD/DVD is missing. If you have a flash driver diskette drive, CD, DVD or USB, please insert now. ".
    say that your CD/DVD drive is not detected.
    So you need to check if the BIOS so the CD/DVD drive is listed. It should appear on the first page of the BIOS.

    If you want to boot from the disk and then switch on and you press F12.
    Usually, a menu should appear that allows you to choose the ODD (CD/DVD)
    Choose this option and try to boot from the CD.

  • Recovery is possible on the new hard drive?

    Hello

    I think about buying a new hard drive to improve the performance of my laptop Satellite.
    I was wondering if it would be possible to restore my system using the recovery on the new hard drive disks.

    Thank you!

    As far as I know you can do it. What you need is to buy hard drive compatible and functional.

    By curiosity, but what model of laptop do you have and what hard drive you want to buy?

  • Need help to install the new hard drive in Satellite Pro M10

    Hi all

    My hard drive died in my M10 Pro Satellite so I decided to adapt to another.
    It fits very well in the caddy, but just does not want to slot into place correctly as something seems to be stopped.
    The M10 only accepts a certain brand/model?
    Also, nobody knows this as the largest capacity M10 will accept?
    Thank you very much.

    Concerning
    J

    As much as I know should not be problem at all. Take the old and the new HARD drive and compare the connectors. I hope that they are the same. I can only imagine that the new HD is not placed correctly in the HARD drive bracket. Make sure that the new is placed as an old man after his retirement from the laptop.

    As for max capacity of HARD drive, there is no precise information and we can only speculate on this. Try to use the search option on this forum. Maybe someone already talked to upgrade the HDD on Sam/Satellite Pro M10.

    The fact is that Satellite Pro comes with 30, 40 and 60 GB hard drives. How many GB does your new HARD drive?

Maybe you are looking for