Skip to content

ActiveDirectory/Import-ADUsers.ps1 error #32

@91CoolDude

Description

@91CoolDude

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions