The first set of commands run and my pb is when i tried to run the below
commands as a .rb file using
https://downloads.puppetlabs.com/windows/puppet-3.0.2.msi<https://www.google.com/url?q=https%3A%2F%2Fdownloads.puppetlabs.com%2Fwindows%2Fpuppet-3.0.2.msi&sa=D&sntz=1&usg=AFQjCNFZgru125t_Goz9Giu3GnDzlX6kgg>
a = %x[ powershell -command " & {($Updates = (New-Object -ComObject
"Microsoft.Update.AutoUpdate").Settings.NotificationLevel)}" ]
b = %x[ powershell -command " & {($Updates = (New-Object -ComObject
"Microsoft.Update.AutoUpdate").Settings.ReadOnly)}" ]
if b.delete("\n") != "False"
%x[ powershell -command " & {($Updates = (New-Object -ComObject
"Microsoft.Update.AutoUpdate").Settings; $Updates.ReadOnly = False)}"]
end
if a.delete("\n").to_i != 1
%x[ powershell -command " - < {($Updates = (New-Object -ComObject
"Microsoft.Update.AutoUpdate").Settings ; "$Updates.NotificationLevel =
'$1'" -Force ; $Updates.save()}" ]
end
Any help is appreciated with the above or any other alternative to chnage
the above to puppets types and providers
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/6b818970-07ea-47d6-83bd-606e4cfff1a2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.