Link to home
Start Free TrialLog in
Avatar of Headmasters
HeadmastersFlag for United Kingdom of Great Britain and Northern Ireland

asked on

SQL 2014 Agent PowerShell

We have just migrated our database and SQL agent jobs from SQL server 2008 to our new 2014 SQL server.

The below is a step within a SQL Agent Job but now the job is failing on the powershell script and is coming back with Invalid Path.

New-Item '\\Server3\Release Files$\Success\Release\Release.txt" -type file -force'

Any ideas? I have tried the below

powershell.exe -command "New-Item '\\Server3\Release Files$\Success\Release\Release.txt" -type file -force"
ASKER CERTIFIED SOLUTION
Avatar of PadawanDBA
PadawanDBA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial