Tämä näyttää erot valitun ja nykyisen version kesken tästä sivusta.
Both sides previous revision Edellinen revisio | |||
ohjeet:skriptit [2015/09/21 07:28] matronka [Luo package ja programsit Configuration Manageriin] |
ohjeet:skriptit [2015/09/21 08:46] (nykyinen) matronka [Luo package ja programsit Configuration Manageriin] |
||
---|---|---|---|
Rivi 313: | Rivi 313: | ||
If ($Args[1].RunAnotherProgram.Length -gt 0) {$CMProgram.DependentProgram = $Args[0].PackageId + ";;" +$Args[1].RunAnotherProgram;$CMProgram.Put();$CMProgram.ProgramFlags = $CMProgram.ProgramFlags -bxor ([math]::pow(2,7));$CMProgram.Put()} | If ($Args[1].RunAnotherProgram.Length -gt 0) {$CMProgram.DependentProgram = $Args[0].PackageId + ";;" +$Args[1].RunAnotherProgram;$CMProgram.Put();$CMProgram.ProgramFlags = $CMProgram.ProgramFlags -bxor ([math]::pow(2,7));$CMProgram.Put()} | ||
+ | |||
+ | #There is no argument for Comment in New-CMProgram so we have to add the Comment with Set-CMProgram. | ||
Set-CMProgram ` | Set-CMProgram ` |