1
0

added windows users

This commit is contained in:
Rajesh Radhakrishnan 2018-11-07 09:43:24 -08:00
parent f69ffd8ce1
commit a72905494f
2 changed files with 33 additions and 0 deletions
site/windows/manifests

View File

@ -0,0 +1 @@
class windows {}

View File

@ -0,0 +1,32 @@
# Create a local user
# Create a local group
# Add the user to the group
# Grant your user the "Log on as a Service" right
# Explain what the "Log on as a Service" right does :
# This policy setting determines which service accounts can register a process as a service.
# Running a process under a service account circumvents the need for human intervention.
class windows::users {
$users = ['service-01']
$group = 'service-account'
user { $users:
ensure => present,
}
group { $group:
ensure => present,
members => $users,
}
# local_security_policy { 'Log on as a service':
# ensure => present,
# policy_value => '90',
# }
}