New-VM with OSCustomizationSpec, error "a specified parameter was not correct."
I'm doing a script where I read a CSV file with settings to deploy multiple virtual machines. Now, I added functionality to get him to make sysprep with the help of OSCustomizationSpec and when I tested it work very well. After that, I made a few minor, such changes that added "-ResourcePool" and other things I can't remember unfortunately. Or at least I thought they were minor changes which should influence what negatively, but when I run it now I get error "a specified parameter was not correct." I found
saying it was a bug in the previous version, but that must have been fixed. I tried a workaround but I still get the same error. The script works well when I remove the "-OSCustomizationSpec" parameter, but it seems nothing wrong with the file I can manually deploy the virtual machines with the file OSCust from the GUI and the same models. And as I said, it worked well earlier when I used this setting. Any ideas on what "parameter", it's wrong?PSVersion: 4.0
PowerCLI Version: VMware vSphere PowerCLI 5.5 Release 2 build 1671586
The script starts the error message:
New - VM: 2014-07-14 10:13:13 New - VM the functioning of the entity "model" failed with the following message is displayed: "specified a parameter was not correct. . ' spec.identity.userData.computerName '
Script.ps1:141 tank: 6
+ New-VM-model $Template"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo: NotSpecified: (:)) [new-VM], InvalidArgument)
+ FullyQualifiedErrorId: Client20_TaskServiceImpl_CheckServerSideTaskUpdates_OperationFailed, VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM
And in the GUI:
Task: Clone virtual machine
Status: A specified parameter was not correct. spec. Identity . userData.c omputerN soul
Below is the part of the script New - VM and OSCust:
New-OSCustomizationSpec-name "PowerCLI" '
-"Password" AdminPassword"
-AutoLogonCount 0'
-ChangeSID: $True '
-Confirm: $False '
-DeleteAccounts: $False '
-Description "only for use with PowerCLI." "
-FullName $Customer '
-LicenseMode "NotSpecified" "
«- NamingScheme «Fixed "»
-NamingPrefix $VMName '
OrgName - $Customer '
-OSType 'Windows' "
Time zone - 110'
-'Persistent' type '
-Workgroup 'WORKGROUP ' | Out-Null
New-VM-model $Template"
-Name of the $VMName '
-VMHost $VMHost '
-Store data $Datastore"
-Map $Folder '
ResourcePool - $ResourcePool '
OSCustomizationSpec - PowerCLI | Out-Null
Heck, I'm stupid, I think that it is Monday today!
Just as you understand, it has something to do with the name of the computer.
'spec.identity.userData ComputerName'.
Or more precisely '-NamingPrefix $row.» Nu. Since this is the NETBIOS name, which can contain only letters, numbers and hyphens.
As previously stated I'm stupid. I had $row. Defined as 'nickey_test01' and underscore name isn't a character allowed. This explains why the script already worked before when I created client VM. Guess I'll have to build in several controls in the script, for fool proof.
Cheers for the help of Luke.
Tags: VMware
Similar Questions
-
Sorry - hopefully an admin can move this to the correct forum. I could find no community forum labeled converter so no idea where to post this message.
My first time trying to use the converter. Use the latest version of the Converter 4.3.0 to try a P2V by using the source computer. This is a laptop Dell D820 running Windows 7 Ultimate x 64 business. I chose the source machine and all the default settings. Destination product is VMware Workstation 7.x and target files are either local or to a port USB drive (tried both). In the last step, I get a yellow bar with the error "the specified parameter was not correct" "but the following quotes are empty and presume it suppose to say the name of the setting.» The only thing I see that is suspect is that if I click on change in section 'Data copy', the list of volumes and empty and assume that shouldn't be. The sample video to get advice on the use of converter on VMware support sites show a volume listed here. I tried the same approach on a completely different system under Vista SP2 and still no volumes appear so maybe it normal?
No idea what I am doing wrong? I did export logs and watch and it appears no volume information has been captured (a lot of & lt; destroyed & gt ;) but even once, just guessing.) Any advice would be appreciated greadly.
Thank you
Don
I had the same problem on a Win7 x 64 machine... There was no listed disk to convert.
I managed to solve the problem by running the converter as an administrator. Right-click on the Desktop Converter icon and select run as administrator.
The disks appears and you can select which can be the converter.
-
From convert W2K3 comments led to "a specified parameter was not correct" error
I converted a physical W2K3 server to VI3 (ESX 3.5.0 123623 and VC 2.5 119598) successfully.
I was able to start the client afterwards, but nothing happened. Customer VI stated that the power has been a success but the machine did not come and showed again that power off.
Making it the second and most times leads to an error message: "a specified parameter was not correct."
I checked the hardware settings of the guest and has seen three ports series configured. I deleted the and tried to start it again. Again, the customer VI said that the power has been a success but the machine did not come and he always showed that power off and all suite trying generated this error again.
I connected to the web interface and tried to start from there, but that has not worked, as well.
I checked the disk space on the volume of SAN (there is an article stating that this error message appears when there is not enough space left to store the paging file in VC 2.0), but there are a lot of free concerts.
.vmx:
#! / usr/bin/vmware
config.version = '8 '.
virtualHW.version = "4".
floppy0. Present = 'false '.
NVRAM = "IN1CPTAPP005.nvram."
deploymentPlatform = "windows".
virtualHW.productCompatibility = "hosted".
Tools.Upgrade.Policy = "useGlobal".
powerType.powerOff = "default".
powerType.powerOn = "default".
powerType.suspend = "default".
powerType.reset = "default".
displayName = "IN1CPTAPP005."
extendedConfigFile = "IN1CPTAPP005.vmxf".
numvcpus = '2 '.
scsi0. Present = 'true '.
scsi0.sharedBus = 'none '.
memsize = "4096".
scsi0:0. Present = 'true '.
scsi0:0. FileName = "IN1CPTAPP005.vmdk".
scsi0:0. DeviceType = "scsi-disk" hard
ide0:0. Present = 'true '.
ide0:0. FileName = "".
ide0:0. DeviceType = "atapi cdrom.
ethernet0. Present = 'true '.
ethernet0.wakeOnPcktRcv = "false".
ethernet0.networkName = "internal129.230.149.x".
ethernet0. AddressType = 'vpx.
ethernet0.generatedAddress = "00:50:56:a6:26:d6."
Serial0.present = "false".
Serial0.yieldOnMsrRead = 'true '.
Serial0.filename = ' / dev/ttyS0 ".
serial1. Present = 'false '.
serial1.yieldOnMsrRead = 'true '.
serial1. FileName = ' / dev/ttyS1 ".
serial2. Present = 'false '.
serial2.yieldOnMsrRead = 'true '.
serial2. FileName = ' / dev/ttyS0 ".
guestOS = "winNetEnterprise."
UUID. BIOS = ' 50 26 c2 cf 94 ea 50 - dd 6f 3A ff c3 e8 ec c0 EB.
SCHED. CPU. Affinity = "all".
sched.mem.Affinity = "all".
scsi0:0. Redo = «»
UUID. Location = "56 4 d 45 3 c this 36 28-4 b 69 93 d7 e1 93 a5 b5 cc.
sched.swap.derivedName = ' / vmfs/volumes/48fc3709-252c5c10-6258-0014c26377c1/IN1CPTAPP005/IN1CPTAPP005-11a5b48b.vswp '.
hostCPUID.0 = "00000005756e65476c65746e49656e69".
guestCPUID.0 = "00000005756e65476c65746e49656e69".
userCPUID.0 = "00000005756e65476c65746e49656e69".
hostCPUID.1 = "00000f4800040800000064bdbfebfbff".
guestCPUID.1 = "00000f4800010800000020010febbbff".
userCPUID.1 = "00000f4800040800000064bdbfebfbff".
hostCPUID.80000001 = "00000000000000000000000120000000".
guestCPUID.80000001 = "00000000000000000000000120000000".
userCPUID.80000001 = "00000000000000000000000120000000".
evcCompatibilityMode = "FALSE".
ide0:0.startConnected = "false".
ide0:0.clientDevice = 'true '.
guestOSAltName = "Microsoft Windows Server 2003, Enterprise Edition (32-bit)"
.vmxf:
Any ideas?
I'm not sure why you're having the problem, but a quick fix is to create a new machine virtual just how you want with no disc, then join the VMDK virtual machine files that usually start. The fire and see if it works. It should be fine. If so, you have some cleanup to do to get all the files in the same directory for the new virtual machine and removing the old VM. Just pay attention do not remove your VMDK files!
-
The specified parameter was not correct: ".."
Hello
I am using VMware vCenter Converter Standalone to virtualize a few physical servers on an ESXi server.
I installed ESXi 4.1.0 on a new server (quad core 2 processors, 48 gb of ram, a mirrored raid (where is the ESXi software) and a raid 5 for virtual servers). I've already enabled 64-bit virtualization in the bios of the destination server.
The first server I want to virtualize is a small server (Nothing mission critical). The software main is executing is SpiceWorks. I installed VMware vCenter Converter Standalone 4.3.0 Build-292238 on the source server.
The error that I'm left with after you run the converter is:
The specified parameter was not correct: ".."
Let me guide you through the steps of how I get there.
Launch of vCenter Converter
Click on Convert Machine
Under Select Source Type: Tension machine
Specify the machine 'this local computer '.
Next
Select the Destination Type: VMware Infrastructure virtual machine
Server: xxx.xxx.xxx.xxx
user name: root
password: password for root
Next
Name: leave the same...
Next
Select localhost.localdomain
SELECT data store: Data1 (it was created on the raid 5 group, 860,75 1 GB of free space)
Virtual Machine version: Version 7 of the
Next
Check the destination parameter... Check
Let all the suggested default values / (go play with it more that one I get a working basis...)
Next
Summary (see bottom of post for summary)
Finishing
Special presentation...
Then I get the error message
The specified parameter was not correct: ".."
The error message ends actually in times of double quotes
If anyone has any suggestions, I would be grateful.
Thank you.
-
Summary
Information source system
Source type: slot machine tension
Name/IP address: the machine where works the VMware vCenter Converter Standalone server
The CPU limit: None
The network limitation: None
Destination system information
Virtual machine name: xxxxx
Host/server: xxx.xxx.xxx.xxx
Logged in as: root
VM folder: None
The host system: localhost
List of resources: by default
Power after the conversion: No.
Number of processors: 2
Physical memory: 3584 MB
Network: Preserve County NIC
NIC1 connected
The VM network
Type of disk controller: Preserve source
Storage: The Volume of cloning-based
Data configuration files store: Data1
Customization of the destination
Synchronize changes that occur during cloning: No.
Install VMware Tools: No.
Customize the guest operating system: No.
Delete restore points: Yes
Reconfigure the virtual machine: Yes
in step 3 you can check to see if all volumes can be copied? Just to make sure that it is a disk volume to move...
The error should be something between the two tick marks, which is not double quotes.
He complains that a value is null, rather than not null. So, in step 3, make sure that nothing is missing.
Kind regards
Jon Hemming, b.SC., RHCT, VMware vExpert 2009
http://Twitter.com/vJonHemmingIf your question or problem has been resolved, please click the "right answer". If someone helped him, please click "useful answer.
-
Hello. I try to add vmknic with frames in my distributed virtual switch.
I read the vSphere command-line Interface Installation and reference Guideguide:
"vicfg-vmknic - a-i DHCP"vmk5"
I see the error message:
Cannot add the vmkernel nic: a specified parameter was not correct.
Vim.Host.VirtualNic.Specification.Ip
What's wrong?
I tried all the combinations of parameters with the same result.
Ok! I've found a workaround.
Since adding a vmkernel remote interface doesn't seem to work with DVS, I simply created one on a standard vSwitch and it then migrated to the DVS. And voila: the value 9000 MTU migrated intact with her! Here are the steps I followed:
1. put the ESX host into maintenance mode - evacuate VMs manually if necessary
2 remove the VMKernel iSCSI/NFS to the DVS interface
3. create a standard virtual switch with no physical cards. He has no need to be a VMKernel VM Networking switch is fine. Make a note of the name you gave to the PortGroup created on the new vSwitch.
4 using the remote control line, add the new interface vkernel specifying an appropriate jumbo MTU (9000) and the PortGroup on the standard new vSwitch. For example:
esxcfg - vmknic.pl - Server
If you get 3 answers, everything works. If you get failures, something has gone wrong. Go back and check that the interface is configured correctly using the command list esxcfg - vmknic.pl-.
Enjoy!
M
-
Test network.
ESX 3.5
I want to connect ESX to Openfiler. When I try to add VMKernel I get err. : a specified parameter was not correct Vim.Host.VirtualNic.Specification.Ip
For the IP, I entered the host IP. Clean install. No virtual machine in the inventory.
Where to look?
THX.
You cannot use the same address IP assigned to the path of your host ESX service console - the VI Client is smart enough to know that the IP address is used - try using a different IP address on the same subnet.
If you find this or any other answer useful please consider awarding points marking the answer correct or useful-
-
Policy in the form of traffic-"a specified parameter was not correct."
Hello.
Here's a question for you all the gurus of cutting the code checking the syntax.
I have a requirement to address the political shaping traffic outside esxcfg so orders need to complete in PS. I jumped directly to the Web of Alan site and found this wonderful example but when I copy / paste, change to vSwitch0 vSwitch1, it returns the message.
Exception by calling 'UpdatePortGroup' with '2' or the arguments: "it was not correct to specified parameters.
Vim.Host.PortGroup::Specification:vswitchId ".
To: tank line: 22:28
++ $. mor UpdatePortGroup & lt; & lt; & lt; & lt; ($pgName, $portgrp) +.
The URL for the code is here: http://www.virtu-al.net/2010/01/13/powercli-automating-traffic-shaping-on-portgroups/
Any suggestions where I understand will be rewarded with points
See you soon,.
Darren.
Hi Darren,
I tried the code on my system and changed vSwitch1 to vSwitch0 and got the same error you did. Then I saw that you change to vSwitch0 vSwitch1 in two places in the code, line 3 and line 4. After that I changed both places it worked perfectly.
Best regards, Robert
-
New-AlarmActionTrigger: A specified parameter is not correct
Hello world
I am trying to add a new alarm action to all my alarm vCenter definitions. Nothing complicated and because I'm lazy, I tried using PowerCLI for this. It's my little script:
Get-AlarmDefinition | % { $_ | Get-AlarmAction | Remove-AlarmAction -Confirm:$false $_ | New-AlarmAction -Email -To '[email protected]' | % { $_ | New-AlarmActionTrigger -StartStatus 'Yellow' -EndStatus 'Red' -Repeat:$false $_ | New-AlarmActionTrigger -StartStatus 'Green' -EndStatus 'Yellow' -Repeat:$false } }
When I run it, the action of the alarm and the two triggers are added. But when you add the alarm fires from "Yellow" to "Red", the following error occurs:
New-AlarmActionTrigger : 04.07.2015 16:59:25 New-AlarmActionTrigger A specified parameter was not correct. At C:\Users\patrick\AppData\Local\Temp\bcfe38ed-7669-43dd-a588-7e88e59d70c4.ps1:4 char:8 + $_ | New-AlarmActionTrigger -StartStatus 'Yellow' -EndStatus 'Red' -Repeat:$fa ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [New-AlarmActionTrigger], InvalidArgument + FullyQualifiedErrorId : Client20_AlarmServiceImpl_NewAlarmActionTrigger_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Alarm.NewAlarmActionTrigger
Unfortunately I can not know what setting is not correct. The error occurs only for "Yellow" to "Red". No idea what is wrong or what did I miss?
Thanks for the tips!
Strange, as far as I know there is no beta 6R2 for now.
Yes, it should work.
You might find some clues in the vpxd.log.
Otherwise, use Onyx to check what really happened to the methods.
-
Windows backup fails with the error "the last backup was not entirely successful.
Original title: baclup fails
I've repeatedly tried to back up my Win 7 files. I turned off check virus and Internet. The only message I get back is "the last backup haven't successfully' information plus button just translates to"try again ".
Hey Joe,
(a) did you get an error with this error code?
(b) do you remember to make changes on the computer before the show?
This could be the shadow copy Volume service, and SPP services are not started.
To restart the Volume Shadow Copy service and the services of the SPP. You must be logged on as administrator to perform these steps.
1 open administrative tools by clicking the Start button, click on the Control Panel, clicking system and Maintenance, and then clicking Administrative Tools.
2. double-click on Services. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
3. If the SPP function is disabled, double-click it to open the service properties.
4. If the Volume Shadow Copy service is double-click on it to open the service properties
5. click on the startup type list, click Automatic (delayed start), and then click on apply.
6. under the service status, click Start.If the problem persists, follow the steps in troubleshooting section and check if that helps:
Windows backup or restore 0 x 80070001, 0 x 81000037 or 0 x 80070003 errors
http://support.Microsoft.com/kb/973455
Hope this helps, if you need help on windows let us know we will be happy to help you.
-
a specified parameter is not correct: entityID
Has anyone seen this error before? I have a call in VMware, but I'm waiting for management to answer.
Solved my problem... Had to give up the license via the web client. VMware documentation did not specify this, but as MRS is now Web Client that I guess it makes sense.
-
Hello
I am currently removing two services in Autoruns, for the reason that they are highlighted, and that means that it no longer exists. However, I'm running into some trouble while he was trying to do, I get the following error:
Removal of startup parameter error: the specified Service does not exist as an installed Service
For diagnosis, I downloaded my log of Autoruns on OneDrive text file and you can view it by clicking here.
Thank you
Party of Lighthouse
My research yesterday using Google yesterday suggested malware damage.
Select Start, all programs, accessories, right-click right-click command promptand click run as administrator on the menu drop-down... Type cd\ and press ENTER. Type "chkdsk c:/r" without the quotes and press ENTER. Make sure you include the spaces indicated. Enter it when asked if you want to run chkdsk on restart the computer. Type exit, press ENTER, and then restart the computer.
Please run the SFC system and say if she cannot fix corrupted files: http://support.microsoft.com/kb/929833
-
vmrun.exe t ws start "Q:\VMware\REG\REG-XP3 (RC2).vmx"
Unable to connect to the host.
Error: The specified version is not foundI installed in this order:
Workstation 8.0.1VIX 1.11.0.18997
On a Win7 x 64 SP1 box.
There also the vSphere PowerCLI 5.0.0.3501 installed however this seems to need to ESX and vCenter, so it is useless for me.
Long story short, I need vmrun maintenance tasks such as deleting snapshot which through GUI takes a.) ages, b.) pump lock your workstation / takes focus.
How can I get this working again? I checked the vixwrapper - config.txt and it lists the following:# Workstation 8.0.0
vmdb WS 14 8.0.0 Workstation - 8.0.0 - and-vSphere - 5.0.0
Player vmdb 14 4.0.0 Workstation - 8.0.0 - and-vSphere - 5.0.0
WS-shared 14 no Workstation 8.0.0 - 8.0.0 - and-vSphere - 5.0.0
WS 14 vmdb e.x.p Workstation - 8.0.0 - and-vSphere - 5.0.0
drive 14 vmdb e.x.p Workstation - 8.0.0 - and-vSphere - 5.0.0
WS-shared 14 no Workstation e.x.p - 8.0.0 - and-vSphere - 5.0.0Thank you.
I just found this same problem with Player 4.01 exaxt... VMware VIX who uses this configuration file and if the gift ' e versions EXACTLY match it flows without any usable information.
Add this to your config file and it will work...
# Workstation 8.0.1
vmdb WS 14 8.0.1 Workstation - 8.0.0 - and-vSphere - 5.0.0
Player vmdb 14 4.0.1 Workstation - 8.0.0 - and-vSphere - 5.0.0
WS-shared 14 no Workstation 8.0.1 - 8.0.0 - and-vSphere - 5.0.0
WS 14 vmdb e.x.p Workstation - 8.0.0 - and-vSphere - 5.0.0
drive 14 vmdb e.x.p Workstation - 8.0.0 - and-vSphere - 5.0.0
WS-shared 14 no Workstation e.x.p - 8.0.0 - and-vSphere - 5.0.0 -
Flash Player error: THE SPECIFIED MOUDLE IS NOT FOUND
I am facing a problem when I open my flash memory
It is said:
Rundll
There was a problem starting
THE SPECIFIED MOUDLE COULD NOT BE FOUND
How can I solve this problem?
Original title: Rundll
Hello
Thanks for joining us out on Microsoft Community Forums.
From your post, it seems that you are unable to access the USB key and it gives you an error: the specified module could not be found.
- The USB Flash works fine in another computer?
- Have you tried any other USB on your computer?
You can try the following steps and check the result.
Method 1: You can try to run the hardware and devices Troubleshooter and check if it makes a difference:
If your computer is having problems with a recently installed device or other hardware, try to use the hardware and peripheral troubleshooting tool to solve the problem. It checks the common issues of interest and ensures that a new device or hardware connected to your computer has been installed correctly.
Open the hardware and devices Troubleshooter
http://Windows.Microsoft.com/en-in/Windows7/open-the-hardware-and-devices-Troubleshooter
Method 2: However, it could be a virus, I would also say that you to download and run the last scan Microsoft security on USB flash and check if it helps:
http://www.Microsoft.com/security/scanner/en-us/default.aspx
Note: the data files that are infected must be cleaned only by removing the file completely, which means there is a risk of data loss.
You can also check out the link below and follow the suggestions of SpiritX MS MVP responded on August 20, 2010:
Let us know if it helps. If you have other questions related to Windows please keep us informed and we will be happy to help you.
-
Unable to connect to the host. Error: The specified version is not found
vmrun-t esx h https://192.168.1.123/SDK u root Pei password list
Unable to connect to the host.
Error: The specified version is not found
Any ideas why it does not work? It is run on a Windows XP workstation. The target server is on the local network and running ESXi 4.1. The vmRun version is 7.1.2 and is installed with Workstation 7.1.2.
I also tried Ubuntu 10.04 with vmRun from a Workstation 7.1.2 installation. There, he also fails with the same error.
Note that ESXi 4.1 is used to test installation is not allowed and is running in demo mode. Management of the vSphere client works without any problem the same Windows XP workstation.
Any help would be appreciated. Thank you.
You must install the full package of VIX by http://communities.vmware.com/community/developer/downloads. It contains only components to manage the workstation. Please note that I had to install in the VIX 1.10.1 order then Workstation 7.1.2 to get both to work on my Windows 7 computer.
-
"Error while interacting with the scanner: the selected scanner was not found." Called brother and my MFC 7360N works very well with other programs to scan - only problem with Adobe Acrobat Pro 11.
Please provide the exact point of the software & OS installed on your system. Also check if it is there any update available for the software after going through "help > check updates.
Follow this thread to reset the Acrobat preferences:- How to reset preference settings in format Acrobat.
You can check after connecting this scanner locally to the system if asked its connected on network & then look for the same thing.
Please refer to this article:- of the troubleshooting tips for scanning questions when using Acrobat
If the problem persists ask please check with another user account.
Kind regards
Christian
Maybe you are looking for
-
The use of PDFs victory 8.1 on some web pages won't open or download why?
On some pages web Firefox won't open or download the pdf files. You use Internet Explorer on these same pages, they open fine. ????????????????????
-
Activation of keypad on the Satellite Pro P100
I just got my laptop new Satellite pro P100 and cannot find how to set the number pad (integrated) to be enabled at power on.I checked in the Setup, the Toshiba HW setup... nothing Does anyone have an idea? Thanking you in advance
-
Is there a method to delete a worksheet by using the report generation tools.
Hello I have an excel report, every time when I opened this report a worksheet is added to the report. Is it possible to remove worksheetm rather a spreadsheet. Thanks in advance,
-
EVENT_COMMIT or EVENT_VAL_CHANGE
I have a digital control. When the value is passed to IUR I store the changed value in a world. Now the same control can be updated from a different location. So lets say that the value of control has been replaced by 5. numGlobal = 5; Then, I read n
-
Function DLL error 0 x 80040707 Braddprt.check port/local
I can't install my printer (with Brother MFC-7340) software due to a spooler error I believe. Can remedy us?