You could extend this script by
passing a second argument to the batch file, but it really isn??™t necessary because the reader will need
to change the password anyway.
488 CHAPTER 19 CONFIGURING DIRECTORY SERVICES
NOTE Make sure you turn off echo when working with scripts that will reveal password information,
even when this information is a default setting as shown here. You don??™t want someone peering
over your shoulder to see a password that should remain private. As an alternative, you can
always replace the password string with an asterisk (*). The utility will prompt you to provide a
password at the appropriate time. Anything you type will appear as a series of asterisks on screen.
Displaying a List of Hostnames
Anyone working on a large network will attest to the difficulty of remembering all of the hostnames.
Even if you work on the network every day, you??™ll run into a server that you don??™t work with very
often and find yourself scratching your head to remember the hostname. Rather than look up the
name using a graphical utility, where you could spend more than a few minutes trying to find the
hostname you need, you can obtain a quick list from Active Directory using the following script.
Pages:
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155