Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActiveDirectory/Import-ADUsers.ps1 error #32

Open
91CoolDude opened this issue Oct 9, 2024 · 1 comment
Open

ActiveDirectory/Import-ADUsers.ps1 error #32

91CoolDude opened this issue Oct 9, 2024 · 1 comment
Assignees

Comments

@91CoolDude
Copy link

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

  • ForEach ($user in (Import-CSV -Path $CSVpath)) {
  •                                 ~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Import-Csv], ParameterBindingValidatio
      nException
    • FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Co
      mmands.ImportCsvCommand**
      Screenshot 2024-10-09 130534
@ruudmens
Copy link
Owner

ruudmens commented Oct 9, 2024

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

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

@ruudmens ruudmens self-assigned this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants