Modify line 12 to allow for user to enter their own AD forest name

This commit is contained in:
Ray 2024-04-12 19:31:26 +10:00 committed by GitHub
parent 32dbff084a
commit 865bc32200
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@
# Import required PowerShell modules # Import required PowerShell modules
import-module ActiveDirectory import-module ActiveDirectory
#Specify User Principal Name (Active Directory Domain Forest Name) #Specify User Principal Name (Active Directory Domain Forest Name) (Rayyan Modified to allow for user to enter their own forest name)
$UPN = "alphadelta.com" $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. #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:" $fpath = Read-Host -Prompt "Please enter the path to your CSV file:"