Script: Citrix PS 4.5 Restart script

In deze post vind je een Restart script die je kunt gebruiken bij het opnieuw starten van een Citrix Presentation Server 4.5 server. Dit script stopt alle Citrix Services en de Print Spooler. Daarna verwijderd hij alle spoolfiles en temp bestanden.


@ECHO OFF
ECHO -------------------------------------------------------------------------
ECHO File        : reboot.cmd
ECHO.
ECHO.
ECHO Purpose        : reboot script voor eenitrix server
ECHO.
ECHO Werking        : Stopt de Citrix en de Print Spooler Service(s). Disabled Logons.
ECHO.
ECHO Versiebeheer
ECHO ============
ECHO Datum               Versie    Door        Wijziging
ECHO -------------------------------------------------------------------------
ECHO 13:20 3-10-2007    0.1       AFA        Initial version
ECHO.
ECHO -------------------------------------------------------------------------
ECHO.

ECHO stopping the Citrix Services
NET STOP "Citrix ActiveSync Service" /y
NET STOP "Citrix Client Network" /y
NET STOP "Citrix Diagnostic Facility COM Server" /y
NET STOP "Citrix Encryption Service" /y
NET STOP "Citrix Health Monitoring and Recovery" /y
NET STOP "Citrix Independent Management Architecture" /y
NET STOP "Citrix MFCOM Service" /y
NET STOP "Citrix Print Manager Service" /y
NET STOP "Citrix Services Manager" /y
NET STOP "Citrix SMA Service" /y
NET STOP "Citrix XML Service" /y
NET STOP "Citrix XTE Server" /y

ECHO.
ECHO stopping the Print Spooler server
NET STOP "Print Spooler" /y

DEL "%Windir%\\System32\\spool\\PRINTERS\\*.* /q"

shutdown.exe -r -f -t 60 -c "Windows Server 2003 will now restart in 1 minute..."

One Response to Script: Citrix PS 4.5 Restart script

  1. fred thomas says:

    line 38 should read
    DEL “%Windir%\\System32\\spool\\PRINTERS\\*.*” /q

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>