This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

import-csv giving file not found error

 i am getting file not found error on the below line 

$file=import-csv c:\temp\input.csv

 

file is already in place 

when i run the same script from windows powershell it is working , but giving error when run the same from ARS scheduled task .

 

any idea ?

Parents
  • How many ActiveRoles servers do you have and if you have more than one, which one "owns" the task? If you want this to work correctly all the time, you should to refer to the file thus:

    \\<ActiveRoles Server Name where the file resides>\C$\temp\input.csv
Reply
  • How many ActiveRoles servers do you have and if you have more than one, which one "owns" the task? If you want this to work correctly all the time, you should to refer to the file thus:

    \\<ActiveRoles Server Name where the file resides>\C$\temp\input.csv
Children
No Data