remotely update salt-minion wh1te909/winagent@57df6c42038aadd1579de975871e15e9bd4c1e34
@@ -22,3 +22,9 @@ def uninstall_agent():
remove_exe = os.path.join("C:\\Program Files\\TacticalAgent", "unins000.exe")
__salt__["cmd.run_bg"]([remove_exe, "/VERYSILENT", "/SUPPRESSMSGBOXES"])
return "ok"
+
+
+def update_salt():
+ tacrmm = os.path.join("C:\\Program Files\\TacticalAgent", "tacticalrmm.exe")
+ __salt__["cmd.run_bg"]([tacrmm, "-m", "updatesalt"])
+ return "ok"
\ No newline at end of file
