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:
EXEC xp_cmdshell 'powershell -Command D:\Temp\Get-Service.ps1'
Failing and Need Help:
EXEC xp_cmdshell 'powershell -Command "MyServerName" | "D:\Temp\StopSDOpsService.ps1"'