IT-Windows Server & TS

Terminal Services commands

Posted on

• Change logon

Enables or disables logons from client sessions, or displays current logon status. This utility is useful for system maintenance.

• Change port

Lists or changes the COM port mappings to be compatible with MS-DOS applications.

• Change user

Changes the setting for .ini file mapping.

• Cprofile

Cleans specified profiles of wasted space and, if user-specific file associations are disabled, removes these associations from the registry. Profiles that are currently in use are not modified.

• Flattemp

Enables or disables flat temporary folders.

• Logoff

Logs off a user from a session and deletes the session from the server.

• Msg

Sends a message to a user.

• Mstsc

Creates connections to terminal servers or other remote computers, edits an existing Remote Desktop Connection (.rdp) configuration file, and migrates legacy connection files that were created with Client Connection Manager to new .rdp connection files.

• Query process

Displays information about processes running on a terminal server. You can use this command to find out which programs a specific user is running, and also which users are running a specific program.

• Query session

Displays information about sessions on a terminal server. The list includes information not only about active sessions but about other sessions that the server runs.

• Query termserver

Displays a list of all terminal servers on the network.

• Query user

Displays information about user sessions on a terminal server.

• Register

Registers a program so that it has special execution characteristics.

• Reset session

Enables you to reset (delete) a session from the terminal server.

• Shadow

Enables you to remotely control an active session of another user.

• Tscon

Connects to another session.

• Tsdiscon

Disconnects a session from a terminal server.

• Tskill

Ends a process.

• Tsprof

Copies the user configuration information, which is displayed in the Terminal Services extensions to Local Users and Groups and Active Directory Users and Computers, from one user to another. Tsprof can also set the profile path for a user.

• Tsshutdn

Enables an administrator to remotely shut down or reboot a terminal server. You can also choose to power off the server if the computer supports software control of AC power.

Group Policy Inventory (GPInventory.exe)

Posted on

Group Policy Inventory (GPInventory.exe) allows administrators to collect Group Policy and other information from any number of computers in their network by running multiple Resultant Set of User Policy (RSOP) or Windows Management Instrumentation (WMI) queries. The query results can be exported to either an XML or a text file, and can be analyzed in Excel.

Typical usage scenarios

RSOP Queries:

        Do a software inventory for users and computers in a domain or OU

        See which applications are installed on computers in the domain

        Track the rollout of new GPOs on a domain

        Find computers that have not downloaded and applied new GPOs

WMI Queries:

        Do a complete hardware inventory (processor, memory, hard disk space, etc) for all computers in the domain

        Scan all computers to see if a particular hotfix is applied

        See the amount of disk space that is available on computers

        Test a WMI filter before implementing it in the domain

Download at http://www.microsoft.com/downloads/details.aspx?familyid=1D24563D-CAC9-4017-AF14-8DD686A96540&displaylang=en

Active Directory Performance Testing Tool (ADTest.exe)

Posted on

ADTest.exe is an Active Directory load-generation tool that simulates client transactions on a host server to assess the performance of the Microsoft® Active Directory™ within Microsoft® Windows® Server 2003 and Microsoft® Active Directory Application Mode™.

ADTest is an Active Directory load-generation tool. It allows you to simulate client transactions on the host server. By varying client load, you can relate the transaction rate to resource utilization on the server and get some idea about the requirements for your environment. Because ADTest can perform generic Active Directory requests, it can also create an organizational unit structure inside Active Directory. You can add many organizational units and user objects in those ADTest-created organizational units. You can also add attributes to the user objects. Once you have created the Active Directory structure you require, you can use ADTest to perform various Active Directory requests, including Modify and Search. Several pre-built tests have been written to reproduce some typical activities you might want to evaluate. Examples of these pre-built tests are: an interactive logon, a batch logon, a search for a random user, and a modification of an attribute of a random user. By varying your hardware environment or other test parameters, you can gain insight into the performance sensitivities of your particular setup.

Remember that benchmarking and performance exercises are useful for comparing platforms or for getting a general understanding of the hardware requirements for common implementation scenarios. However, because these tests are run in constrained environments, such as an isolated lab, they do not necessarily translate directly to deployable scenarios. Therefore, it is important to understand that while this tool is meant to help you prepare for a fairly comprehensive server-sizing and capacity-planning effort, any data generated is only meant for general sizing, benchmarking, or deployment recommendations.

Download at http://www.microsoft.com/downloads/details.aspx?familyid=4814FE3F-92CE-4871-B8A4-99F98B3F4338&displaylang=en

Terminal Services License Server Viewer (LSView.exe)

Posted on

Terminal Services License Server Viewer (LSView) is a graphical tool that displays information useful for monitoring and logging the status of all available Terminal Services license servers in the current domain and current site of the computer.

LSView displays the following information:

        The names of all license servers in the current domain and site. This includes new license servers added to the domain and all license servers from the current Active Directory Site within the domain.

        The types of all license servers in the domain. There are two types of license servers, Enterprise License Servers and Domain License Servers. The Workgroup License Server type for workgroups is Domain. It is important to know the type of license server when troubleshooting.

        The date and time each license server is available. By default, LSView updates server availability every five minutes.

This update addresses the following issue:

Added support to log discovery operations from Windows 2000 and Windows Server 2003 License Servers

Download at http://www.microsoft.com/downloads/details.aspx?familyid=4D6541A6-D9DD-4F93-9EC2-7EA0E3968628&displaylang=en