Prev | Current Page 1140 | Next

John Paul Mueller

"Administering Windows Server 2008 Server Core"

Single function scripts and batch files
are easier to debug and understand.
Of course, this brings up the question of remembering so many command lines that you don??™t really
gain any benefit from all of those single function script or batch files. That??™s where menu systems come
in handy. The ???Using the Choice Command??? section of Chapter 5 describes a very simple technique for
accessing all of your batch or script files from a menu. All you need to do is create the script or batch file,
and then call it from your menu. You now have all of the advantages of a multi-feature batch or script file
without any of the pain.
WORKING WITH USERS, GROUPS, AND COMPUTERS 487
Obtaining a User??™s Full Name
Sometimes a user will provide you with their email address and a logon name and that??™s it. What
you really want is the user??™s full name so that you can understand their needs better by looking up
their association with the company. When this problem occurs, you can still look up the user information
using Active Directory. Simply use the script shown here.
DSQUERY USER -samid %1 | DSGET USER -samid -display
In this case, the input you provide is the user??™s logon name.


Pages:
1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152
Betsson Poker serwis laptopów William Hill Poker Everest Poker Bonus Kod programy