→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎10-26-2016 04:45 PM - last edited on ‎04-01-2024 03:38 PM by Mercedes_O
Hi,
Here's a neat trick to deploy an action as an admin and have it launch a program as the logged on user (making it appear on their screen).
cmd.exe /K SCHTASKS /Create /S {smartname} /TN "Run Calculator Task" /TR "calc.exe" /SC ONCE /SD 20/10/2010 /ST 20:10 /RU {userdomain}\{username} /F && SCHTASKS /Run /S {smartname} /TN "Run Calculator Task" && SCHTASKS /Delete /S {smartname} /TN "Run Calculator Task" /F
This is achieved by creating a task on the remote computer that's configured to run as the logged on user. The task is immediately run and afterwards deleted.
If you think this is useful. Consider liking my feature request to make this work in deployments too. The link is here: http://www.lansweeper.com/Forum/yaf_postst13655_More-action-parameters--variables--in-deployments.as...
Currently it won't work in deployments because the {userdomain}\{username} variables aren't recognised within deployments.
‎03-29-2023 09:08 PM
Can you explain when I would need to use this?
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now