home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 May / W2KPRK.iso / scripts.cab / xnet.txt < prev   
Text File  |  1999-11-04  |  6KB  |  141 lines

  1. XNET
  2. =============================================================================
  3. Win32 character-based/commandline utility enabling you to manage local and
  4. remote Windows NT services.
  5.  
  6.  
  7. USAGE
  8. =============================================================================
  9.  
  10. 1 general usage.
  11. -----------------------------------------------------------------------------
  12. Usage : XNET <Start  | Stop   | Pause  | Continue | List | Install | 
  13.               Remove | Modify | Reboot | Shutdown | Help>
  14.  
  15. Run XNET HELP <command> for information on the individual commands.
  16.  
  17. Example : XNET HELP MODIFY
  18.  
  19.  
  20. 2 starting, pausing, continuing or listing a service.
  21. -----------------------------------------------------------------------------
  22. Usage : XNET <Start | Pause | Continue | List>
  23.              [[\\Server\]ServiceName] [/w:Wait]
  24.  
  25. Start       - Starts specified service, or lists all running services if no
  26.               service specified.
  27. Pause       - Pauses specified service.
  28. Continue    - Resumes specified service.
  29. List        - Lists all services, or details on specific service.
  30. ServiceName - name of service, optionally preceded by name of remote
  31.               machine (eg : \\REMOTE\MSSQLServer).
  32. Wait        - number of seconds to wait for request to complete (default : 30
  33.               seconds)
  34.  
  35. Example : XNET START \\HOUND\Spooler
  36.           XNET PAUSE MSSqlserver /w:90
  37.           XNET LIST \\HYENA
  38.           XNET LIST
  39.           XNET LIST NetLogon
  40.  
  41.  
  42. 3 stopping a service.
  43. -----------------------------------------------------------------------------
  44. Usage : XNET STOP [[\\Server\]ServiceName] [/w:Wait] [/y]
  45.  
  46. ServiceName - name of service, optionally preceded by name of remote
  47.               machine (eg : \\REMOTE\MSSQLServer).
  48. Wait        - number of seconds to wait for request to complete (default : 30
  49.               seconds)
  50. /y          - Don't ask for confirmation to stop dependent services.
  51.  
  52. Example : XNET STOP \\HOUND\Spooler
  53.           XNET STOP MSSqlserver /w:90
  54.           XNET STOP Netlogon /y
  55.  
  56.  
  57. 4 installing a service.
  58. -----------------------------------------------------------------------------
  59. XNET INSTALL [[\\Server\]ServiceName] [/b:Binary] [/d:Dependencies]
  60.              [/l:LoadOrderGroup] [/n:DisplayName] [/u:User] [/p:Password]
  61.              [/i:Interactive] [/s:StartType]
  62.  
  63. ServiceName    - name of service, optionally preceded by name of remote
  64.                  machine (eg : \\REMOTE\MSSQLServer).
  65. Binary         - Name of executable.
  66. Dependencies   - Dependencies of service.
  67. LoadOrderGroup - LoadOrderGroup of service.
  68. DisplayName    - 'Long' name of service (aka DisplayName).
  69. User           - name of (domain) user account to assign to service. Specify
  70.                  'LocalSystem' to assign system account.
  71. Password       - Password for service.
  72. Interactive    - specify Yes or No to allow service to interact with desktop.
  73. StartType      - indicates when a service will be started. Possible values
  74.                  are 'AUTO' (started at system startup), 'DEMAND' (started
  75.                  at user request) and 'DISABLED'.
  76.  
  77. Example : XNET INSTALL \\HOUND\MyService /b:C:\WIN32\MS.EXE /u:LocalSystem
  78.           XNET INSTALL MyService /b:C:\WIN32\MS.EXE /u:RuudV /p:password
  79.           XNET INSTALL MyService /b:C:\WIN32\MS.EXE /u:HiYa\There /p:right
  80.  
  81.  
  82. 5 modifying a service.
  83. -----------------------------------------------------------------------------
  84. XNET MODIFY [[\\Server\]ServiceName] [/u:User] [/p:Password] [/b:Binary]
  85.              [/d:Dependencies] [/l:LoadOrderGroup] [/n:DisplayName]
  86.  
  87. ServiceName    - name of service, optionally preceded by name of remote
  88.                  machine (eg : \\REMOTE\MSSQLServer).
  89. User           - name of (domain) user account to assign to service. Specify
  90.                  'LocalSystem' to assign system account.
  91. Password       - Password for service.
  92. Binary         - Name of executable.
  93. Dependencies   - Dependencies of service.
  94. LoadOrderGroup - LoadOrderGroup of service.
  95. DisplayName    - 'Long' name of service (aka DisplayName).
  96. Interactive    - specify Yes or No to allow service to interact with desktop.
  97. StartType      - indicates when a service will be started. Possible values
  98.                  are 'AUTO' (started at system startup), 'DEMAND' (started
  99.                  at user request) and 'DISABLED'.
  100.  
  101. Example : XNET MODIFY \\HOUND\MyService /u:SE\User1 /p:NewPass
  102.           XNET MODIFY \\HOUND\MyService /u:LocalSystem
  103.           XNET MODIFY MyService /n:FancyName
  104.  
  105.  
  106. 6 removing a service.
  107. -----------------------------------------------------------------------------
  108. Usage : XNET REMOVE [[\\Server\]ServiceName]
  109.  
  110. ServiceName - name of service, optionally preceded by name of remote
  111.               machine (eg : \\REMOTE\MSSQLServer).
  112. /y          - Don't ask for confirmation of remove.
  113.  
  114. Example : XNET REMOVE SampleService
  115.  
  116.  
  117. 7 rebooting/shutting down Windows NT.
  118. -----------------------------------------------------------------------------
  119. XNET <Reboot | Shutdown> [\\server] [/w:Wait] [/m:Message] [/f] [/y]
  120.  
  121. Reboot      - Reboots specified server, or local machine if no server
  122.               specified.
  123. Shutdown    - Shuts down specified server, or local machine if no server
  124.               specified.
  125. Message     - Warning/message to display on specified server during countdown.
  126. Wait        - Wait xx seconds for request to complete (default : 30 seconds)
  127. /f          - Force applications closed (don't allow 'FileSave' dialogs).
  128. /y          - Don't ask for confirmation of request.
  129.  
  130. Example : XNET REBOOT \\HOUND /y
  131.           XNET SHUTDOWN /w=120
  132.           XNET SHUTDOWN /f
  133.  
  134.  
  135. NOTES
  136. =============================================================================
  137. 1 Current version = 1.04
  138.  
  139. 2 XNet was developed by Ruud van Velsen of Microsoft Benelux. The program
  140.   is not officially supported by Microsoft, but any feedback is welcome.
  141.