hi Friends,I was wondering if anyone of you have come across situation to run a powershell Script with parameter Store Proc. I'm able to run a powershell Script using below command but i need to run powershell with input parameter.Working Fine: [code="sql"]EXEC xp_cmdshell 'powershell -Command D:\Temp\Get-Service.ps1'[/code]Failing and Need Help: [code="sql"]EXEC xp_cmdshell 'powershell -Command "MyServerName" | "D:\Temp\StopSDOpsService.ps1"'[/code]
↧