Remote Terminal Service Startup windows Script ROTS. vbs

Source: Internet
Author: User

**************************************** ***************************************
ROTS v1.05
Remote Open Terminal services Script, by zzzEVAzzz
Welcome to visite www.isgrey.com
Usage:
Cscript c: \ scriptpath \ ROTS. vbs targetIP username password [port] [/r |/fr]
Port: default number is 3389.
/R: auto reboot target.
/Fr: auto force reboot target.
**************************************** ***************************************

Description: windows Script for remotely starting Terminal Services.
Feature: whether the target ipc $ is enabled or not.
Principle: directly access the target windows Management Specification Service (WMI ).
Supported platforms: win2kpro win2kserver winxp win.net
Usage:
Use the script cscript.exe in the command line to call the script. For example:

C: \> cscript ROTS. vbs <target IP address> <username> <password> [Service port] [Automatic Restart option]

Service port: Set the service port of the terminal service. The default value is 3389.
Automatic Restart option: Use/r to automatically restart the target after the installation is complete for the setting to take effect.
Use/fr to force the target to be restarted. (If/r doesn't work, try this one)
When this parameter is used, port settings cannot be ignored.

The script will determine the target system type. If it is not a server or a later version, it will prompt you whether to cancel it.
Because the pro Version cannot install Terminal Services.
If you are sure that the script is incorrectly determined, continue to install it.

If you want to use it locally, the IP address is 127.0.0.1 or a point (expressed by.). The user name and password are empty (expressed ).

Port 135 of the target port accessed by the script. If the target port 135 is not open or the WMI Service is disabled, the script is useless.

This script is free software, and the change and release should be written by the original author. Thank you for your cooperation.
I provide limited technical support. If you have any questions, please send me a short message at the gray track forum. My ID is zzzevazzz

Last Updated: 2002-10-16
Update record:
1.05 fixed an error when the registry was changed.
1.04 Fixed a bug in system judgment.
1.03 distinguish between security and force.
1.02 Fixed a bug in error message.
1.01 added the port change function.
1.00 complete basic functions.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.