[wpkg-users] DISM and check rules...

Marco Gaiarin gaio at sv.lnf.it
Fri Apr 5 14:41:19 CEST 2019


Mandi! Ryan Granholm
  In chel di` si favelave...

> For RSAT Install on Windows 10 1809 I use this command
> <install cmd='powershell -Command "Get-WindowsCapability -Online | Where-Object {$_.Name -like 'RSAT*'} | ForEach-Object {Add-WindowsCapability -Online -Name $_.Name} | Out-File -FilePath '%LOG_INSTALL%'"' />

Good. You have choose to install capability with powershell insted of
DISM for the ability to use regexp/wildcard, right?

> With some checks like this
> <check type="logical" condition="and" >
> <check type="execute" condition="exitcodeequalto" path='%COMSPEC% /c dism.exe /Online /Get-packages | Find "Microsoft-Windows-ActiveDirectory-DS-LDS-Tools"' value="0" />

OK, so effectively seems there's no other way to check for capability
installation status apart using DISM and/or powershell, eventully piped
to 'find'.
Again here, you have done some test and found that dism/find is much
more 'light' than powershell?


Thanks.

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
      http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)


More information about the wpkg-users mailing list