This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

EMU Vbscript failing

Hi all

i am trying to run the VBscript to relink my clients to the console and i get two different errors. if i dont force config i get the error: 5/23/2013 12:46:29 PM ERROR:  Router is a server router, will exit

which someone said is because that machine hasnt got the connection cache value of 10 in the registry but it does.

the other error is when i force config, i get the error: ERROR: Return code 5

i have did some searching and cant find a list of the error codes anywhere. this would be helpful

Any help you can give would be greatful :)

James,

:44343


This thread was automatically locked due to age.
  • Hello James,

    does it fail on all clients? It might (I didn't inspect the VBS' logic) be an issue with registry permissions (if 5 means the usual Access denied). The error codes are just  passed from the invocations thus it'd help to see where the error 5 is issued - so please post the log(s) here, guess they are not excessively long.

    Christian

    :44345
  • Are you running it as admin?  If you create a new command prompt running as administrator and run it from that it will probably be ok.

    Regards,

    Jak

    :44351
  • Ok i stupidly didnt think of trying it as local admin as a test and it works as local admin.

    The problem i have is that there is no way i can login to all 1200 machines and 400ish laptops as local admin and run the script, What way could i go about running these scripts with local admin rights? that i knew off its not possible to do that with a VBscript.

     if you want i can still post the logs from both fails on here.

    :44357
  • This is the error i get when i force the update:

    22/10/2013 13:54:54 INFO:  Starting Script
    22/10/2013 13:54:54 INFO:  Options:
    22/10/2013 13:54:54 INFO:      blnForceRMSRun : True
    22/10/2013 13:54:54 INFO:      blnForcePatchRun : False
    22/10/2013 13:54:54 INFO:      blnReconfigurePatch : False
    22/10/2013 13:54:54 INFO:      blnReconfigureRMS : True
    22/10/2013 13:54:54 INFO:      strSECGroupPathOut :
    22/10/2013 13:54:54 INFO:      intPauseForServiceInSeconds : 10
    22/10/2013 13:54:54 INFO:      strLogPath : C:\windows\temp\SophosReInit.txt
    22/10/2013 13:54:54 INFO:      strReInitLog : C:\windows\temp
    22/10/2013 13:54:54 INFO:      strManagementServerPort :
    22/10/2013 13:54:54 INFO:      strManagementServer :
    22/10/2013 13:54:54 INFO:  --> Is64()
    22/10/2013 13:54:54 INFO:  Platform is 32-Bit
    22/10/2013 13:54:54 INFO:  <-- Is64()
    22/10/2013 13:54:54 INFO:  Running RMS in force mode
    22/10/2013 13:54:54 INFO:  --> FixRMS()
    22/10/2013 13:54:54 INFO:  --> GetRMSPath()
    22/10/2013 13:54:54 ERROR:  Return code 5
    22/10/2013 13:54:54 INFO:  --> CloseLog() - No function exit logged

    :44359
  • This is the one when i dont use the Force update option:

    22/10/2013 13:55:34 INFO:  Starting Script
    22/10/2013 13:55:34 INFO:  Options:
    22/10/2013 13:55:34 INFO:      blnForceRMSRun : False
    22/10/2013 13:55:34 INFO:      blnForcePatchRun : False
    22/10/2013 13:55:34 INFO:      blnReconfigurePatch : False
    22/10/2013 13:55:34 INFO:      blnReconfigureRMS : True
    22/10/2013 13:55:34 INFO:      strSECGroupPathOut :
    22/10/2013 13:55:34 INFO:      intPauseForServiceInSeconds : 10
    22/10/2013 13:55:34 INFO:      strLogPath : C:\windows\temp\SophosReInit.txt
    22/10/2013 13:55:34 INFO:      strReInitLog : C:\windows\temp
    22/10/2013 13:55:34 INFO:      strManagementServerPort :
    22/10/2013 13:55:34 INFO:      strManagementServer :
    22/10/2013 13:55:34 INFO:  --> Is64()
    22/10/2013 13:55:34 INFO:  Platform is 32-Bit
    22/10/2013 13:55:34 INFO:  <-- Is64()
    22/10/2013 13:55:34 INFO:  --> MarkerFound()
    22/10/2013 13:55:34 INFO:  Script not already run.
    22/10/2013 13:55:34 INFO:  <-- MarkerFound()
    22/10/2013 13:55:34 INFO:  --> ServerClassRouter()
    22/10/2013 13:55:34 ERROR:  Router is a server router, will exit
    22/10/2013 13:55:34 INFO:  <-- ServerClassRouter()
    22/10/2013 13:55:34 INFO:  End of script
    22/10/2013 13:55:34 INFO:  --> CloseLog() - No function exit logged

    :44361
  • Thanks, athion

    Not running it as admin explains the errors. Did you intend that users run the script?

    What way could i go about running these scripts with local admin rights?

    The article (How to redirect Windows endpoints to a new management server) mentions an AD startup script (no AD?) or PsExec. Guess you don't have individual (i.e. different passwords) Administrator accounts on these machines, or do you?

    Christian

    :44363
  • Ok i have added the script to the machine startup in the GPO, will check tomorrow to see if this has worked and will post an update.

    thanks for the help so far :)

    :44381
  • Hi,

    Be careful running the force option (I'd suggest don't do it as a startup script will run as system) with a GP startup script if the policy applies to the SEC server or message relays.  If you can't seperate them out with different OUs, you may have to put a WMI filter in to exclude relays and SEC server conditionally.

    Regards,

    Jak

    :44423
  • Hi there,

    Sorry for the late reply! adding the script to the startup of the machines using AD group policy has worked nicely. :)

    thanks for all the help :)

    :44601