From 865bc322007cc29c4227d692ff02bac71a2118d7 Mon Sep 17 00:00:00 2001 From: reiyua Date: Fri, 12 Apr 2024 19:31:26 +1000 Subject: [PATCH] Modify line 12 to allow for user to enter their own AD forest name --- AutoUserADCreator.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AutoUserADCreator.ps1 b/AutoUserADCreator.ps1 index bb73b87..b6f226b 100644 --- a/AutoUserADCreator.ps1 +++ b/AutoUserADCreator.ps1 @@ -8,8 +8,8 @@ # Import required PowerShell modules import-module ActiveDirectory -#Specify User Principal Name (Active Directory Domain Forest Name) -$UPN = "alphadelta.com" +#Specify User Principal Name (Active Directory Domain Forest Name) (Rayyan Modified to allow for user to enter their own forest name) +$UPN = Read-Host -Prompt "Please enter the Active Directory Forest name (example.com)" #Get user to specify path of the CSV file containing user info to be added into the Active Directory. $fpath = Read-Host -Prompt "Please enter the path to your CSV file:"