I have 2 files inside \hqfs1\users\tantony\PowerShell\CalenderGroup\
1 = a text file
2 = Powershell script
Do I have to type in Get-Content \hqfs1\users\tantony\PowerShell\CalenderGroup\text.txt to read the text file or can I do?
You can even use tab completion to verify its there.
When I do that, it’s pointing to system32 folder
I mean the current directory. In my case \hqfs1\users\tantony\PowerShell\CalenderGroup\
That’s a UNC path, so that could be the reason?
Are you running this as a scheduled job? I’ve had issues with them in the past where it doesn’t honor the working directory. If not, then yes, it may be a UNC path problem. If they are in the same directory, you could still use the script directory.