Link to home
Create AccountLog in
Avatar of superfxp
superfxp

asked on

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
Avatar of Farhan Kazi
Farhan Kazi
Flag of Australia image

Try following

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

ASKER

It doesn't work. I think MWI Applications has a space in between and that cause the error
Yes, thats why I enclosed the whole path in double quotes (" "). I run above statement on my PC and it works perfectly.

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

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
Try this:

Reg ADD "\\SERVER\HKLM\Software\MWI Appllications\Pointsec\6.1.3HF1\Managed"  /v "Not Manage" /t REG_SZ /d No
ASKER CERTIFIED SOLUTION
Avatar of Farhan Kazi
Farhan Kazi
Flag of Australia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Great thank you. Its work!
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