jagnew.ignitionmsp wrote:I know, permissions are annoying aren't they?
Instead of giving the client more permissions than they need an alternative would be to create an extra data computer field called Mark Agent fo Deletion and tell the client to set that on any agent they want removed
Then have a script that runs on agents that have that field value set for that client. The script calls the SP_DeleteComputer on the agent and then it's deleted from the system.
aholmes.lseven wrote:How do I call SP_DeleteComputer? I'm looking at the script commands list and can't find it. I did a search throughout LT and also couldn't find it.
Update computers SET flags = flags & ~ 128 WHERE computerid=@computerid@
Call sp_DeleteComputer(%computerid%,'Detected computer was marked for deletion. Computer was deleted')
Users browsing this forum: No registered users and 1 guest