[wpkg-users] wpkg-users Digest, Vol 132, Issue 1

Ryan Granholm rga6 at sfu.ca
Thu Apr 4 22:34:53 CEST 2019


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%'"' />


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" />
<check type="execute" condition="exitcodeequalto" path='%COMSPEC% /c dism.exe /Online /Get-packages | Find "Microsoft-Windows-BitLocker-Recovery-Tools"' value="0" />
<check type="execute" condition="exitcodeequalto" path='%COMSPEC% /c dism.exe /Online /Get-packages | Find "Microsoft-Windows-GroupPolicy-Management-Tools"' value="0" />
<check type="execute" condition="exitcodeequalto" path='%COMSPEC% /c dism.exe /Online /Get-packages | Find "Microsoft-Windows-RemoteAccess-Management-Tools"' value="0" />
<check type="execute" condition="exitcodeequalto" path='%COMSPEC% /c dism.exe /Online /Get-packages | Find "Microsoft-Windows-ServerManager-Tools"' value="0" />
<check type="execute" condition="exitcodeequalto" path='%COMSPEC% /c dism.exe /Online /Get-packages | Find "Microsoft-Windows-WSUS-Tools"' value="0" />
</check>



Ryan Granholm
Systems Administrator | IT Services
Simon Fraser University | Harbour Centre 1322
515 West Hastings Street, Vancouver, B.C. V6B 5K3
T: 778.782.5030 | sfu.ca/itservices
Twitter: @sfu_it



-----Original Message-----
From: wpkg-users <wpkg-users-bounces at lists.wpkg.org> On Behalf Of wpkg-users-request at lists.wpkg.org
Sent: Thursday, April 04, 2019 3:00 AM
To: wpkg-users at lists.wpkg.org
Subject: wpkg-users Digest, Vol 132, Issue 1

Send wpkg-users mailing list submissions to
	wpkg-users at lists.wpkg.org

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.wpkg.org/mailman/listinfo/wpkg-users
or, via email, send a message with subject or body 'help' to
	wpkg-users-request at lists.wpkg.org

You can reach the person managing the list at
	wpkg-users-owner at lists.wpkg.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of wpkg-users digest..."


Today's Topics:

   1. DISM and check rules... (Marco Gaiarin)


----------------------------------------------------------------------

Message: 1
Date: Wed, 3 Apr 2019 14:11:37 +0200
From: Marco Gaiarin <gaio at sv.lnf.it>
To: wpkg-users at lists.wpkg.org
Subject: [wpkg-users] DISM and check rules...
Message-ID: <20190403121137.GD3352 at lilliput.linux.it>
Content-Type: text/plain; charset=iso-8859-1


I need to setup a recipe to enable some Windows10 feature, take as an example OpenSSH.

I've found something like:

	<install cmd='dism /Online /Add-Capability /CapabilityName:OpenSSH.Server~~~~0.0.1.0 /Quiet /NoRestart >nul' >
		<exit code='3010' reboot='postponed' />
	</install>

and works as expected, but i was not able to setup a 'check' recipe, or,  better, i can run dism and find, but is a very expensive check condition.

Someone have some info about that? 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)



------------------------------

Subject: Digest Footer

_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
https://lists.wpkg.org/mailman/listinfo/wpkg-users


------------------------------

End of wpkg-users Digest, Vol 132, Issue 1
******************************************


More information about the wpkg-users mailing list