I am using PowerShell commands in my SQL job to get the list of files in a given network path.
Ex:
Get-ChildItem -path \\\ServerName\ShareName\\
I have created proxies for PowerShell in SQL Server and using a credential to run this PowerShell script.
This was working fine until I upgraded SQL on the machine from SQL Server 2008 R2 to SQL Server 2014. After upgrading, same PowerShell scripts started throwing 'Cannot find path because it doesn't exist'
Any solutions please? (apart from specifying filesystem provider with path or using powershell.exe
instead of sqlps)
FYI:
While upgrading to SQL Server 2014, I have received few errors related to reporting services, which I had ignored.