# XGroup xPSDesiredStateConfiguration

**URL:** <https://forums.powershell.org/t/xgroup-xpsdesiredstateconfiguration/9881>\
**Category:** DSC\
**Created:** [December 19, 2017, 7:56pm UTC](https://forums.powershell.org/t/xgroup-xpsdesiredstateconfiguration/9881 "2017-12-19T19:56:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mespar](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@mespar](https://forums.powershell.org/u/mespar)\
**Post date:** [December 19, 2017, 7:56pm UTC](https://forums.powershell.org/t/xgroup-xpsdesiredstateconfiguration/9881/1 "2017-12-19T19:56:22Z")

</div>

Hi,

Can someone tell me what are the steps needed to use xGroup within my HTTPS Pull server and having a node pick up the xGroup settings and set accordingly ? I have the following set and run it with no errors but do not get any changes in the local Administrators group on my Node:

Configuration Sample\_xGroup\_SetMembers  
{  
[CmdletBinding()]  
param ()

```
 Import-DscResource -ModuleName 'xPSDesiredStateConfiguration' 

 xGroup Group1 
 { 
     GroupName = 'GroupName1' 
     Ensure = 'Present' 
     Memberstoinclude = @( 'domain\User1', 'domain\users2' ) 
 } 

```

Thanks

---

<div class="post-metadata">

**Author:** ![incognitotom](https://avatars.discourse-cdn.com/v4/letter/i/e495f1/32.png) [@incognitotom](https://forums.powershell.org/u/incognitotom)\
**Post date:** [December 20, 2017, 4:02am UTC](https://forums.powershell.org/t/xgroup-xpsdesiredstateconfiguration/9881/2 "2017-12-20T04:02:16Z")

</div>

Hi,

I looks like you are missing the Node statement.

```
Configuration Sample_xGroup_SetMembers
{
[CmdletBinding()]
param ()

Import-DscResource -ModuleName 'xPSDesiredStateConfiguration'

Node LocalHost {

xGroup Group1
      {
          GroupName = 'GroupName1'
          Ensure = 'Present'
          Memberstoinclude = @( 'domain\User1', 'domain\users2' )
      }
   }
}
```

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 9:16pm UTC](https://forums.powershell.org/t/xgroup-xpsdesiredstateconfiguration/9881/3 "2024-05-16T21:16:37Z")

</div>

Closed on May 16, 2024, 9:16pm UTC


