Avatar of chrislindsay
chrislindsay
Flag for United Kingdom of Great Britain and Northern Ireland asked on

SQL Job running powershell script

Hi Experts,
I am having issues with a SQL powershell job I have created :-

$IE=new-object -com internetexplorer.application
$IE.navigate2("https://abc.com/Data")
$IE.visible=$false



 The job ran 13 times (scheduled) with no issues then stopped running reporting the issue below :-

A job step received an error at line 1 in a PowerShell script. The corresponding line is '$IE=new-object -com internetexplorer.application'. Correct the script and reschedule the job. The error information returned by PowerShell is: 'Retrieving the COM class factory for component with CLSID {0002DF01-0000-0000-C000-000000000046} failed due to the following error: 80080005.

The account that is running the job has full local permissions.  The scanning and anti malware has been turned off

Any help would be appreciated.

Cheers

Chris
PowershellSQL* job

Avatar of undefined
Last Comment
chrislindsay

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Jason Crawford

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
chrislindsay

ASKER
THe SQL job wasn't running as an executable admin so didnt work.  Once corrected it worked well.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes