troubleshooting Question

Powershell and a J.O.B

Avatar of Leo Torres
Leo TorresFlag for United States of America asked on
PowershellMicrosoft SQL Server 2008Windows Server 2008
9 Comments1 Solution235 ViewsLast Modified:
I really dont know how easy or difficult this could be. But I am placing it here just in case.

Regarding question:

The solution provided work like a charm. No issues.

However when I try to run it as a SQL Agent job as an SSIS package or just Plain Powershell code. I runs and it failed. This is most likely because SQL will not allow Powershell to open an Instance of IE and runtime to do test.

So basically what I want to do is place this code on a schedule so it runs every Sunday Morning.

I did try a Windows Task by the way but it just ran and did not produce anything it just hung. So my question is how do I create a Job that runs for the Powerhsell code?

My environment
PS version 4.0
OS Windows 2008 R2
SQL 2008 R2
DBAduck - Ben Miller
SQL Server Architect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros