Unable to run the batch file via sccm to copy the folders for outlook signature

Vaibhav Thakur 1 Reputation point
2020-12-27T17:52:37.65+00:00

Hi All,
I have created batch file to copy signature folder for outlook. Manage to run the batch file, works fine. When I push the file via SCCM using .exe it is getting downloaded under ccm cache but can not execute. Under software centre shows only "installing.

Batch file : Xcopy /s /Y "folder name" "destination folder path"

I want to copy outlook signature folder to all end users for common signature templates

Microsoft Security | Intune | Configuration Manager | Other
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Garth Jones 2,076 Reputation points
    2020-12-27T19:15:24.267+00:00

    What exactly does the log say is happening?
    Where exactly are you coping the files from?


  2. SunnyNiu-MSFT 1,706 Reputation points
    2020-12-28T09:29:15.86+00:00

    @Vaibhav Thakur
    As Garth Jones said, more information about this issue is needed
    It can be seen from the description that the issue occurs during the installation process. Are you using application or package to deploy the batch file by SCCM? You need to check different logs if you use different deployment methods. If you use the application deployment method, you may check AppEnforce.log; If you use the package deployment method, you may check execmgr.log.


    If the response is helpful, please click "Accept Answer"and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Vaibhav Thakur 1 Reputation point
    2020-12-28T17:06:02.523+00:00

    Hi Garth and Sunny,

    Thanks for acknowledgement on mu query.

    I am using Application method. I have converted batch file to exe under SCCM.
    The batch file i have created locally works fine, but when i create the package and push via sccm not successful.

    I have created few signatures under Outlook, and copied separately under one folder

    I want to copy Signatures folder under users profile: %AppData%\Roaming\Microsoft\Signatures

    Log details:<![LOG[Event maps to notification type = Application Available (Microsoft.SoftwareCenter.Client.Data.WmiConnectionManager at EventWatcher_EventArrived)]LOG]!><time="19:19:46.1205613" date="12-24-2020" component="SCClient" context="" type="1" thread="9" file="">
    <![LOG[The target instance path for this notification is CCM_Application.Id="ScopeId_77DBE0A8-0E84-42BF-A3B3-0B6B106226A4/Application_e1254899-5edc-4a98-9042-e3cf7f7b0f66",Revision="1",IsMachineTarget=1 (Microsoft.SoftwareCenter.Client.Data.WmiConnectionManager at HandleInstanceEvent)]LOG]!><time="19:19:46.1205613" date="12-24-2020" component="SCClient" context="" type="1" thread="9" file="">
    <![LOG[Getting a WMI instance for CCM_Application.Id="ScopeId_77DBE0A8-0E84-42BF-A3B3-0B6B106226A4/Application_e1254899-5edc-4a98-9042-e3cf7f7b0f66",Revision="1",IsMachineTarget=1 (Microsoft.SoftwareCenter.Client.Data.WmiConnectionManager at GetInstance)]LOG]!><time="19:19:46.1215580" date="12-24-2020" component="SCClient" context="" type="1" thread="9" file="">
    <![LOG[Got instance from WMI for \LAPDEMO5\root\ccm\ClientSDK:CCM_Application.Id="ScopeId_77DBE0A8-0E84-42BF-A3B3-0B6B106226A4/Application_e1254899-5edc-4a98-9042-e3cf7f7b0f66",Revision="1",IsMachineTarget=1 (Microsoft.SoftwareCenter.Client.Data.WmiConnectionManager at GetInstance)]LOG]!><time="19:19:46.2502130" date="12-24-2020" component="SCClient" context="" type="1" thread="9" file="">
    <![LOG[
    instance of CCM_Application
    {
    AllowedActions = {"Install"};
    AppDTs = {
    instance of CCM_AppDeploymentType
    {
    AllowedActions = {"Install"};
    ApplicabilityState = "Applicable";
    ConfigureState = "NotNeeded";
    ContentSize = 631;
    DeploymentReport = "<ConfigurationItemReport AuthoringScope=\"ScopeId_77DBE0A8-0E84-42BF-A3B3-0B6B106226A4\" LogicalName=\"DeploymentType_8efbe489-2832-4b1a-8989-f7fcbb97d0fe\" Version=\"1\" Type=\"Deployment Type\" ComputerName=\"LAPDEMO5\" CIComplianceState=\"NotInstalled\" CIDesiredState=\"Installed\" CIApplicablityState=\"Applicable\" CISeverity=\"None\" CIConfigureState=\"NotNeeded\" TotalConstraintViolations=\"0\" TotalModelViolations=\"0\" TotalSuppressionCount=\"0\" TotalEnforcements=\"0\" MaxOverallSeverity=\"None\" TotalConflicts=\"0\" TotalDependancyViolations=\"0\" TotalSupersedesViolations=\"0\" TotalNonSupersedenceViolations=\"0\" TotalCompliantCount=\"1\" SupersessionState=\"None\" TotalRequirementsCount=\"0\" TotalDiscoveryViolations=\"0\"><CIProperties><Name>SGXemailsignature2020</Name><Description/></CIProperties><NonSupersedenceViolations Count=\"0\"/><SupersedesViolations Count=\"0\"/><DependancyViolations Count=\"0\"/><RequirementViolations Count=\"0\"/><ConflictViolations Count=\"0\"/><CompliantRules Count=\"1\"><CompliantRule><RuleLogicalName>NonSupersedence</RuleLogicalName><RuleName>NonSupersedence</RuleName><RuleDescription/></CompliantRule></CompliantRules><ModelViolations Count=\"0\" SuppressedCount=\"0\" MaxSeverity=\"None\"/><DiscoveryViolations SuppressedCount=\"0\" MaxSeverity=\"None\" Count=\"0\"/><ReferencedConfigurationItems MaxOverallSeverity=\"None\" TotalConflicts=\"0\" TotalConstraintViolations=\"0\" TotalDiscoveryViolations=\"0\" TotalModelViolations=\"0\" TotalEnforcements=\"0\" TotalSuppressionCount=\"0\"/><BaseConfigurationItems/></ConfigurationItemReport>";
    ErrorCode = 0;
    EstimatedInstallTime = 0;
    EvaluationState = 3;
    FullName = "SGXemailsignature2020";
    Id = "ScopeId_77DBE0A8-0E84-42BF-A3B3-0B6B106226A4/DeploymentType_8efbe489-2832-4b1a-8989-f7fcbb97d0fe";
    InstallState = "NotInstalled";
    LastEvalTime = "20201224191946.000000+000";
    MaxExecuteTime = 120;
    Name = "SGXemailsignature2020";
    PercentComplete = 0;
    PostInstallAction = "BasedOnExitCode";
    RequiresUserInteraction = FALSE;
    ResolvedState = "Installed";
    RetriesRemaining = 10;
    Revision = "1";
    SupersessionState = "None";
    Type = 1;
    }};
    ApplicabilityState = "Applicable";
    Categories = {};
    ConfigureState = "NotNeeded";
    Deadline = "20201224191600.000000+000";
    DeploymentReport = "<ConfigurationItemReport AuthoringScope=\"ScopeId_77DBE0A8-0E84-42BF-A3B3-0B6B106226A4\" LogicalName=\"Application_e1254899-5edc-4a98-9042-e3cf7f7b0f66\" Version=\"1\" Type=\"AppModel\" ComputerName=\"LAPDEMO5\" CIComplianceState=\"NotInstalled\" CIDesiredState=\"Installed\" CIApplicablityState=\"Applicable\" CISeverity=\"None\" CIConfigureState=\"NotNeeded\" TotalConstraintViolations=\"0\" TotalDiscoveryViolations=\"0\" TotalModelViolations=\"0\" TotalSuppressionCount=\"0\" TotalEnforcements=\"0\" TotalConflicts=\"0\" MaxOverallSeverity=\"None\" SupersessionState=\"None\"><CIProperties><Name>SGX signature</Name><Description/></CIProperties><RequirementViolations Count=\"0\"/><ConflictViolations Count=\"0\"/><CompliantRules Count=\"0\"/><ModelViolations Count=\"0\" SuppressedCount=\"0\" MaxSeverity=\"None\"/><DiscoveryViolations Count=\"0\" SuppressedCount=\"0\" MaxSeverity=\"None\"/><ReferencedConfigurationItems MaxOverallSeverity=\"None\" TotalConflicts=\"0\" TotalConstraintViolations=\"0\" TotalDiscoveryViolations=\"0\" TotalModelViolations=\"0\" TotalEnforcements=\"0\" TotalSuppressionCount=\"0\"><ConfigurationItemReport AuthoringScope=\"ScopeId_77DBE0A8-0E84-42BF-A3B3-0B6B106226A4\" LogicalName=\"DeploymentType_8efbe489-2832-4b1a-8989-f7fcbb97d0fe\" Version=\"1\" Type=\"Deployment Type\" ComputerName=\"LAPDEMO5\" CIComplianceState=\"NotInstalled\" CIDesiredState=\"Installed\" CIApplicablityState=\"Applicable\" CISeverity=\"None\" CIConfigureState=\"NotNeeded\" TotalConstraintViolations=\"0\" TotalModelViolations=\"0\" TotalSuppressionCount=\"0\" TotalEnforcements=\"0\" MaxOverallSeverity=\"None\" TotalConflicts=\"0\" TotalDependancyViolations=\"0\" TotalSupersedesViolations=\"0\" TotalNonSupersedenceViolations=\"0\" TotalCompliantCount=\"1\" SupersessionState=\"None\" TotalRequirementsCount=\"0\" TotalDiscoveryViolations=\"0\" Policy=\"Required\"><CIProperties><Name>SGXemailsignature2020</Name><Description/></CIProperties><NonSupersedenceViolations Count=\"0\"/><SupersedesViolations Count=\"0\"/><DependancyViolations Count=\"0\"/><RequirementViolations Count=\"0\"/><ConflictViolations Count=\"0\"/><CompliantRules Count=\"1\"><CompliantRule><RuleLogicalName>NonSupersedence</RuleLogicalName><RuleName>NonSupersedence</RuleName><RuleDescription/></CompliantRule></CompliantRules><ModelViolations Count=\"0\" SuppressedCount=\"0\" MaxSeverity=\"None\"/><DiscoveryViolations SuppressedCount=\"0\" MaxSeverity=\"None\" Count=\"0\"/><ReferencedConfigurationItems MaxOverallSeverity=\"None\" TotalConflicts=\"0\" TotalConstraintViolations=\"0\" TotalDiscoveryViolations=\"0\" TotalModelViolations=\"0\" TotalEnforcements=\"0\" TotalSuppressionCount=\"0\"/><BaseConfigurationItems/></ConfigurationItemReport></ReferencedConfigurationItems><BaseConfigurationItems/><ReferencingConfigurationItems><ReferencingConfigurationItem AuthoringScope=\"ScopeId_77DBE0A8-0E84-42BF-A3B3-0B6B106226A4\" LogicalName=\"RequiredApplication_e1254899-5edc-4a98-9042-e3cf7f7b0f66\" Version=\"1\"/></ReferencingConfigurationItems></ConfigurationItemReport>";
    EnforcePreference = 2;
    ErrorCode = 0;
    EvaluationState = 3;
    FileTypes = "";
    FullName = "SGX signature";
    Icon = "";
    Id = "ScopeId_77DBE0A8-0E84-42BF-A3B3-0B6B106226A4/Application_e1254899-5edc-4a98-9042-e3cf7f7b0f66";
    InformativeUrl = "";
    InfoUrlText = "";
    InProgressActions = {"Install", "Update", "Uninstall"};
    InstallState = "NotInstalled";
    IsMachineTarget = TRUE;
    IsPreflightOnly = FALSE;
    LastEvalTime = "20201224191945.000000+000";
    Name = "SGX signature";
    NotifyUser = FALSE;
    OverrideServiceWindow = TRUE;
    PercentComplete = 0;
    PrivacyUri = "";
    RebootOutsideServiceWindow = FALSE;
    ReleaseDate = "00000000000000.000000+000";
    ResolvedState = "Installed";
    Revision = "1";
    StartTime = "20201224191600.000000+000";
    SupersessionState = "None";
    Type = 1;
    UserUIExperience = TRUE;
    };

    0 comments No comments

  4. SunnyNiu-MSFT 1,706 Reputation points
    2021-01-05T02:36:54.63+00:00

    @Vaibhav Thakur
    Hi,
    It seems there is no update for a couple of days. May we know that your question has been solved according to the method provided by Garth Jones? Is there any other assistance we can provide?


    If the response is helpful, please click "Accept Answer"and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  5. Adam (CodeTwo) 246 Reputation points
    2021-03-15T14:46:57.37+00:00

    Instead of copying and trying to push the signature to all users, you could use the HTML code and the method mentioned in this article: VBScript: create an HTML Outlook email signature for the whole company
    This way, all signatures will be personalized with individual users' AD properties.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.