DS Utilities & $username$

By multiplexed ·
I'm adding a user to 2003 server using

dsadd user "cn=masha,cn=users,dc=domain,dc=local" -samid masha -display masha -profile "\\server\profiles\$username$"

When I open up AD users & computers, the profile reads exactly "\\server\profiles\$username$"

In other words the $username$ never resolves into the user's username. When the user logs off, the new roaming profile folder is named $username$ for the username, not masha.

If I user %username%, it correctly resolves, exept it resolves to the admin account.

It doesn't matter if I use quotes or not.

My question is how do I get $username$ to resolve correctly to the user's username with the DS Utilities.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -


by dawgit In reply to DS Utilities & $username$

I would try it this way:
dsadd user "cn=masha,cn=users,dc=domain,dc=local" -samid masha -display masha -profile "\\server\profiles\$masha$"

Loose 'username' and replace with 'masha', the actual users name.

Posted: 10/22/2006 @ 14:23 to your Q: (previous post)
once was enough.

Related Discussions

Related Forums