Showing posts with label Group. Show all posts
Showing posts with label Group. Show all posts

How to export member of group in active directory

By // No comments:

How to export member of group in active directory



In this article I will discuss how I use the Get-ADGroupMember cmdlet to get a list of Active Directory Group members and dump it to a csv file. You will need to have the Active Directory Module for PowerShell installed to use this cmdlet. Once you have the  Active Directory Module for PowerShell installed you can open PowerShell as Administrator and type the following to import the module (module will be imported automatically when executing the “Get-ADGroupMember” cmdlet in PowerShell 3.0)





Step 1: “Import-Module ActiveDirectory”


After you import the AD module type the following changing the identity to reflect your group name and the path to export group members to a csv file in that directory:



Step 2: Get-ADGroupMember -identity “Name of Group” | select name | Export-csv -path C:\Output\Groupmembers.csv -NoTypeInformation

You should now have a list of members by display name in a csv file located at C:\Output\Groupmembers.csv. If you wanted to list out the users by samaccountname you could just change out “name” after the select statement with “samaccountname”.

Now lets say you are using nested groups. You will notice that your list will reflect the nested group name and no the members of the nested group. All you need to do in this case is add the -recursive parameter to enumerate all the nested group members and add them to the list. This would look as follows:

Step 3 : Get-ADGroupMember -identity “Name of Group” -recursive | select name | Export-csv -path C:\Output\Groupmembers.csv -NoTypeInformation

I hope this helps. If you have any questions or feedback please leave a comment.

How to create group in Linux

By // No comments:

How to create group in Linux


Today we will see in this post that how to create group in Linux through command line. It's very easy to create, change, modify and delete group information. Please read full articles if you face any problem regarding this articles so please leave comments or drop email within 24 hours you will get reply by our team.

Please leave comment if this article good and share it also.



To create group account:

[root@localhost ONS]# groupadd saiyyad

To set password on group account:

[root@localhost ONS]# gpasswd saiyyad
Changing the password for group saiyyad
New Password:
Re-enter new password:

To create and change Group's GUID:

[root@localhost ONS]# groupadd -g 1200 saiyyad
[root@localhost ONS]# groupmod -g 1201 saiyyad

To remove group password:

[root@localhost ONS]# gpasswd -r saiyyad


To change/rename group's name:

[root@localhost ONS]# groupmod -n ITmanager saiyyad

To delete/remove group account:

[root@localhost ONS]# groupdel saiyyad

To add a user into a group:

[root@localhost ONS]# gpasswd -a test saiyyad

To add multiple user into a group at same time:

[root@localhost ONS]# gpasswd -M test,deepak,raju saiyyad

To delete a user from group:

[root@localhost ONS]# gpasswd -d test saiyyad

To check member of group information:

[root@localhost ONS]# getent group saiyyad

To check the group information:

[root@localhost ONS]# vi /etc/group
[root@localhost ONS]# cat /etc/group

Hope this will help to all of you and resolved your all query if you have any query or question so you may ask to send email on our email account (onlinenetworkssolution@gmail.com) or leave comment on page.

Computer policy could not be updated successfully in Group policy on window server

By // No comments:

Computer policy could not be updated successfully


Today we will see that how to resolve error when you do a "gpupdate /force", you see errors like these: "Computer policy could not be updated successfully. The following errors were encountered: The processing of Group Policy failed. Windows could not apply the registry-based policy settings for the Group Policy object Local GPO. Group Policy settings will not be resolved until this event is resolved. View the event details for more information on the file name and path that caused the failure".



To Resolve this problem, the local policy file will have to be removed:

The Location for registry.pol file is at:

c:\Windows\System32\GroupPolicy\Machine.






Rename this file to .back then reboot the System . After Reboot run gpupdate /force.

The problem will Resolve. The policy file could have been corrupted.


Hope this will help all of you and resolved all query if you have any query or question so you may ask or send email on our email account (onlinenetworkssolution@gmail.com) or leave comment on page.