简体   繁体   English

SCCM 2012使用PowerShell创建应用程序

[英]SCCM 2012 Create Application with PowerShell

Does anybody have an idea on how to accomplish this task? 有人对如何完成这项任务有想法吗? I need the following information inside the application Manufacturer: Application Name: Version: Installationmedia path: Install command: Uninstall commmand: 我在应用程序制造商内部需要以下信息:应用程序名称:版本:Installationmedia路径:安装命令:卸载命令:

I have found some examples: http://blog.lechar.nl/2012/04/03/creating-an-sccm-2012-application-with-powershell/ But I cannot get this working, does someone have a from scratch example on how to do this? 我找到了一些示例: http : //blog.lechar.nl/2012/04/03/creating-an-sccm-2012-application-with-powershell/但我无法正常工作,有人从头开始有示例吗?如何做到这一点? The example I found does not explain so much on how do i get the MSI file into the application, how do I get the AuthScopeID and so on? 我发现的示例在如何将MSI文件放入应用程序,如何获得AuthScopeID等方面并没有太多解释。 I would be very happy to see that someone with more knowledge in SCCM PowerShell than me maybe could rewrite this so it is ready to use but with my own parameters? 我很高兴看到对SCCM PowerShell知识比我更多的人可能会重写它,以便可以使用但需要我自己的参数?

Do you still need help with this? 您还需要帮助吗? Basic premise is: 基本前提是:

  1. Import the sccm powershell module (Import-Module "\\SERVERNAME\\SMS_SITE\\AdminConsole\\bin\\ConfigurationManager.psd1") 导入sccm powershell模块(导入模块“ \\ SERVERNAME \\ SMS_SITE \\ AdminConsole \\ bin \\ ConfigurationManager.psd1”)
  2. Then use New-CMApplication cmdlet 然后使用New-CMApplication cmdlet
  3. After that you use Add-CMDeploymentType to create the deployment type 之后,使用Add-CMDeploymentType创建部署类型
  4. Then create the deployment to a collection 然后将部署创建到集合
  5. Distribute content to the distribution points 将内容分发到分发点

That should give you a basic application, if you need anything more detailed let us know and we can work something out for you. 那应该给您一个基本的应用程序,如果您需要更详细的信息,请告诉我们,我们可以为您解决一些问题。

I tried to link you to each of the cmdlets but I dont have a high enough reputation yet so this is the main link http://technet.microsoft.com/en-us/library/jj821831(v=sc.20).aspx 我尝试将您链接到每个cmdlet,但是我的信誉还不够高,所以这是主要链接http://technet.microsoft.com/zh-cn/library/jj821831(v=sc.20)。 ASPX

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM