From 93180b4d0318d53600148dae743460e36d7f7d83 Mon Sep 17 00:00:00 2001 From: Mathew Clark Date: Tue, 27 Feb 2018 21:12:10 +1030 Subject: [PATCH] adding Zaclaw example code for future ref adding Zaclaw example code for future ref --- examples.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 examples.md diff --git a/examples.md b/examples.md new file mode 100644 index 0000000..b71e5de --- /dev/null +++ b/examples.md @@ -0,0 +1,37 @@ +## Example for creating domain users +``` + dsc_xaduser {'username': + dsc_ensure => present, + dsc_domainname => 'domain.name', + dsc_username => 'username', + dsc_password => { + 'user' => 'username', + 'password' => Sensitive("$password") + }, + } +``` + +## Example for adding domain user to local admin group +``` + group {'Local Administrators': + name => 'Administrators', + ensure => present, + auth_membership => false, + members => 'DOMAIN\User', + } +``` + +## Example for scheduled tasks +``` + scheduled_task {'run script': + name => 'test task', + ensure => present, + enabled => true, + command => 'c:\\temp\\scheduled_task.ps1', + trigger => { + schedule => 'daily', + start_time => '15:30' + }, + } +``` +