• Welcome to Support Forum: Get Support for Patch My PC Products and Services.
 

Post Script - Copy Item Path

Started by IT-Wikinger, November 21, 2023, 03:36:45 AM

Previous topic - Next topic

IT-Wikinger

Hey Guys,
this should be an easy question for the most of you :D

I wanna copy a Language File to a Destination.

Put the file as an Additional File on the PatchMyPC Server.

Now I need the path in the Script where the File is.

Copy-Item -Path ???\German.Ingx -Destination C:\Program Files (x86)\KeePass2x\Languages


Hugo Marinho (Patch My PC)

Hey IT-Wikinger,

The German.lngx is in the same folder as the package itself client side when downloaded from wsus/sccm/intune, so in your script you can use the command below:

Copy-Item -Path ".\German.lngx" -Destination C:\Program Files (x86)\KeePass2x\Languages

Hope to have helped, have a rest of a great day!

IT-Wikinger

Hello,
can i found troubleshooting logs for this?
It doesn´t work :(

Hugo Marinho (Patch My PC)

HI there IT-Wikinger,

I'm sorry to hear that, you can click on the button "Collect logs" found on the bottom of the "General" tab, that will generate a .zip file with the relevant server side logs, you can then e-mail that over to us at [email protected] and we can have a look what can be happening there. Ideally you would also send us client side logs, if you have the option "Manage installation logging" enabled, their default location is either:

SCCM:
%WinDir%\CCM\Logs\AppDiscovery*.log
%WinDir%\CCM\Logs\AppEnforce*.log
%WinDir%\CCM\Logs\AppIntentEval*.log
%WinDir%\CCM\Logs\CAS*.log
%WinDir%\CCM\Logs\CIAgent.*log
%WinDir%\CCM\Logs\DataTransferService*.log
%WinDir%\CCM\Logs\PatchMyPC-ScriptRunner.log
This may be found in the %ProgramData%\PatchMyPC\ if the Install was initiated by the user from Software Center.
%WinDir%\CCM\Logs\PatchMyPC-SoftwareDetectionScript.log
This may be found in the %temp% of the user who clicked 'Install' in Software Center if it was an 'Available' deployment.
%WinDir%\CCM\Logs\StateMessage.log
%ProgramData%\PatchMyPC\PatchMyPC-UserNotification.log
%ProgramData%\PatchMyPC\UISettings\UINotificationSettings.xml


Intune:
%ProgramData%\PatchMyPCIntuneLogs\PatchMyPC-ScriptRunner.log
This may be found in the %ProgramData%\PatchMyPC\ if the Install was initiated by the user from Company Portal.
%ProgramData%\PatchMyPCIntuneLogs\PatchMyPC-SoftwareDetectionScript.log
%ProgramData%\PatchMyPCIntuneLogs\PatchMyPC-SoftwareUpdateDetectionScript.log
%ProgramData%\Microsoft\IntuneManagementExtension\Logs\AgentExecutor.log
%ProgramData%\Microsoft\IntuneManagementExtension\Logs\IntuneManagementExtension.log
%ProgramData%\PatchMyPC\PatchMyPC-UserNotification.log
%ProgramData%\PatchMyPC\UISettings\UINotificationSettings.xml
Note: Some Patch My PC log files listed above may be found in %WinDir%\CCM folder if that folder exists.