![]() You may alter these steps of course according to your requirements:įirst, I want to find out whether there is a user with this sAMAccountName in the domain at all. After that, I simply set the drive letter. Next, I combine the share path and the sAMAccountName to get the complete path. This will be the input parameter for the script. In this case I am going to set the identity of the user by adding the sAMAccountName. ![]() ![]() Drive letter which the user will see in Windows Explorer.For this purpose we need three variables for our script: Let us start with creating a home share for a new user. 5 Create users with a home directory automatically in AD.3 Results – New home directory with relevant permissions.1 Create home directory with PowerShell.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |