Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

Powershell job issues

$
0
0
So I am trying to schedule a powershell job on SQL Server[code="plain"]set-location "c:\Users\sqlagent\Documents".\Funcion_Get-Connection_New.ps1.\Test-ADGroupExists.ps1.\Get-ImpactProjects.ps1$DstDB = $null.\Check_DB_LoginsUsersRoles.ps1 "parm0" $DstDB "parm2" "parm3" "parm4"[/code]In the last script, Check_DB_LoginsUsersRoles.ps1, a call is made to a function created in Get-ImpactProjects.ps1. But the Job History shows an error saying that function could not be found ("is not recognized as a cmdlet, function, ..." etc.What am I doing wrong?

Viewing all articles
Browse latest Browse all 467

Trending Articles