2016-06-29 7 views
0

powershell을 통해 SCCM 2012 응용 프로그램 배포 유형을 작성하기 위해 테스트 중이며 작동하는 명령이 아래에 나와 있습니다. 내가 매개 변수 아래 (-MaximumAllowedRunTimeMinutes 20 -EstimatedInstallationTimeMinutes 10 -LogonRequirementType WhetherOrNotUserLoggedOn)를 추가 할 때 코드Powershell이 ​​명령을 실행할 때 응답하지 않습니다.

Add-CMDeploymentType -ApplicationName "PowerTest" -InstallationFileLocation "\\sccmserver\folder$\Powershell_Test\Sources\googlechromestandaloneenterprise.msi" -MsiInstaller -AutoIdentifyFromInstallationFile -ForceForUnknownPublisher $true -InstallationBehaviorType InstallForSystem -Language "English" -DeploymentTypeName 'Setup' -InstallationProgram "'code1.wsf' /SMSLaunch /foldername:Chrome 2.0.4'" 

그러나 문제의 라인 아래 사용하여 배포 유형을 만들 임 성공적으로 할 수있다. 입력을 클릭하면 실행할 수없는 것 같습니다. 오류를 표시하지는 않지만 실행하지 않습니다. 나는 도움을 받는다. 그리고 아래의 매개 변수가 존재한다. 또는이 매개 변수는 실행할 수 있도록 먼저 지정해야하는 다른 매개 변수 세트에 따라 달라지기 때문입니까?

-MaximumAllowedRunTimeMinutes 20 -EstimatedInstallationTimeMinutes 10 -LogonRequirementType WhetherOrNotUserLoggedOn 
+1

흠, 어쩌면 힌트를 얻기 위해'-Verbose' 나'-Debug'를 추가하려고 할 수 있습니다. –

+0

다음은 -MaximumAllowedRunTimeMinutes 매개 변수를 추가 할 때받는 오류입니다. verbose를 입력해도 다음과 같은 오류가 표시됩니다. ** Add-CMDeploymentType : 지정된 명명 된 매개 변수를 사용하여 매개 변수 집합을 확인할 수 없습니다. 줄 번호 : 1 char : 1 ** – Johan

+0

문서를보고 사용하려는 매개 변수 집합을 확인해야합니다. –

답변

0

알 수 있습니다. 매개 변수 -MaximumAllowedRunTimeMinutes은 실제로 Set-CMDeploymentType cmdlet의 일부이며 이 아닌 Add-CMDeploymentType입니다.

관련 문제