pmitconsulting
IS-IT--Management
Hello -- I have been banging my head for a while now, trying to figure out how to write a powershell script with the quest powershell extensions, which will:
1) Query AD for users in a specific OU that don't have a home folder specified.
2) For each found user, add an entry, pointing U: to \\server\share
3) Create the actual folder on the server at \\server\share\%username% with full control for administrators and modify permissions for the %username%.
4) Schedule the script to run on a 2003 SP2 Domain Controller...
I am going to go out and buy a powershell for dummies book later today, and would appreciate it (if i get a response that is) if you could annotate the solution / script with explanations. This will help me learn how pshell scripting works. A VBScript to do this may do, and I'm pretty close with one, but I'd prefer to do this in powershell, since everyone is switching to pshell scripting. Thanks in advance!
1) Query AD for users in a specific OU that don't have a home folder specified.
2) For each found user, add an entry, pointing U: to \\server\share
3) Create the actual folder on the server at \\server\share\%username% with full control for administrators and modify permissions for the %username%.
4) Schedule the script to run on a 2003 SP2 Domain Controller...
I am going to go out and buy a powershell for dummies book later today, and would appreciate it (if i get a response that is) if you could annotate the solution / script with explanations. This will help me learn how pshell scripting works. A VBScript to do this may do, and I'm pretty close with one, but I'd prefer to do this in powershell, since everyone is switching to pshell scripting. Thanks in advance!