Skip to content

Commit a3a157e

Browse files
author
modzilla99
committed
Updated for Srvr2016
Credits sredlin
1 parent cd7648c commit a3a157e

File tree

608 files changed

+102483
-48032
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

608 files changed

+102483
-48032
lines changed

ExchangeWorkload.ps1

Lines changed: 475 additions & 191 deletions
Large diffs are not rendered by default.

xActiveDirectory/3.0.0.0/CHANGELOG.md

Lines changed: 370 additions & 0 deletions
Large diffs are not rendered by default.

xActiveDirectory/3.0.0.0/DSCResources/MSFT_xADComputer/MSFT_xADComputer.psm1

Lines changed: 1015 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[ClassVersion("1.0.0.0"), FriendlyName("xADComputer")]
2+
class MSFT_xADComputer : OMI_BaseResource
3+
{
4+
[Key, Description("Specifies the name of the Active Directory computer account to manage. You can identify a computer by its distinguished name, GUID, security identifier (SID) or Security Accounts Manager (SAM) account name.")] String ComputerName;
5+
[Write, Description("Specifies the location of the computer, such as an office number.")] String Location;
6+
[Write, Description("Specifies the fully qualified domain name (FQDN) of the computer account.")] String DnsHostName;
7+
[Write, Description("Specifies the service principal names for the computer account.")] String ServicePrincipalNames[];
8+
[Write, Description("Specifies the UPN assigned to the computer account.")] String UserPrincipalName;
9+
[Write, Description("Specifies the display name of the computer account.")] String DisplayName;
10+
[Write, Description("Specifies the X.500 path of the Organizational Unit (OU) or container where the computer is located.")] String Path;
11+
[Write, Description("Specifies a description of the computer account.")] String Description;
12+
[Write, Description("DEPRECATED - DO NOT USE. Please see the parameter EnabledOnCreation in this resource, and the resource xADObjectEnabledState on how to enforce the Enabled property. This parameter no longer sets or enforces the Enabled property. If this parameter is used then a warning message will be outputted saying that the Enabled parameter has been deprecated.")] Boolean Enabled;
13+
[Write, Description("Specifies the user or group Distinguished Name that manages the computer account. Valid values are the user's or group's DistinguishedName, ObjectGUID, SID or SamAccountName.")] String Manager;
14+
[Write, Description("Specifies the Active Directory Domain Services instance to connect to perform the task.")] String DomainController;
15+
[Write, Description("Specifies the user account credentials to use to perform the task."), EmbeddedInstance("MSFT_Credential")] String DomainAdministratorCredential;
16+
[Write, Description("Specifies the full path to the Offline Domain Join Request file to create.")] String RequestFile;
17+
[Write, Description("Specifies whether the computer account is present or absent. Valid values are 'Present' and 'Absent'. The default is 'Present'."), ValueMap{"Present", "Absent"},Values{"Present", "Absent"}] String Ensure;
18+
[Write, Description("Try to restore the computer account from the recycle bin before creating a new one.")] Boolean RestoreFromRecycleBin;
19+
[Write, Description("Specifies if the computer account is created enabled or disabled. By default the Enabled property of the computer account will be set to the default value of the cmdlet New-ADComputer. This property is ignored if the parameter RequestFile is specified in the same configuration. This parameter does not enforce the property Enabled. To enforce the property Enabled see the resource xADObjectEnabledState.")] Boolean EnabledOnCreation;
20+
[Read, Description("Returns the X.500 path of the computer object")] String DistinguishedName;
21+
[Read, Description("Returns the security identifier of the computer object")] String SID;
22+
[Read, Description("Returns the security identifier of the computer object")] String SamAccountName;
23+
};
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Description
2+
3+
The xADComputer DSC resource will manage computer accounts within Active Directory.
4+
This resource can be used to provision a computer account before the computer is
5+
added to the domain. These pre-created computer objects can be used with offline
6+
domain join, unsecure domain Join and RODC domain join scenarios.
7+
8+
>**Note:** An Offline Domain Join (ODJ) request file will only be created
9+
>when a computer account is first created in the domain. Setting an Offline
10+
>Domain Join (ODJ) Request file path for a configuration that updates a
11+
>computer account that already exists, or restore it from the recycle bin
12+
>will not cause the Offline Domain Join (ODJ) request file to be created.
13+
14+
## Requirements
15+
16+
* Target machine must be running Windows Server 2008 R2 or later.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# culture="en-US"
2+
ConvertFrom-StringData @'
3+
EnabledDeprecatedMessage = DEPRECATED parameter Enabled is being used in this configuration. The parameter Enabled no longer sets or enforces the Enabled property. Please see more information at https://github.com/PowerShell/xActiveDirectory/blob/master/README.md#xadcomputer. (ADC0001)
4+
RetrievingComputerAccount = Retrieving the information about the computer account '{0}' from Active Directory. (ADC0002)
5+
ComputerAccountIsPresent = The computer account '{0}' is present in Active Directory. (ADC0003)
6+
ComputerAccountIsAbsent = The computer account '{0}' is absent from Active Directory. (ADC0004)
7+
FailedToRetrieveComputerAccount = Failed to retrieve the computer account '{0}' from Active Directory. (ADC0005)
8+
TestConfiguration = Determining the current state of the computer account '{0}'. (ADC0006)
9+
ComputerAccountShouldBeAbsent = The computer account '{0}' is present in Active Directory, but expected it to be absent. (ADC0007)
10+
ComputerAccountShouldBePresent = The computer account '{0}' is absent in Active Directory, but expected it to be present. (ADC0008)
11+
ServicePrincipalNamesInDesiredState = The service principal names was in desired state. (ADC0009)
12+
ServicePrincipalNamesNotInDesiredState = The service principal names was '{0}', but expected them to be '{1}'. (ADC0010)
13+
ComputerAccountInDesiredState = The computer account '{0}' is in the desired state. (ADC0011)
14+
ComputerAccountNotInDesiredState = The computer account '{0}' is not in the desired state. (ADC0012)
15+
RestoringComputerAccount = Attempting to restore the computer object {0} from recycle bin. (ADC0013)
16+
FailedToCreateOfflineDomainJoinRequest = Failed to create the Offline Domain Join (ODJ) request file for the computer account '{0}' with the error code '{1}'. (ADC0014)
17+
CreateOfflineDomainJoinRequest = Attempting to create the Offline Domain Join (ODJ) request file '{0}' for the computer account '{1}' in the domain '{2}'. (ADC0015)
18+
CreatedOfflineDomainJoinRequestFile = The Offline Domain Join (ODJ) request file '{0}' was created successfully. (ADC0016)
19+
CreateComputerAccount = The computer account '{0}' is created in Active Directory, at the default path. (ADC0017)
20+
CreateComputerAccountInPath = The computer account '{0}' is created in Active Directory, at the path '{1}'. (ADC0018)
21+
DisabledComputerAccount = The computer account '{0}' is created disabled. (ADC0019)
22+
EnabledComputerAccount = The computer account '{0}' is created enabled. (ADC0020)
23+
MovingComputerAccount = Moving the computer account '{0}' from the path '{1}' to the path '{2}'. (ADC0021)
24+
UpdatingComputerAccountProperty = Updating the computer account property '{0}' with the value(s) '{1}'. (ADC0022)
25+
RemovingComputerAccountProperty = Removing the value(s) '{1}' from the computer account property '{0}'. (ADC0023)
26+
UpdatedComputerAccount = The computer account '{0}' was updated in Active Directory. (ADC0024)
27+
RemovingComputerAccount = Removing the computer account '{0}' from Active Directory. (ADC0025)
28+
'@

0 commit comments

Comments
 (0)