I had the same error trying to run DISM module on a Win2008 box, then I realized win2008 doesnt have dism, only 2008 R2.
module is not compatible with target OS On Wednesday, March 6, 2013 at 8:42:10 AM UTC-5, jim wrote: > > Hello all > > Was wondering if someone could help or advise where i'm going wrong > > i'm trying to install Windows 2008 R2 Remote Desktop Services via Puppet > using either DISM or Powershell modules from the forge and getting the same > error > > When using DISM > > > class roles::trm::remote_desktop_services { > dism { 'AppServer': > ensure => present, > } > dism { 'AppServer-UI': > ensure => present, > } > dism { 'Printing-XPSServices-Features': > ensure => present, > } > } > > when this initially runs, I get pink error messages which I assume its > because it requires a reboot to complete the install of this service. > > Question: Best approach for rebooting host, when installing features ? > > Once i've rebooted the host, and rerun the puppet agent I get the > following error: > > *err: Could not find a suitable provider for dism* > > So I thought it could be the dism module doesn't support Remote Desktop > Services. > > then tried the Powershell Module > > #exec { 'install_remote_desktop_services': > #command => 'Import-Module ServerManager > # Add-WindowsFeature -Name RDS-RD-Server -Restart | > Out-File > c:\Installs\Puppet_Confirmation\install_remote_desktop_services.txt', > #provider => powershell, > #creates => > 'C:/Installs/Puppet_Confirmation/install_remote_desktop_services.txt', > #} > > > which installs fine and reboots the host etc, but upon running the agent > again, I get the same error as above: > > *err: Could not find a suitable provider for dism* > > If anyone could help, it would be much appreciated > > regards > > Jim > > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/8213641a-6d82-4b9a-ab6b-6ff843ab07e4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.