SCCM - PowerShell - Create Application - Deployment Type

Sokoban 1,036 Reputation points
2024-09-15T09:21:10.9066667+00:00

Hi

The first step is done :

New-CMApplication ` 
	-Name "Adobe Acobat Reader" ` 	
	-Description "Adode Acrobe Reader 64 bits" ` 	
	-Publisher Adobe -SoftwareVersion 24.003.20112 ` 
	-IconLocationFile  "\\SSCMServer\Apps\AdobeReader\icon.jpg"

That working (so far so good)

I don't understand what PowerShell want here ..When i Trying to create Deployment Type, What I will typing in ScriptLanguage ??

$contentpath = "\\SCCMServer\Apps\AdobeReader" 
$clause = New-CMDetectionClauseWindowsInstaller -Existence -ProductCode AC76BA86-1033-FF00-7760-BC15014EA700

Add-CMScriptDeploymentType `
	-DeploymentTypeName "msi" `
	-InstallCommand msiexec /i "AcroPro.msi"
	-ApplicationName Adobe Acobat Reader `
	-ScriptLanguage: ??
	-InstallCommand msiexec /i "AcroPro.msi"
	-UninstallCommand 'msiexec /x {AC76BA86-1033-FF00-7760-BC15014EA700} /q' `
	-AddDetectionClause $clause `
	-ContentLocation $ContentPath `
	-InstallationBehaviorType InstallForSystem `
	-EstimatedRuntimeMins 10 `
	-LogonRequirementType WhetherOrNotUserLoggedOn


// Sokoban

Microsoft Configuration Manager
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
0 comments No comments
{count} votes

Accepted answer
  1. AllenLiu-MSFT 44,346 Reputation points Microsoft Vendor
    2024-09-16T01:32:46.94+00:00

    Hi, @Sokoban

    Thank you for posting in Microsoft Q&A forum.

    Thank you very much for the update and we're glad the problem is solved now.

    I'd appreciated if you can share your solution here. We believe this will be very beneficial for other community members who have similar questions.


    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

2 additional answers

Sort by: Most helpful
  1. Sokoban 1,036 Reputation points
    2024-09-15T10:16:52.5933333+00:00

    I have solved that problem :-)


  2. Sokoban 1,036 Reputation points
    2024-09-27T06:26:31.88+00:00

    @Mohamed Lafalla

    Try that :-)

    Add-CMScriptDeploymentType `
    	-ApplicationName "Adobe Acobat Reader" `
    	-DeploymentTypeName "InstallWithMSI" `
    	-InstallCommand 'msiexec /i AcroPro.msi' `
    	-UninstallCommand 'msiexec /x {AC76BA86-1033-FF00-7760-BC15014EA700} /q' `
    	-AddDetectionClause $clause `
    	-ContentLocation $ContentPath `
    	-InstallationBehaviorType InstallForSystem `
    	-EstimatedRuntimeMins 10 `
    -LogonRequirementType WhetherOrNotUserLoggedOn
    
    
    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.