ruudmens / LazyAdmin

SysAdmin scripts for you to use.
MIT License
619 stars 222 forks source link

ActiveDirectory/Import-ADUsers.ps1 error #32

Open 91CoolDude opened 1 month ago

91CoolDude commented 1 month ago

Getting this error while running the script

**Import-Csv : Cannot validate argument on parameter 'Path'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At C:\Users\Administrator\Desktop\Import-ADUsers.ps1:79 char:37

ruudmens commented 1 month ago

You will need to give up a path to the CSV file, for example:

.\Import-ADUsers.ps1 -CSVpath c:\temp\users.csv