From 08041157e754b12ef8a1526a1fd40440a6611b71 Mon Sep 17 00:00:00 2001 From: reiyua Date: Tue, 9 Apr 2024 01:43:22 +1000 Subject: [PATCH] Update AutoUserAndOUCreator.ps1 --- AutoUserAndOUCreator.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AutoUserAndOUCreator.ps1 b/AutoUserAndOUCreator.ps1 index 06a4c70..34e02bd 100644 --- a/AutoUserAndOUCreator.ps1 +++ b/AutoUserAndOUCreator.ps1 @@ -1,7 +1,7 @@ # Copyright 2024 Rayyan Hodges, M Salim Olime, TAFE NSW, AlphaDelta # Contact: rayyan.hodges@studytafensw.edu.au, mohammad.olime1@tafensw.edu.au # Program Name: AutoUserAndOUCreator -# Purpose of script: Create a batch set of user's using a CSV file containing a list of predetermined users. +# Purpose of script: Create a batch set of user's and OU's using a CSV file containing a list of predetermined users and OU's. # Other notes: Orginally created by M Salim Olime (Salim), my teacher as part of our class with my assigned modification of creating batch OU's within the script. # Import required PowerShell modules @@ -30,4 +30,4 @@ ForEach ($user in $fusers) { $OUpath = $user.OU echo $fname $lname $jtitle $OUpath New-ADUser -SamAccountName = $fname.$lname -UserPrincipalName "$fname@alphadelta.com" -Path $OUpath -AccountPassword $fsecPass -Enabled $true -PassThru - } \ No newline at end of file + }