Käyttäjän työkalut

Sivuston työkalut


ohjeet:skriptit

Erot

Tämä näyttää erot valitun ja nykyisen version kesken tästä sivusta.

Linkki vertailunäkymään

Both sides previous revision Edellinen revisio
Seuraava revisio
Edellinen revisio
ohjeet:skriptit [2015/09/18 13:51]
matronka [Luo package ja programsit Configuration Manageriin]
ohjeet:skriptit [2015/09/21 08:46] (nykyinen)
matronka [Luo package ja programsit Configuration Manageriin]
Rivi 299: Rivi 299:
  ​-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 `
Rivi 312: 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 `
Rivi 375: Rivi 378:
 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)"​
  
ohjeet/skriptit.1442584292.txt.gz · Viimeksi muutettu: 2015/09/18 13:51 / matronka