We help IT Professionals succeed at work.

I was trying to add a string (Managed) under the reg key (6.1.3HF1) but I keep getting the error msg

superfxp
superfxp asked
on
523 Views
Last Modified: 2012-05-05
I was trying to add a string (Managed) under the reg key (6.1.3HF1) but I keep getting the error msg
(Too many command - line parameters)
I done some research and I think I suppose to enter " for the path that have space/s ???

C:\>reg add \\PCName1\hkey_local_machine\software\MWI Appllications\Pointsec\6.1.3HF1\Managed
Comment
Watch Question

Farhan KaziSystems Engineer
CERTIFIED EXPERT
Top Expert 2007

Commented:
Try following

Reg ADD "\\PCName1\HKLM\Software\MWI Appllications\Pointsec\6.1.3HF1\Managed"

Author

Commented:
It doesn't work. I think MWI Applications has a space in between and that cause the error
Farhan KaziSystems Engineer
CERTIFIED EXPERT
Top Expert 2007

Commented:
Yes, thats why I enclosed the whole path in double quotes (" "). I run above statement on my PC and it works perfectly.

Farhan KaziSystems Engineer
CERTIFIED EXPERT
Top Expert 2007

Commented:
Copy the statement in my first comment and paste it on command line window it will work.

Author

Commented:
Thank you that works. I have one more simple question. So how can I add a string under a key. For exmpale: I want to add a string under the Manage call Not manage and the data insdie is No
Farhan KaziSystems Engineer
CERTIFIED EXPERT
Top Expert 2007

Commented:
Try this:

Reg ADD "\\SERVER\HKLM\Software\MWI Appllications\Pointsec\6.1.3HF1\Managed"  /v "Not Manage" /t REG_SZ /d No
Systems Engineer
CERTIFIED EXPERT
Top Expert 2007
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Great thank you. Its work!
Farhan KaziSystems Engineer
CERTIFIED EXPERT
Top Expert 2007

Commented:
Your welcome & thanks for points.
Hello I try this solution under de following key, HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
and this solution is not working.
do you have any idea?
Thanks
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.