Hard disk-game problem

Hello

I am running this script


# - Create Variables -
$vcenter = "localhost".
$newdisk = import-Csv "Serveurs.csv".


##---Connexion to the VirtualCenter-


#Connectez VIserver $vcenter


# - Create and add a virtual disk to a virtual machine.
# - Each Variable is a column of the CSV in case.


$newdisk | % {
$disk = $_.disk
$NewSize = $_. NewSize
$VMName = $_. VMName
$cd = $_.cd


Get-CDDrive $VMName | Game-CDDrive - IsoPath "$cd" - StartConnected: $true - connected: $true - confirm: $false
Get-disk hard - VM $VMName | Together-hard drive - disk hard $disk - CapacityKB $NewSize - confirm: $false
Restart-VMGuest $VMName - confirm: $false


}

Use a CSV like this:


VMName, cd, disc, NewSize
SEQDEV, "[TEST150A] ISO/pe-defrag - directboot.iso ', 'Disk 1', 35000000


And it gives me this error:

Together-hard drive: cannot bind parameter 'hard drive '. Impossible to convert the value of 'Disk 1' of type 'System.String' type 'VMware.VimAutomation.Types.HardDisk '.
C:\Users\malabelle\Desktop\tests\VraieSequence\Sequence.ps1:20 tank: 50
+ Get-hard - VM $VMName | Together-hard drive - HDD < < < < $disk - CapacityKB $NewSize - confirm: $false
+ CategoryInfo: InvalidArgument: (:)) [game-hard drive], ParameterBindingException)
+ FullyQualifiedErrorId: CannotConvertArgumentNoMessage, VMware.VimAutomation.Commands.SetHardDisk

I tried to run manually

[vSphere PowerCLI]  Get-SEQDEV hard drive | Together-hard disk - disk hard 'disc 1' - CapacityKB 27000000


Together-hard drive: cannot bind parameter 'hard drive '. Impossible to convert the value of 'Disk 1' of type 'System.String' type 'VMware.VimAutomation.Types.HardDisk '.
On line: 1 char: 45
+ SEQDEV get-hard drive | Together-hard drive - HDD < < < < 'Disk 1' - CapacityKB to 27000000
+ CategoryInfo: InvalidArgument: (:)) [game-hard drive], ParameterBindingException)
+ FullyQualifiedErrorId: CannotConvertArgumentNoMessage, VMware.VimAutomation.Commands.SetHardDisk

Same thing...

Together-hard drive requires a hard disk object, not a string containing its name. You need to filter the drive to extend using a where clause clause that you run now all the cmdlet Set-hard drive hard drives.

Try something like this:

Get-hard drive - VM $VMName | Où {$_. Name - eq $disk} | Together-hard drive -CapacityKB $NewSize -confirm: $false

Tags: VMware

Similar Questions

  • Dv6 hard disk 3F0 problem

    I have a HP DV6-6001TX with the 6770 m GC. I tried to boot my laptop for a while now, but every time he says hard disk not detected and undetected boot device. I tried to secure the connection from the HARD disk several times without success. What should I do now?

    Hello

    It is perhaps that your hard drive has failed and needs to be replaced.

    As a new trial and to help eliminate a problem with the Sata controller, try the following.

    Follow the procedure below to create a bootable Ubuntu CD and follow the steps in part 3 of 'Try' to see if the operating system is running.  The option 'Try' runs the operating system from the CD without having to install on your HARD drive.  If it works Ok (it will be slow running on a CD), this would tend to confirm that the problem is only with the HARD drive.

    http://www.Ubuntu.com/desktop/get-Ubuntu/download

    If your laptop is still under warranty, you can contact HP and arrange for the replaced HARD disk - you can check your warranty status.

    If you live in the United States, contact HP here.

    If you are in another part of the world, begin here.

    If you are out of warranty and would like a guide to replacing the hard drive yourself, let me know.

    Kind regards

    DP - K

  • HARD disk installation problem

    I have a PC that I use as a server, it has a 500 MB HARD disk for windows system, programs and data HDD 3TO.

    After a power cut/spike it was start on a blue screen of death.

    I checked the two hard disc in a disc case and found a fine of data and the system cannot be read and it showed as not formatted. I reformatted the drive and everything was going well.

    When I try to reinstall windows using the USB u (not the DVD drive on PC) it fails to recognize the drive system as an option to install windows on. It appears in the line of the BIOS and cmd ok (via repair system), but it won't let me install windows on it to him.

    I checked the cables and I can see all seems fine.

    I switch the cables connecting the system and data drives but windows still only sees the data reader, regardless of the connections.

    SATA is located in DCIS.

    I tried to install, windows 7, 8 and even XP! All are unable to see the player.

    Someone at - it suggestions why this could be?

    Hello

    You can get the first 3 TB drive... even if that does not cause a problem, now it can have negative consequences in the future.

    Try to download an ISO of the wizard Partition 8.1.1 and reformat again...

    It runs from a bootable CD, so you can work around any problems of Windows...

    BTW... If you use UEFI Bios, it must be formatted as a type GPT disk...

    If you do not use UEFI type MBR format would be better...

  • hard disk: serious problem

    Hi to create a new volume shrunk i C drive using the computer management tool. In fact, it has shrunk. And I got a message like an INTERNAL ERROR happened. Now I can't see the United Nations space allocated and narrowed part of my disk is missing.

    Hi mohdrafi,.

    I suggest you try the following steps:

    Step 1: Restart the computer once and check whether the unallocated volume exists.

    Step 2: Use the disk part command:

    (a) click Start and in the start search bar type cmd, right-click on the command prompt icon in the box programs and then click Run as administrator.

    (b) at the command prompt, type diskpart , and then on enter.

    (c) type list diskand press ENTER. A list of available hard disks.

    (d) type salt disc numberand press ENTER. Number is the number of the hard disk where you want to create a volume; the hard drive is now selected.

    (e) type det disk, and then press ENTER. A list of partitions on the hard disk. Use this information to check if the unallocated volume exists.

    f) salt volume numberType, and then press ENTER. Number is the number of the volume where you want to create a partition - unallocated volume

    (g) type create partition primary

     

    Let us know if this helps,

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

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

  • Hard disk space problems

    I have a MacBook Pro three years, with a hard drive of 250 GB. I have about 28 GB of free space. Try to free up more space that I deleted a few thousand pictures from iPhoto are also in the picture. My photos on the hard drive space has decreased about 5 GB, but the space allocated to the 'other' has increased by a comparable amount. Why?

    I don't know but I would download and run Omni DiskSweeper. It can help you to sort out the problems of disk space and free space.

  • Hard disk partitioning: problems with Windows 7

    I bought a new laptop with a disk drive. So I decided to partition my hard drive to use part of it as a return to the top. However, during the process of return my computer off and when I tried to put it on my Windows 7 operating system will not turn on. I guess that some of the OS files have been corrupted, some how damaged or moved. So, how can I solve this problem and get Windows running again?

    Thanks for your help!

    -Heather-

    For any question on Windows 7:

    http://social.answers.Microsoft.com/forums/en-us/category/Windows7

    Link above is Windows 7 Forum for questions on Windows 7.

    Windows 7 questions should be directed to the it.

    You are in the Vista Forums.

    See you soon.

    Mick Murphy - Microsoft partner

  • Activation of hard disk Crash problem

    After a hard drive crash, I am unable to disable CS6 before installing on the repaired computer.  I find it impossible to access the assistance of Adobe to cope with this.  How can I do please?

    Hi Paulhodson,

    You can follow the steps mentioned here: https://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-help.html#acces s-previous-computer

    https://helpx.Adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    I hope this helps!

  • Pavilion DV6700 hard disk upgrade problem

    My laptop came with a 120 GB hard drive and I ordered a new unit of 500 GB from NewEgg but when I went to install the connectors are different. Both are SATA but the original has pins, and as far as I can tell from pictures of other computer laptop HD and the other, they are all different. Is their some kind of adapter or something? What I'm missing here?

    Yes, there may be a removable adapter on the original drive, he slides with a little persuasion with a small flat screwdriver.

    If the old hard drive looks like this it is Pata not Sata

  • Windows detected a hard disk problem after factory reset?

    I have a Toshiba Satellite C855D-S5320, not old at all. I tried to download a game and then got the BSOD. I had to reset my PC, lost what I had, but ended up from scratch. Now, every so often, I get a message saying "Windows detected a hard disk problem. Back up your files immediately to prevent the loss of information... ». I have right click the disk hard "defective" for the error checking, no errors found. I tried HD Tune Pro, and tells me 'Warning' for the State of health (05) reallocated sector count (failure) is red, and number of events (C4) reallocated (warning) is yellow. Does this mean I have to replace the hard drive? The computer was working completely fine until BSOD. Now it works and everything but I get this error message. The laptop is not only really old and never any injuries, but perhaps past warranty. I really have nothing left to save, because I lost everything when I have to reset it to factory State. Any advice?

    It's really up to you.  Sometimes there may be false positives, but it looks like your drive is really having some problems.  It was even the cause of the BSOD, who knows.

    You can follow the steps of my colleague here to check your drive for errors:
    http://www.eightforums.com/tutorials/6221-chkdsk-check-drive-errors-Windows-8-a.html

    But really, I would take the advice and replace the drive.  Or at least be prepared for this 'die', then save your files somewhere else like OneDrive or something so you don't lose important information when it does.

  • Problem with external HARD disk - cannot mount the mac partition and can't unmount the partition windows

    Hi all

    Need your help. I have problems with my external hard drive. I worked on it yesterday when the cable is a little detached and disassembled my intestinal HARD drive.

    Here are the specs:

    1 Macbook Air 11.5 "running on El Capitan (10.11.1)

    2 Buffalo Ministation external (1 TB) HARD disk divided into two: a Mac partition (for time machine) and the other a windows on FAT32 partition.

    Before the accident yesterday, it was working OK.

    Now, when I connect the HARD drive, it turns on but the Mac partition cannot be mounted (it does not appear on the Finder. I opened disk utility... just load forever and does not work) and the Windows partition is visible... but I can't take it apart without turning my computer.

    I can assemble and disassemble a USB stick very well.

    Any help would be appreciated.

    Thank you!

    Maybe you can explain a little better.

    I would like to make some general comments before having your replay.

    It is not wise to use TM on a disk with apple unformatted or partitions, it is preferable to have a dedicated TM drive also.

    For TM, the rule is that the drive is about 3 times the size of the boot disk.

    Normally you 'survive' a good step disassemble the drive external, but in this case with a another partition formatted on this subject, I'm not sure if that do not corrupt the disk, especially since the Windows partition is bootable. I have suspct the partition GUID on the TM partition table is corrupt.

    I propose to start the disk completely: in DiskUtility select the 'higher' level (name of manufacturer) and the Partition, one OS X Extended (journaled) partition table Partition GUID. And use it only for TM, is not too big for this.

    Have another drive formatted NTFS for Windows.

  • Satellite U405D-S2874: Question on the potential problem of hard disk

    Trying to fix a Satellite U405D-S2874 for a friend.
    As a first step, that it won't turn. Once I have re-seated hard drive, it turned on and starts very well.

    However, he still intermittently will not be powered from a power off State. I get a few indicators as power, load, etc., but at least I see Satellite logo light up, I know that it won't start/turn on fully and I get nothing on the screen.

    What is a problem with the hard drive, or the connection of drive hard, or...? I was wondering if we buy a new hard drive online, that will fix the problem.

    Thank you
    John

    > What is a problem with the hard drive, or the connection of drive hard, or...? I was wondering if we buy a new hard drive online, that will fix the problem

    I put t think that this problem could be linked to the defective HARD drive.
    Usually, the laptop must be able to turn on and the BIOS splash screen should be visible even if the HARD disk is defective.

    Moreover in most cases a message or underscore flashing appears on the screen if the HARD drive is malfunctioning

    However, it is possible to check the status of the HARD drive.
    Download the tool called Drive Fitness Test and test the HARD drive by using this software.
    If some errors would be detected, then you must replace the HARD drive.

    But if the HARD drive is ok, then I would recommend checking the RAM modules first.
    Test the laptop with a test module. Try the two slots.

    If it would not help you, then a motherboard must be verified but generally it is a work of a technician for laptop

  • Satellite L650 - Windows detected a hard disk problem

    I have 9 as 4 months old satellite L650 that this microsoft Windows message keeps popping up. "Windows detected a hard disk problem, back up your files immediately to prevent the loss of information... etc" have I not a bum hard drive or is it a mistake?
    I have
    have the media discs to recover and this means that I have to reformat the HARD drive and try again. !

    Hi watthhel,

    I think the error message must be correct to Windows 7 and you must do what tells you the message: immediately back up your data and replace the HARD drive with a new one. In your case I would never save important files on the HARD drive. Too risky to lose important files

    Your laptop is 4 months old and that would mean it s covered by the warranty. Contact your local authorized service provider and ask for a replacement drive. They will exchange it and the service is free. :)

  • On the Satellite C - Windows HARD disk failure has detected a HARD disk problem

    Since 2 days have been making repeated dialog "Windows detected a hard disk problem", warning of potential failures of the disc so back up, what I did. Disk in question is a Toshiba MK-5065GSXN.

    As a non-tech user, my instinct is that a new laptop is a better choice than to call Toshiba support for a laptop warranty (2 years) out of.

    On the other hand there may be a simple software fix. The opinion or advice welcome

    Hello

    The message says that something is wrong with the HARD drive.
    It might be possible that your HARD drive will die sooner or later so his need to backup data on another HARD drive, disk or flash memory.

    Finally, I must say you n don't need to buy a new laptop just because your HARD drive starts to hurt work in such cases purchase a new HARD drive and replace it
    HARD drive is not very expensive and the replacement of the HARD disk is very easy in your user manual

    PS: what model of laptop you have exactly?

  • Drive problem hard "smart hard disk error".

    Hello, about 6 months ago, I bought my HP envy m6-1252so, and since then it has been slow til to get totally stuck showing the "blue screen" error message, a month later, I turned on and showed me the message "no device found", then I went where I bought it and they said it was a software problem. That's why the guarantee would not fix because it takes that hardware problems (I have 3 years warranty). A friend, who is a maintenance-pc professional told me that the hard drive has problems and he screwed up, he has absolutely everything deleted hard disk ensuring that it would be totally free from virus and he reinstalled windows saying that I'm having the same problem soon, I had since re - install windows all almost 2 weeks because that the problem won't let me run windows showing me the message "error of. smart disc"and it could not connect to windows. My question is how could get my replacement of hard disk without having the same answer "it's a software problem?

    Sincerely, Milton.

    Milton,

    The "SMART Hard Disc Error' returned by your computer indicates that the hard disk has failed or is about to fail. Please see test of hardware failures (Windows 8) and/or test a hard drive in the BIOS for instructions on testing your computer for a hard disk failure. If the error codes are returned or a test does not complete, please contact the official HP support in your region / country, via the Portal to support HP worldwide, to file a warranty claim.

    You will need to use the HP recovery media, you created when you first set up your computer to restore the computer to a factory state after the hard drive has been replaced. If you create your personal HP recovery media, also contact HP support in your region / country, to see if the HP recovery support is available for your computer.

    If you have any other questions, feel free to ask.

    Please click the White Star of KUDOS to show your appreciation

  • I get this message at startup ' 3rd Master Hard Disk:S.M.A.R.T. bad condition. " -What this means and how can I solve this problem?

    I get this message at startup ' 3rd Master Hard Disk:S.M.A.R.T. bad condition. " -What this means and how can I solve this problem?

    SMART is a technology on newer computers that allows the computer to monitor the health of hard drives in your computer. Something happened to one of your readers that detects the smart as a problem, and she's trying to warn you proactively to this topic before it fails.

    It may be also that you have installed a very old hard drive that does not support the CHIP and the monitor reports that it can not read the drive status.

    So depending on your level of knowledge and experience, you can watch to replace the hard disk that is reported, or you can disable SMART followed to make the message disappears. The second option but then means if it is really a failure, it is likely any work stoppage or corrupted so data you do note to solve.

    http://en.wikipedia.org/wiki/S.M.A.R.T.

Maybe you are looking for

  • Download Mozilla OS on my iPad?

    Pls let me know. Thank you.

  • import excel data to labVIEW, filtering and exporting to Excel

    LabVIEW dear specialists, I have about 2500 data each for acceleration and force stored in two excel columns of the worksheet as well as time data in another column. My problem is to purify my data of noise so I could generate thin sinusoidal signals

  • I need the BIOS for my gateway T - 63 Lap Top series.

    I have a gateway T - 63 Lap Top series. The part of the motherboard is #: ACEH-40GAB1700-F605.The serial number is: V94DM03707. I tried to contact the bridge, but the information (serial number) that the system is requested to attend my request are s

  • Can not see my (D, E, F) drifting only 'C' derive is visible.

    HelloI have a problem with my 80 GB Sata Hard when I was doing my xp bootable with 'gain Flash' flash derive from softwear my system restars and after that I may not see my (D, E, F) drifting only 'C' is visible. Part of disk > disk list disc # > Dis

  • Unable to connect to the Internet or Email

    For some reason, I am unable to connect to the internet or e-mail using a wired connection. Earlier today, I was installing a wireless printer and I got it in collaboration with the wireless network. But now I switched to the cable network and I can