The DSQuery User object sends
the user information, based on a SAM identifier search, to the DSGet User object using a pipe (|). The
DSGet utility outputs the user??™s full name. Note that there??™s normally more than one way to accomplish
a task. If you??™re using an older version of Windows or a system that doesn??™t have Active Directory
installed, you can achieve the same results using this script.
NET USER %1 | FIND /I ??? name ???
In this case, you pass the user??™s logon name to the Net utility. This utility outputs all of the information
about the user to the Find utility using a pipe (|). The Find utility, in turn, locates just the
name entries.
Discovering User Group Membership
Many support problems revolve around security. One of the most common security problems is
a lack of group membership. The user attempts to perform a task that is under the purview of a
specific group and the user doesn??™t belong to that particular group. Unfortunately, all that the user
has told you is that the task is impossible to perform and the boss really needs the task completed
today. Rather than play 20 questions trying to discover the user??™s group membership, you can use
this simple script to obtain the information from Active Directory.
Pages:
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153