Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Update-Help error when console application is run in remote machine via PS remoting

$
0
0

Hello,

When I execute a particular console application in a remote machine via PS remoting, I get an error related to update-help. When I execute it directly on the remote machine, it works...

My code:

$credential = Get-Credential -Credential "DomainName\AccountName"
$session = New-PSSession -ComputerName "MachineName" -Authentication Credssp -Credential $credential;
Invoke-Command -session $session -ScriptBlock {
    try{
        cd <network share location>
        .\theConsoleApp.exe | Out-File C:\console-output.txt
        $error | Out-File C:\console-error-output.txt
        $exitCode
    } catch {
        throw $error
    }
} 


Error seen in the console:

NetNat, PcsvDevice, PSDesiredStateConfiguration, SoftwareInventoryLogging, StartScreen, TLS, WindowsSearch' with UI culture(s) {en-US} : Unable to retrieve the HelpInfo XML file for UI culture en-US. Make sure the HelpInfoUri property in the module manifest is valid or check your network connection and then try the command again.

$error variable from above:

Errored out (exit code 1603) with error message: ErrorId 10010: Xpatch threw an unexpected exception: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

I’ve tried

  1. two different user accounts
  2. multiple file share locations
  3. different OSs
  4. different target servers

but have not determined the cause of the error.

I would appreciate any help on this.

-Rohan.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>