• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 496
  • Last Modified:

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
0
superfxp
Asked:
superfxp
  • 6
  • 3
1 Solution
 
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
 
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
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 
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
 
Farhan KaziSystems 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
 
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now