Tuesday, April 30, 2013

Remotely updating AppV 4.6 apps with PSEXEC

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.cmd



With list.txt looking like so:

APPSERVER1
APPSERVER2
APPSERVER3
APPSERVER4

No comments: