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

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
superfxpAsked:
Who is Participating?
 
Farhan KaziConnect With a Mentor Systems EngineerCommented:
Oh sorry replace SERVER with PCName1.. Like

Reg ADD "\\PCName1\HKLM\Software\MWI Appllications\Pointsec\6.1.3HF1\Managed"  /v "Not Manage" /t REG_SZ /d No
0
 
Farhan KaziSystems EngineerCommented:
Try following

Reg ADD "\\PCName1\HKLM\Software\MWI Appllications\Pointsec\6.1.3HF1\Managed"
0
 
superfxpAuthor Commented:
It doesn't work. I think MWI Applications has a space in between and that cause the error
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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

0
 
Farhan KaziSystems EngineerCommented:
Copy the statement in my first comment and paste it on command line window it will work.

0
 
superfxpAuthor 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
0
 
Farhan KaziSystems EngineerCommented:
Try this:

Reg ADD "\\SERVER\HKLM\Software\MWI Appllications\Pointsec\6.1.3HF1\Managed"  /v "Not Manage" /t REG_SZ /d No
0
 
superfxpAuthor Commented:
Great thank you. Its work!
0
 
Farhan KaziSystems EngineerCommented:
Your welcome & thanks for points.
0
 
joshua_2001Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.