Groups windows server 2012

Group Policy Overview

Applies To: Windows 8.1, Windows Server 2012 R2, Windows Server 2012, Windows 8

Use this topic to find the documentation resources and other technical information you need to accomplish key Group Policy tasks. You can learn about new and updated functionality for Group Policy in Windows Server 2012 R2 and Windows 8.1and ways to automate common Group Policy tasks by using Windows PowerShell.

Did you mean…

Feature description

Group Policy is an infrastructure that allows you to specify managed configurations for users and computers through Group Policy settings and Group Policy Preferences. To configure Group Policy settings that affect only a local computer or user, you can use the Local Group Policy Editor. You can manage Group Policy settings and Group Policy Preferences in an Active Directory Domain Services (ADВ DS) environment through the Group Policy Management Console (GPMC). Group Policy management tools also are included in the Remote Server Administration Tools pack to provide a way for you to administer Group Policy settings from your desktop.

Windows PowerShellВ В В When the GPMC is installed on servers or client computers, the Windows PowerShell module is also installed. You have full Windows PowerShell functionality. If you install the Remote Server Administration Tools pack, the latest Windows PowerShell cmdlets for Group Policy are also installed. For more information about Windows PowerShell cmdlets and scripts that you can use to manage Group Policy, see Group Policy Cmdlets.

You can configure the Group Policy feature by using Windows PowerShell cmdlets. For more information about using Server Manager cmdlets to install the Group Policy Management Console, see Install or Uninstall Roles, Role Services, or Features and Server Manager deployment cmdlet module.

Practical applications

By using Group Policy, you can significantly reduce your organization’s total cost of ownership. Various factors, such as the large number of policy settings available, the interaction between multiple policies, and inheritance options, can make Group Policy design complex. By carefully planning, designing, testing, and deploying a solution based on your organization’s business requirements, you can provide the standardized functionality, security, and management control that your organization needs.

Here are some Windows Server 2012 scenarios that use Group Policy to implement a solution:

New and changed functionality

Group Policy designs can become very complex. Various factors, such as the large number of policy settings and preference items available, the interaction between multiple policies, and inheritance options, can make it difficult to determine if Group Policy is functioning correctly on each computer.

In Windows Server 2012, Group Policy focused on improving the Group Policy troubleshooting experience. Windows Server 2012 R2 expands the support for IPv6 networking, adds policy caching to reduce sign-in times in synchronous mode, and provides more detailed event logging. For more details about these changes and more information about the additional changes in functionality that are not listed here, see What’s New in Group Policy in Windows Server 2012 [redirected] and What’s New in Group Policy in Windows Server.

Getting Started with Group Managed Service Accounts

Applies To: Windows Server (Semi-Annual Channel), Windows Server 2016

This guide provides step-by-step instructions and background information for enabling and using group Managed Service Accounts in Windows Server 2012 .

In this document

This topic includes sample Windows PowerShell cmdlets that you can use to automate some of the procedures described. For more information, see Using Cmdlets.

Prerequisites

Introduction

When a client computer connects to a service which is hosted on a server farm using network load balancing (NLB) or some other method where all the servers appear to be the same service to the client, then authentication protocols supporting mutual authentication such as Kerberos cannot be used unless all the instances of the services use the same principal. This means that each service has to use the same passwords/keys to prove their identity.

Читайте также:  Как копировать каталоги linux

Failover clusters do not support gMSAs. However, services that run on top of the Cluster service can use a gMSA or a sMSA if they are a Windows service, an App pool, a scheduled task, or natively support gMSA or sMSA.

Services have the following principals from which to choose, and each has certain limitations.

Principals Scope Services supported Password management
Computer Account of Windows system Domain Limited to one domain joined server Computer manages
Computer Account without Windows system Domain Any domain joined server None
Virtual Account Local Limited to one server Computer manages
Windows 7 standalone Managed Service Account Domain Limited to one domain joined server Computer manages
User Account Domain Any domain joined server None
Group Managed Service Account Domain Any Windows Server 2012 domain-joined server The domain controller manages, and the host retrieves

A Windows computer account, or a Windows 7 standalone Managed Service Account (sMSA), or virtual accounts cannot be shared across multiple systems. If you configure one account for services on server farms to share, you would have to choose a user account or a computer account apart from a Windows system. Either way, these accounts do not have the capability of single-point-of-control password management. This creates problem where each organization needs to create an expensive solution to update keys for the service in Active Directory and then distribute the keys to all instances of those services.

With Windows Server 2012 , services or service administrators do not need to manage password synchronization between service instances when using group Managed Service Accounts (gMSA). You provision the gMSA in AD and then configure the service which supports Managed Service Accounts. You can provision a gMSA using the *-ADServiceAccount cmdlets which are part of the Active Directory module. Service identity configuration on the host is supported by:

Same APIs as sMSA, so products which support sMSA will support gMSA

Services which use Service Control Manager to configure logon identity

Services which use the IIS manager for application pools to configure identity

Tasks using Task Scheduler.

Requirements for group Managed Service Accounts

The following table lists the operating system requirements for Kerberos authentication to work with services using gMSA. The Active Directory requirements are listed after the table.

A 64-bit architecture is required to run the Windows PowerShell commands used to administer group Managed Service Accounts.

Operating system requirements

Element Requirement Operating system
Client Application host RFC compliant Kerberos client At least Windows XP
User account’s domain DCs RFC compliant KDC At least Windows Server 2003
Shared service member hosts Windows Server 2012
Member host’s domain DCs RFC compliant KDC At least Windows Server 2003
gMSA account’s domain DCs Windows Server 2012 DCs available for host to retrieve the password Domain with Windows Server 2012 which can have some systems earlier than Windows Server 2012
Backend service host RFC compliant Kerberos application server At least Windows Server 2003
Backend service account’s domain DCs RFC compliant KDC At least Windows Server 2003
Windows PowerShell for Active Directory Windows PowerShell for Active Directory installed locally on a computer supporting a 64-bit architecture or on your remote management computer (for example, using the Remote Server Administration Toolkit) Windows Server 2012

Active Directory Domain Service requirements

The Active Directory schema in the gMSA domain’s forest needs to be updated to Windows Server 2012 to create a gMSA.

You can update the schema by installing a domain controller that runs Windows Server 2012 or by running the version of adprep.exe from a computer running Windows Server 2012 . The object-version attribute value for the object CN=Schema,CN=Configuration,DC=Contoso,DC=Com must be 52.

New gMSA account provisioned

If you are managing the service host permission to use gMSA by group, then new or existing security group

If managing service access control by group, then new or existing security group

If the first master root key for Active Directory is not deployed in the domain or has not been created, then create it. The result of its creation can be verified in the KdsSvc Operational log, Event ID 4004.

For instructions how to create the key, see Create the Key Distribution Services KDS Root Key. Microsoft Key Distribution Service (kdssvc.dll) the root key for AD.

Lifecycle

The lifecycle of a server farm using the gMSA feature typically involves the following tasks:

Deploying a new server farm

Adding member hosts to an existing server farm

Decommissioning member hosts from an existing server farm

Decommissioning an existing server farm

Removing a compromised member host from a server farm if required.

Deploying a new server farm

When deploying a new server farm, the service administrator will need to determine:

If the service supports using gMSAs

If the service requires inbound or outbound authenticated connections

The computer account names for the member hosts for the service using the gMSA

The NetBIOS name for the service

The DNS host name for the service

The Service Principal Names (SPNs) for the service

The password change interval (default is 30 days).

Step 1: Provisioning group Managed Service Accounts

You can create a gMSA only if the forest schema has been updated to Windows Server 2012 , the master root key for Active Directory has been deployed, and there is at least one Windows Server 2012 DC in the domain in which the gMSA will be created.

Membership in Domain Admins or the ability to create msDS-GroupManagedServiceAccount objects, is the minimum required to complete the following procedures.

A value for the -Name parameter is always required (whether you specify -Name or not), with -DNSHostName, -RestrictToSingleComputer, and -RestrictToOutboundAuthentication being secondary requirements for the three deployment scenarios.

To create a gMSA using the New-ADServiceAccount cmdlet

On the Windows Server 2012 domain controller, run Windows PowerShell from the Taskbar.

At the command prompt for the Windows PowerShell, type the following commands, and then press ENTER. (The Active Directory module will load automatically.)

Parameter String Example
Name Name of the account ITFarm1
DNSHostName DNS host name of service ITFarm1.contoso.com
KerberosEncryptionType Any encryption types supported by the host servers None, RC4, AES128, AES256
ManagedPasswordIntervalInDays Password change interval in days (default is 30 days if not provided) 90
PrincipalsAllowedToRetrieveManagedPassword The computer accounts of the member hosts or the security group that the member hosts are a member of ITFarmHosts
SamAccountName NetBIOS name for the service if not same as Name ITFarm1
ServicePrincipalNames Service Principal Names (SPNs) for the service http/ITFarm1.contoso.com/contoso.com, http/ITFarm1.contoso.com/contoso, http/ITFarm1/contoso.com, http/ITFarm1/contoso, MSSQLSvc/ITFarm1.contoso.com:1433, MSSQLSvc/ITFarm1.contoso.com:INST01

The password change interval can only be set during creation. If you need to change the interval, you must create a new gMSA and set it at creation time.

Example

Enter the command on a single line, even though they might appear word-wrapped across several lines here because of formatting constraints.

Membership in Domain Admins, Account Operators, or ability to create msDS-GroupManagedServiceAccount objects, is the minimum required to complete this procedure. For detailed information about using the appropriate accounts and group memberships, see Local and Domain Default Groups.

To create a gMSA for outbound authentication only using the New-ADServiceAccount cmdlet

On the Windows Server 2012 domain controller, run Windows PowerShell from the Taskbar.

At the command prompt for the Windows PowerShell Active Directory module, type the following commands, and then press ENTER:

New-ADServiceAccount [-Name] -RestrictToOutboundAuthenticationOnly [-ManagedPasswordIntervalInDays ] [-PrincipalsAllowedToRetrieveManagedPassword ]

Parameter String Example
Name Name the account ITFarm1
ManagedPasswordIntervalInDays Password change interval in days (default is 30 days if not provided) 75
PrincipalsAllowedToRetrieveManagedPassword The computer accounts of the member hosts or the security group that the member hosts are a member of ITFarmHosts

The password change interval can only be set during creation. If you need to change the interval, you must create a new gMSA and set it at creation time.

Example

Step 2: Configuring service identity application service

To configure the services in Windows Server 2012 , see the following feature documentation:

IIS application pool

For more information, see Services.

For more information, see the Task Scheduler Overview.

Other services could support gMSA. See the appropriate product documentation for details on how to configure those services.

Adding member hosts to an existing server farm

If using security groups for managing member hosts, add the computer account for the new member host to the security group (that the gMSA’s member hosts are a member of) using one of the following methods.

Membership in Domain Admins, or the ability to add members to the security group object, is the minimum required to complete these procedures.

Method 1: Active Directory Users and Computers

For procedures how to use this method, see Add a computer account to a group using the command line.

Method 3: Windows PowerShell Active Directory cmdlet Add-ADPrincipalGroupMembership

For procedures how to use this method, see Add-ADPrincipalGroupMembership.

If using computer accounts, find the existing accounts and then add the new computer account.

Membership in Domain Admins, Account Operators, or ability to manage msDS-GroupManagedServiceAccount objects, is the minimum required to complete this procedure. For detailed information about using the appropriate accounts and group memberships, see Local and Domain Default Groups.

To add member hosts using the Set-ADServiceAccount cmdlet

On the Windows Server 2012 domain controller, run Windows PowerShell from the Taskbar.

At the command prompt for the Windows PowerShell Active Directory module, type the following commands, and then press ENTER:

Get-ADServiceAccount [-Identity] -Properties PrincipalsAllowedToRetrieveManagedPassword

At the command prompt for the Windows PowerShell Active Directory module, type the following commands, and then press ENTER:

Set-ADServiceAccount [-Identity] -PrincipalsAllowedToRetrieveManagedPassword

Parameter String Example
Name Name the account ITFarm1
PrincipalsAllowedToRetrieveManagedPassword The computer accounts of the member hosts or the security group that the member hosts are a member of Host1, Host2, Host3

Example

For example, to add member hosts type the following commands, and then press ENTER.

Updating the group Managed Service Account properties

Membership in Domain Admins, Account Operators, or the ability to write to msDS-GroupManagedServiceAccount objects, is the minimum required to complete these procedures.

Open the Active Directory Module for Windows PowerShell, and set any property by using the Set-ADServiceAccount cmdlet.

For detailed information how to set these properties, see Set-ADServiceAccount in the TechNet Library or by typing Get-Help Set-ADServiceAccount at the Active Directory module for Windows PowerShell command prompt and pressing ENTER.

Decommissioning member hosts from an existing server farm

Membership in Domain Admins, or ability to remove members from the security group object, is the minimum required to complete these procedures.

Step 1: Remove member host from gMSA

If using security groups for managing member hosts, remove the computer account for the decommissioned member host from the security group that the gMSA’s member hosts are a member of using either of the following methods.

Method 1: Active Directory Users and Computers

For procedures how to use this method, see Delete a Computer Account using the command line.

Method 3: Windows PowerShell Active Directory cmdlet Remove-ADPrincipalGroupMembership

For detailed information how to do this, see Remove-ADPrincipalGroupMembership in the TechNet Library or by typing Get-Help Remove-ADPrincipalGroupMembership at the Active Directory module for Windows PowerShell command prompt and pressing ENTER.

If listing computer accounts, retrieve the existing accounts and then add all but the removed computer account.

Membership in Domain Admins, Account Operators, or ability to manage msDS-GroupManagedServiceAccount objects, is the minimum required to complete this procedure. For detailed information about using the appropriate accounts and group memberships, see Local and Domain Default Groups.

To remove member hosts using the Set-ADServiceAccount cmdlet

On the Windows Server 2012 domain controller, run Windows PowerShell from the Taskbar.

At the command prompt for the Windows PowerShell Active Directory module, type the following commands, and then press ENTER:

Get-ADServiceAccount [-Identity] -Properties PrincipalsAllowedToRetrieveManagedPassword

At the command prompt for the Windows PowerShell Active Directory module, type the following commands, and then press ENTER:

Set-ADServiceAccount [-Identity] -PrincipalsAllowedToRetrieveManagedPassword

Parameter String Example
Name Name the account ITFarm1
PrincipalsAllowedToRetrieveManagedPassword The computer accounts of the member hosts or the security group that the member hosts are a member of Host1, Host3

Example

For example, to remove member hosts type the following commands, and then press ENTER.

Step 2: Removing a group Managed Service Account from the system

Remove the cached gMSA credentials from the member host using Uninstall-ADServiceAccount or the NetRemoveServiceAccount API on the host system.

Membership in Administrators, or equivalent, is the minimum required to complete these procedures.

To remove a gMSA using the Uninstall-ADServiceAccount cmdlet

On the Windows Server 2012 domain controller, run Windows PowerShell from the Taskbar.

At the command prompt for the Windows PowerShell Active Directory module, type the following commands, and then press ENTER:

Example

For example, to remove the cached credentials for a gMSA named ITFarm1 type the following command, and then press ENTER:

For more information about the Uninstall-ADServiceAccount cmdlet, at the Active Directory module for Windows PowerShell command prompt, type Get-Help Uninstall-ADServiceAccount, and then press ENTER, or see the information on the TechNet web at Uninstall-ADServiceAccount.

Читайте также:  Ставить или не ставить обновления windows
Оцените статью