I am trying to remotely collect client logs to investigate some current issues, but am unable to get the clients to send the logs.
Testing on a working client, I can see the log request arrive and the diagnostic.log but collection fails on the client updates as follows:
Collecting log files ...
PowerShell path: C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe
GetAllCcmLogs: Non-zero exit code. 1.
GetAllCcmLogs: Failed. 0x80004005.
Checking the powershell log in the eventviewer shows the following for the powershell activity:
Error Message = Unexpected error occured while collecting diagnostic information.
Fully Qualified Error ID = Unexpected error occured while collecting diagnostic information.
Severity = Warning
Host Name = ConsoleHost
Host Version = 5.1.18362.1171
Host ID = f144278e-985e-401f-bfde-e8dede0cae7b
Host Application = C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -File C:\WINDOWS\CCM\datacollector.ps1
Engine Version = 5.1.18362.1171
Runspace ID = 4c7fdb73-4e9c-4d16-a21a-4c00409abbbd
Pipeline ID = 1
Command Name =
Command Type =
Script Name = C:\WINDOWS\CCM\datacollector.ps1
Command Path =
Sequence Number = 15
User = Domain\SYSTEM
Connected User =
Shell ID = Microsoft.PowerShell
Any help or assistance appreciated.