Citrix 1.x - Upgrade to MPS 4 - SVROFFLINE.VBS no longer works
| Guest | On a Server that was recently upgraded to MPS 4 a script that removes all Published applications no longer works. The error is — svroffline(40,13) MS VBScript Runtime Error: Invalid Procedure Call or Argument
The script still works fine on a server that runs MF XPa FR3 The script is **************************************************************************** Dim fso Set objArgs = WScript.Arguments svrName = objArgs(0) Set fso = CreateObject(”Scripting.FileSystemObject”) Set fp = fso.CreateTextFile(savePath %26#38; svrName %26#38; “.txt”, True, False) Set mfSvr = CreateObject(”MetaFrameCOM.MetaFrameServer”) For Each mfApp In mfSvr.Applications fp.Close Else Any help is appreciated |
| James Wambold | I have seen this error occationally with this script. Here are a few things to try.
1. unregister and reregister mfcom with the mfreg.exe program. mfreg /u mfreg #servername# 2. Reboot the server. Sometime the server has an unknown error and rebooting fixes it allowing the script to work correctly. |



