The wincfg utility makes it easy for CA AppLogic users to change the SID, Computer Name and Maintainer password for a running Windows appliance from the CA AppLogic command line shell. wincfg starts the application that contains the appliance if it is not already started.
Configure a Windows appliance
util wincfg name=<app_name:comp_name> admin_pw=<password> computer_name=<new_name> --newsid [-s] --yes [-y]
Name of appliance to configure in the form application_name:component_name
New computer name of the appliance
The password can be set either directly, by supplying the password string on the command line, or typed to a 'shadow-display' password prompt that does not reveal the entered characters. The shadow entry option is selected by using a single '-' character as the password, that is, admin_pw=-. The admin_pw=- option should ALWAYS be used to prevent others from potentially seeing the password by hitting the up arrow key.
Change the SID of the appliance, or enable a new SID for the Windows appliance.
Answer yes to all questions.
util wincfg name=tst-windows:main.WIN03S computer_name=WIN03TST
Change Computer Name of the Windows appliance to WIN03TST
util wincfg name=tst-windows:main.WIN03S admin_pw=-
Change Maintainer password for the Windows appliance.
util wincfg name=tst-windows:main.WIN03S --newsid
Change SID for the Windows appliance
util wincfg name=tst-windows:main.WIN03S computer_name=WIN03TST admin_pw=-
Change Computer Name and Maintainer password for the Windows appliance.
util wincfg name=tst-windows:main.WIN03S computer_name=WIN03TST --newsid
Change Computer Name and SID of the Windows appliance.
util wincfg name=tst-windows:main.WIN03S admin_pw=- --newsid
Change Maintainer password and SID of the Windows appliance.
util wincfg name=tst-windows:main.WIN03S computer_name=WIN03TST admin_pw=- --newsid
Change Computer Name and SID of the Windows appliance.
You can not use the wincfg utility to change the computer SID on Windows Server 2008 based appliances. Use Microsoft's sysprep to change the SID of Windows Server 2008 based appliances. For more information, see the following websites:
Changing the computer SID with sysprep also restores the OS's Out-of-Box Experience. Many system properties and settings are restored to their defaults.
If you use sysprep to change the SID on a Windows appliance that has Cygwin installed (included in all of the Windows appliance MSI's distributed with CA AppLogic), then update the Cygwin environment to reflect the change to the computer SID as follows:
chmod 777 /etc/passwd
Verifies that the passwd file is writable.
mkpasswd -l -c > /etc/passwd
Regenerates a passwd file from system users (include new computer SID).
sed -i -e 's/^Administrator:/root:/' /etc/passwd
Changes Administrator to root.
chmod 777 /var/log/sshd.log
Verifies that the sshd log file is writable.
chown -R sshd_server.None /var/empty
Verifies that the directory where sshd stores session files is writable.
chown sshd_server.None /etc/ssh*
Verifies the correct ownership of sshd configuration files.
chmod 600 /etc/ssh*
Verifies correct permissions.
chmod 770 /home/Administrator
Verifies correct permissions.
cygrunsrv --start sshd
Starts the sshd service. It should start without any errors.
Note: On Windows 2008 64-bit systems, the sysprep utility may fail to execute with a fatal error. In this case, execute the 'mountvol/e" command from the Command window and reboot. Perform the sysprep launch procedure again.
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|