how to push ps1using sccm

Glenn Maxwell 10,146 Reputation points
2023-03-01T21:50:35.47+00:00

Hi All

i have the below PowerShell script and i want deploy using sccm on a collection how do i deploy as i dont have much knowledge on sccm

$registryPath = "HKLM:\Software\Microsoft\Cryptography\Wintrust\Config"
$Name = "EnableCertPaddingCheck"
$value = "1"
IF(!(Test-Path $registryPath))
    {
    New-Item -Path $registryPath -Force | Out-Null
    New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType String -Force | Out-Null
    }
 ELSE 
    {
    New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType String -Force | Out-Null
    }

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.
906 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.
459 questions
0 comments No comments
{count} votes

Accepted answer
  1. AllenLiu-MSFT 40,551 Reputation points Microsoft Vendor
    2023-03-02T02:09:12.5933333+00:00

    Hi, @Glenn Maxwell

    Thank you for posting in Microsoft Q&A forum.

    We can use the scripts function directly to create a PowerShell script, then approve it, then choose the device collection and right click it, click "Run Script".

    1

    Here is the detail:

    https://learn.microsoft.com/en-us/mem/configmgr/apps/deploy-use/create-deploy-scripts


    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".

    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 additional answers

Sort by: Most helpful