Quantcast
Channel: Software Communities : Popular Discussions - ActiveRoles
Viewing all articles
Browse latest Browse all 1277

User Provisioning with Powershell

$
0
0

Hi all,

very new to Powershell so please forgive this being a very basic question. We have our provisioning process set up which works fine. However, a need has recently arisen to create a folder on a particular share using each new user's samaccount name at the end of the provisioning process. From what i've read it seems this should be possible by creating a powershell Policy Script (under the Script Modules node) and having it applied onPostCreate as the final step in the provisioning process.

 

My issue is that i'm not sure how to form the powershell script should take. So far i've cobbled the following together but, unsurprisingly for my first powershell script, it doesn't work:

 

New-Item -Path \\Exampleserver\namespace$\ + $User.SamAccountName -ItemType directory

 

Any help or info would be much appreciated. Thanks


Viewing all articles
Browse latest Browse all 1277

Trending Articles