![]() |
![]() |
| Home | What's New | Products | Download | Purchase | Support | About Us | Contact |
SUPPORT > TIPS
|
|
|
|
VShell® Server Automation – Change PasswordThis is the first in a series of tips that will outline how to use VShell to automate common administrative tasks. This tip will describe how to change the local administrator password without having to physically go to every machine. VShell must be installed on all machines on which the password is to be changed. Fortunately, the Windows command line allows you to perform almost all of the Windows tasks that you need to administer the system. The syntax in most cases is straightforward and easy to learn, and remote command-line administration is much more efficient than Remote Desktop because only a few bytes are transmitted and the process can be automated for multiple machines. The Windows command shell is a powerful environment and contains a strong complement of Win32 console utilities to support it, including "net config" and "net user". Many of the Windows integrated administrative facilities are grouped under the "net" command. Typing "net" at the command line will print out a list of these commands. Details about the use of any "net" command are available by typing:
Changing the local administrator's password can be accomplished by executing the following command on each system:
The command will be launched using the remote execute capability of an SSH2 connection made to each target machine's VShell service. Running the remote command can be accomplished in a number of ways, depending on the SSH client you are using. For example, VanDyke Software's vsh utility can be used to execute the change password operation by adding the command after the login/host information:
Another way to run the remote command would be to use VanDyke Software's VRALib COM interface. The VRALib API allows scripting of SSH2 connections and provides remote execution through the "Connection" and "Exec" objects. For example, the sequence of PowerShell commands use the VRALib COM API to perform a password change operation on a remote machine:
Please see the VShell or ClientPack help files for more information about using VRALib.
|
|||||||||
| Products | Downloads | Purchase | Support | About Us | |
|---|---|---|---|---|---|
| VShell Server | VShell Server | Buy Direct | Evaluation | Contact | |
| SecureCRT | SecureCRT | License Pricing | Updates Policy | Press Releases | |
| SecureFX | SecureFX | About Encryption Export | FAQs | What's New | |
| VanDyke ClientPack | VanDyke ClientPack | Orders FAQ | Tips & How-Tos | Customer Stories | |
| Beta Software | Beta Software | Resellers | Forums | Secure Solutions | |
|
Site Map | Legal Notices | Privacy Policy | Refund Policy VShell, SecureCRT, SecureFX, Entunnel, CRT, and AbsoluteFTP are trademarks or registered trademarks of VanDyke Software, Inc. in the United States and/or other countries. All other trademarks or registered trademarks are the property of their respective owners. Copyright © 1995 - VanDyke Software, Inc. All rights reserved. |
|||||