Hey guys,
I've used xp_cmdpowershell from SQL Server 2008 R2 to execute a powershell scripts.
One of this scripts creates a internetexplorer.application object.
When I execute this script on powershell(version 2.0), it runs.
But when trie to execute for xp_cmdpowershell it fails.
error output:
Retrieving the COM class factory for component with CLSID {0002DF01-0000-0000-C000-000000000046} error: 80070005
script example:
$ie = New-object -com 'internetexplorer.application'
$ie.navigate("http://www.google.com")
$ie.visible = 1
sleep -s 10
$ie.quit()
xp_cmdpowershell example:
EXEC master..xp_cmdshell 'powershell C:\DataLocalTopRonda\scr.ps1';
Anyone have any ideas? Any help will be appreciated.