mirror of
https://github.com/reiyua/AutoOUADCreator.git
synced 2026-01-20 16:47:47 +00:00
Add file path checking component
This commit is contained in:
parent
b50d3999c2
commit
a8f100e85b
1 changed files with 5 additions and 0 deletions
|
|
@ -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 a new issue