Deploy an application

Glenn Maxwell 10,046 Reputation points
2024-03-27T23:25:21.2833333+00:00

Hi All

i am new to sccm, i want to push policies using SCCM on a collection. i want to create an application and deploy on this collection. experts guide me how to create the package. I have the polices in a folder and i want to copy this folder on all the servers in C:\Windows\Temp and execute the below syntax. The folder contains subfolder and files as in the screenshot.

cd c:\Windows\Temp\Server2016
lgpo.exe /g c:\Windows\Temp\Server2016\Windows2016\gpo (execute this from command prompt)

when i execute the above syntax(lgpo.exe) it will give an output and i want to export this output to a text file. experts guide me.

pol

Microsoft Configuration Manager Updates
Microsoft Configuration Manager Updates
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Updates: Broadly released fixes addressing specific issue(s) or related bug(s). Updates may also include new or modified features (i.e. changing default behavior).
958 questions
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
896 questions
Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
454 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. AllenLiu-MSFT 39,916 Reputation points Microsoft Vendor
    2024-03-28T06:43:34.94+00:00

    Hi, @Glenn Maxwell

    Thank you for posting in Microsoft Q&A forum.

    I think we have two steps, first we need to copy the folder 'Server2016' to all the clients in the collection, you may follow this article:

    https://www.anoopcnair.com/copy-files-to-client-machines-using-sccm-memcm/

    Then we create another package to execute the command line and export this output to a text file:

    cmd /c "lgpo.exe /g c:\Windows\Temp\Server2016\Windows2016\gpo > C:\Windows\Temp\output.txt"

    Set the Startup folder to " C:\Windows\Temp\Server2016"

    User's image


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Gary Blok 1,736 Reputation points
    2024-03-28T03:35:55.73+00:00

    If you're needing to run a command one a computer, you'd want to create a package (with your file contents) that has an associated program (your command line)

    https://learn.microsoft.com/en-us/mem/configmgr/apps/deploy-use/packages-and-programs

    0 comments No comments