×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Removing Registry Key Via SMS

Removing Registry Key Via SMS

Removing Registry Key Via SMS

(OP)
Hello Everyone,

I have been pushing out program installs and removals through SMS for about 6 months now and am quite confident in that aspect BUT am not too sure how to delete a registry key through SMS. I've created a .reg file and also a batch file and pushed both out to a test PC, I see that the file has been sent but do not see any successes or failures.

Is there a better way to push a registry deletion through SMS?

Here is a sample of the script I wrote (not sure if it even works)

Windows Registry Editor Version 5.1

[HKEY_LOCAL_MACHINE\Software\Network Associates\Epolicy Orchestrator\Agent\AgentGUID]
"AgentGUID"=-

I tried pushing this out as a batch and a reg file but nothing seems to happen.

Thanks

Mike

RE: Removing Registry Key Via SMS

Perhaps try doing a

REG DELETE "HKLM\SOFTWARE\Network Associates\Epolicy Orchestrator\Agent\AgentGUID\AgentGUID=youranswer" /f

from a batch file instead.  

SimonD.

The real world is not about exam scores, it's about ability.

 

RE: Removing Registry Key Via SMS

(OP)
Thank you Simon, stupid question....in your command where you have "youranswer" am i suppose to put a value of delete or true there?

Mike

RE: Removing Registry Key Via SMS

Yes, in actual fact you should be able to just do REG DELETE "HKLM\SOFTWARE\Network Associates\Epolicy Orchestrator\Agent\AgentGUID\AgentGUID" /f as that will delete the key for you (leaving any other entries in there).

I was having a bit of a blonde moment.

SimonD.

The real world is not about exam scores, it's about ability.

 

RE: Removing Registry Key Via SMS

(OP)
Thanks Simon I will give that a try.

Cheers

RE: Removing Registry Key Via SMS

(OP)
Still no luck, here is the batch file I wrote

REG DELETE "HKLM\SOFTWARE\Network Associates\Epolicy Orchestrator\Agent\AgentGUID" /f

SMS returned an error message with a status of 1 notifying me that the program failed.

Thanks
 

RE: Removing Registry Key Via SMS

You may have to put the entire entry in there, so that you delete AgentGUID=1 instead of AgentGUID

SimonD.

The real world is not about exam scores, it's about ability.

 

RE: Removing Registry Key Via SMS

(OP)
Thank you Simon. All your help is greatly appreciated.

I've modified the batch file.

REG DELETE "HKLM\SOFTWARE\Network Associates\Epolicy Orchestrator\Agent\AgentGUID=1" /f

RE: Removing Registry Key Via SMS

the =1 thing might not be the entry tho, you need to see what your entry says and then change the batch file accordingly (I don't use EPO so it was only a guide).

SimonD.

The real world is not about exam scores, it's about ability.

 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close