| Both sides previous revisionEdellinen revisioSeuraava revisio | Edellinen revisio |
| ohjeet:skriptit [2015/09/18 13:51] – [Luo package ja programsit Configuration Manageriin] matronka | ohjeet:skriptit [2015/09/21 08:46] (nykyinen) – [Luo package ja programsit Configuration Manageriin] matronka |
|---|
| -DiskSpaceRequirement $Args[1].DiskSpace ` | -DiskSpaceRequirement $Args[1].DiskSpace ` |
| -DiskSpaceUnit $Args[1].DiskSpaceUnit ` | -DiskSpaceUnit $Args[1].DiskSpaceUnit ` |
| | -ProgramRunType $Args[1].RunType ` |
| -Duration $Args[1].RunTime ` | -Duration $Args[1].RunTime ` |
| -RunMode $Args[1].RunMode ` | -RunMode $Args[1].RunMode ` |
| |
| 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 ` |
| FirefoxPackageDetails.csv: | FirefoxPackageDetails.csv: |
| |
| Name,Language,Manufacturer,Path,Version,DistributeContent | Name,Language,Manufacturer,Path,Version,DistributeContent\\ |
| "Firefox","EN","Mozilla","\\utu.fi\verkkolevyt\Managed Applications\Mozilla Firefox\Mozilla Firefox 38.2.1 esr","38.2.2 ESR","True" | "Firefox","EN","Mozilla","\\utu.fi\verkkolevyt\Managed Applications\Mozilla Firefox\Mozilla Firefox 38.2.1 esr","38.2.2 ESR","True" |
| |
| FirefoxPrograms.csv: | FirefoxPrograms.csv: |
| |
| Name,CommandLine,Comment,DiskSpace,DiskSpaceUnit,RunType,Runtime,UserInteraction,RunMode,Bitness,RunAnotherProgram | Name,CommandLine,Comment,DiskSpace,DiskSpaceUnit,RunType,Runtime,UserInteraction,RunMode,Bitness,RunAnotherProgram\\ |
| "Install, Uninstall (Machine)","wscript.exe runsoftware.vbs","Use this program to Install or Uninstall the machine part of the application.","80","1","0","30","True","1","x86","" | "Install, Uninstall (Machine)","wscript.exe runsoftware.vbs","Use this program to Install or Uninstall the machine part of the application.","80","1","0","30","True","1","x86",""\\ |
| "Install, Uninstall","wscript.exe profile.vbs","Use this program to Install or Uninstall the application.","80","1","0","30","True","0","x86","Install, Uninstall (Machine)" | "Install, Uninstall","wscript.exe profile.vbs","Use this program to Install or Uninstall the application.","80","1","0","30","True","0","x86","Install, Uninstall (Machine)" |
| |