Custom inventory rule for desktop shortcut
I haev to deploy an exe which removes desktop shortcut of of the application. I added "Remove Desktop Shortcut" software in custom inventory. Need help in creating custom inventory rule for this.
0 Comments
[ + ] Show comments
Answers (9)
Please log in to answer
Posted by:
GillySpy
13 years ago
Posted by:
divya_dogra
13 years ago
Posted by:
GillySpy
13 years ago
You cannot use environment variables in those.
If it's on the user's desktop then i would run it as a script which runs on login as the user. The verify portion of the task would check for the existence of the file . Then in the success phase of the task the script could have a batch task that runs your exe.
If it's on the user's desktop then i would run it as a script which runs on login as the user. The verify portion of the task would check for the existence of the file . Then in the success phase of the task the script could have a batch task that runs your exe.
Posted by:
GillySpy
13 years ago
if you require local admin rights to delete a shortcut on the user's desktop then you'll have to do something to determine that current user then delete their shortcut.
Something like this script would help you discover that.
http://www.kace.com/support/kb/index.php?action=artikel&cat=5&id=698&artlang=en
Something like this script would help you discover that.
http://www.kace.com/support/kb/index.php?action=artikel&cat=5&id=698&artlang=en
Posted by:
divya_dogra
13 years ago
Posted by:
GillySpy
13 years ago
The custom inventory rule is irrelevant to you now.
Because of your combination of requiring that a local admin delete something discovered in the local user context then you should use a custom batch or vbs. This can be deploy with an MI or via scripting.
I would go with scripting because it gives you more control over a complex set of steps
Because of your combination of requiring that a local admin delete something discovered in the local user context then you should use a custom batch or vbs. This can be deploy with an MI or via scripting.
I would go with scripting because it gives you more control over a complex set of steps
Posted by:
divya_dogra
13 years ago
Posted by:
GillySpy
13 years ago
Off the top of my head I'm not certain (anyone else?), but what environment variable would you use here?
As you already said the script is not going to run in the context of that user, but rather the admin (or by default the SYSTEM account). Thus, you would need to verify it as part of your code -- might as well just skip the verify step in the script.
As you already said the script is not going to run in the context of that user, but rather the admin (or by default the SYSTEM account). Thus, you would need to verify it as part of your code -- might as well just skip the verify step in the script.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.