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
- two different user accounts
- multiple file share locations
- different OSs
- different target servers
but have not determined the cause of the error.
I would appreciate any help on this.
-Rohan.