powershell - Invoke-Command create new object -


i've got problem create new object invoke-command:

$a = 'test' invoke-command -computername $computer -credential $cred -scriptblock {     param($a, $b, $c)     $o = new-object -comobject outlook.application     echo $a } -argumentlist ($a, $b, $c) 

i'm getting following error:

la récupération de la fabrique de classes com pour le composant avec le clsid {0006f03a-0000-0000-c000-000000000046} échoué en raison de l'erreur suivante : 80080005 Échec de l'exécution du serveur (exception de hresult : 0x80080005 (co_e_server_exec_failure)).     + categoryinfo          : resourceunavailable: (:) [new-object], comexception     + fullyqualifiederrorid : nocomclassidentified,microsoft.powershell.commands.newobjectcommand  test

where trailing "test" output of echo $a.

i can't create new object remotly. can me?


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -