-
Notifications
You must be signed in to change notification settings - Fork 141
Expand file tree
/
Copy path1-ADOptionalFeature_EnableADRecycleBin_Config.ps1
More file actions
46 lines (41 loc) · 1.26 KB
/
1-ADOptionalFeature_EnableADRecycleBin_Config.ps1
File metadata and controls
46 lines (41 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<#PSScriptInfo
.VERSION 1.0.1
.GUID 63447da7-3fe9-4d03-b680-2129a2e0318f
.AUTHOR DSC Community
.COMPANYNAME DSC Community
.COPYRIGHT DSC Community contributors. All rights reserved.
.TAGS DSCConfiguration
.LICENSEURI https://github.com/dsccommunity/ActiveDirectoryDsc/blob/main/LICENSE
.PROJECTURI https://github.com/dsccommunity/ActiveDirectoryDsc
.ICONURI https://dsccommunity.org/images/DSC_Logo_300p.png
.RELEASENOTES
Updated author, copyright notice, and URLs.
#>
#Requires -Module ActiveDirectoryDsc
<#
.DESCRIPTION
This configuration will enable the Active Directory Recycle Bin for a
specified Domain
#>
Configuration ADOptionalFeature_EnableADRecycleBin_Config
{
param
(
[Parameter(Mandatory = $true)]
[System.String]
$ForestFQDN,
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
$EnterpriseAdministratorCredential
)
Import-DscResource -Module ActiveDirectoryDsc
Node localhost
{
ADOptionalFeature RecycleBin
{
FeatureName = "Recycle Bin Feature"
EnterpriseAdministratorCredential = $EnterpriseAdministratorCredential
ForestFQDN = $ForestFQDN
}
}
}