![]() ![]() ![]() dsquery users | dsmod user -hmdir \\server\users\$username$\ĭsmod recognizes that the $username$ flag means the samid of the user that is piped to it from the dsquery command. I would run it something like this, if you want to alter all the users across your domain. Or you could just type it into a command line. Go to the "Profile" tab and make the change as described above.Īlternately, you could use a batch file to manage this and run it as a script, if you do not want to use the GUI. Highlight users in the right-pane, right-click and choose "Properties". ![]() Highlight your newly-created query and right-click and choose "Refresh" (or press F5) if the query isn't populating the right pane. Click "OK" and "OK" again to define the query. In the "Find Common Queries" dialog, choose "Has a value" from the drop-down list to the right of the "Name" caption on the "Users" tab. In the query definition, choose an OU above the user accounts for the "Query root" (or the root of the domain, if they're in OUs that are children of the root).Ĭlick "Define Query". Name the query whatever you'd like and supply a description if you'd like. Assuming you're using the Windows 2003 version of Active Directory Users and Computers:Īt the "Saved Queries" node at the top of AD, do a "New" / "Query". If they're spread out over multiple OUs it's a little tougher, but not much. Active Directory Users and Computers can do what you want, if your user folder names match their account names.Īssuming all the users are in the same OU, just highlight all of them, right-click and choose "Properties", got to the "Profile" tab, and enter the new path in the form: \\server\users\%USERNAME%\ ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |