Hi,
i have Puppet v3.7.2 and same agent on Windows Server 2012 R2.
Now i'm training to maintain Windows Services. For that i created new 
manifest:

# cat /etc/puppet/modules/disablesmb/manifests/init.pp
class disablesmb {

service { 'Audiosrv':
                ensure => running,
                enable => true,
        }

but when i run agent on Windows i get an error:

C:\>puppet agent --test
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for test1.domain.company.com
Info: Applying configuration version '1453991644'
Error: Cannot start Audiosrv, error was: Execution of 
'C:/Windows/system32/net.exe start Audiosrv' returned 2: System error 5 has 
occurred.

Access is denied.
Wrapped exception:
Execution of 'C:/Windows/system32/net.exe start Audiosrv' returned 2: 
System error 5 has occurred.

Access is denied.
Error: /Stage[main]/Disablesmb/Service[Audiosrv]/ensure: change from 
stopped to running failed: Cannot start Audiosrv, error was: Execution of 
'C:/Win
dows/system32/net.exe start Audiosrv' returned 2: System error 5 has 
occurred.

Access is denied.
Notice: Finished catalog run in 0.14 seconds

if i run it manually a get same error:

C:\>net.exe start Audiosrv
System error 5 has occurred.

Access is denied.

what is wrong?

-- 
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/855b3a53-1dd0-4f80-b456-a96299f67c05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to