Remotely updating AppV 4.6 apps with PSEXEC

30 Apr 2013

Just create a script file (flush.cmd) that looks like so:

sftmime delete app:"AppName" 
sftmime refresh server:"AppVManagementServer" 
sftmime load app:"AppName" 
sftmime query obj:package

and you can execute the command with this PSEXEC.exe command:

for /f %A IN ('type C:\Users\trententtye\Desktop\list.txt') 
 DO P:\PSTools\PsExec.exe \\%A -c C:\Users\trententtye\Desktop\flush.cm

With list.txt looking like so:

APPSERVER1
APPSERVER2
APPSERVER3
APPSERVER4