Add file path checking component
This commit is contained in:
parent
b50d3999c2
commit
a8f100e85b
|
@ -10,6 +10,11 @@ import-module ActiveDirectory
|
|||
#Get user to specify path of the CSV file containing OU names to be added into the Active Directory.
|
||||
$fpath = Read-Host -Prompt "Please enter the path to your CSV file containing OU info to be added within the Active Directory Domain Forest"
|
||||
|
||||
# Check if the CSV file exists
|
||||
if (Test-Path $fpath) {
|
||||
# Display path to file given by end-user
|
||||
echo $fpath
|
||||
|
||||
# Display path to file given by end-user
|
||||
echo $fpath
|
||||
|
||||
|
|
Loading…
Reference in New Issue