How are we doing? Please help us improve Stack Overflow. Take our short survey

Questions tagged [activedirectorymembership]

The tag has no usage guidance.

activedirectorymembership
Filter by
Sorted by
Tagged with
2 votes
1 answer
29 views

How to add the AD group pemission to access file(shared path access) using ldap3 or any other python library?

I want to share the example of manual efforts here. I have already created a users and ad groups by having ldap connection binding using ldap3. I can see ldap3 supports automation for use cases like ...
0 votes
1 answer
46 views

How to remove a user as member from all the access groups in Active Directory (AD)

I want to remove a user from membership of all the access groups in AD. Some of the access groups belong to another domain. Below is my code, but it doesn't work and I get the error message "...
-1 votes
1 answer
46 views

Could I rely that PrimaryGroupToken is immutable?

Based on my investigtaion there are 2 things: PrimaryGroupId from User side PrimaryGroupToken operational attribute from Group side User references to group PrimaryGroupToken operational attribute ...
0 votes
1 answer
134 views

ADD-ADGroupMember at Random in 4 Groups from list of computers, with no repeats/duplicates between 4 groups

My code below is not able to take the " $groupname " list and run it in the ADD-ADGroupmember step. I tried a different way, but I still end up with a computer showing in different groups. ...
1 vote
1 answer
2k views

Add-ADGroupMember can't find an object with identity

I am having trouble trying to solve a simple issue. My script works up to the point of adding the ADComputer to the AD Security Group. I have even tried adjusting the Add-ADGroupMember -Identity $...
0 votes
2 answers
513 views

LDAP return properties some of them are not given by me its not loading department property ? MVC 5

my code for getting AD specific user details is, SearchResultCollection results; DirectorySearcher ds = null; DirectoryEntry de = new ...
1 vote
1 answer
764 views

remove terminated users from DISTRIBUTION groups in AD

I am working on a solution that will help keep our Active Directory clean, so I want to use a Powershell script that will remove the disabled accounts from all groups. I got the following script: ...
0 votes
1 answer
3k views

Removing Users from all AD Groups based on CSV File

Hi I am new to PowerShell, I have a CSV file of Active directory user names, I need to remove them from all their group memberships except the default "Domain Users" I have this script but ...
0 votes
1 answer
2k views

Unable to connect to ADAM with Windows domain\username

I'm having some difficulty connecting to an ADAM instance from my Commerce Server 2007 ASP .NET solution, and I believe it relates to my config file somehow. The short version is that I can connect ...
1 vote
1 answer
4k views

Using Powershell, how to get a list of Active Directory group members, including users and contacts, showing name, company, and email

I'm trying to export lists of AD group members with powershell. I was doing great with commands like this: Get-ADGroupMember "MyGroupName" -Recursive | Get-ADUser -Properties Company,Surname,...
0 votes
1 answer
2k views

Powershell to remove-adgroupmembers listed in a text file where the group for them to be removed from is a wildcard

I'm looking for a way to remove AD computers that are listed in a text file from any AD groups they might be in, within the same OU. For example, the text file contains: Computer1$ Computer2$ ...
1 vote
1 answer
2k views

Should we change the Password in the Application pool in server if the Active Directory ID password is reset?

We are resetting the password of Active directory service account used in server for Identity in Application Pool Certificate Access Permission Folder share access permissions Windows Scheduler job ...
-1 votes
1 answer
764 views

Assign multiple groups to Ldap User programmatically

Is it possible to assign multiple groups to a user that's programmatically added to LDAP. If yes, what should be the format followed.
0 votes
1 answer
60 views

Im trying to send an automated email to users with current AD details using powershel ISE to grab AD details..But Ive never done this before

What I have I've never done this before but my boss gave me a hint how to go about this..but im still confused..can anyone help me out enter code here$a = get-aduser -filter * -SearchBase 'OU=_Users,...
0 votes
2 answers
200 views

Don't block user from specific group in Powershell script

I have logical problem how can I make script more secure to NON Block users From IT Groups By some operations users which need to block them employees from AD. I am so close to automate this process, ...
2 votes
1 answer
9k views

What are the minimum permissions required to search or query Active Directory for Users, Groups and Group Membership?

I have been able to enumerate Users, Groups and Group Members in Active Directory when I am logged in Administrator or Domain User in C#. I would like to know which type of Users can read/query/search ...
0 votes
1 answer
598 views

Active Directory: Querying for subdomain users member of parent level AD group

I am trying to find a way through this already discussed problem but still unable to get to the final step. We are in process of generating a XLS sheet listing down all the users from the certain AD ...
0 votes
1 answer
2k views

Adding a PC to a Security Group in AD via Powershell without having to install RSAT

a few weeks ago I started setting up my MDT(Microsoft Deployment Toolkit) custom Image. Nearly everything works fine so far except my recent Powershell script which is meant for adding a computer to a ...
2 votes
1 answer
12k views

How to find which of nested ad groups user belongs to

i need to find users from a specific OU that belong to a set of nested groups (that part is done), and write which of the groups the users belong to (user can belong to several groups) right now i ...
0 votes
1 answer
651 views

Get-ADUser return a single account from all OU's and Sub OU's

I have the following sample OU structure in my Active Directory server I have user accounts in the "users" OU in each of OU1, OU2 and so on. The user accounts have a static prefix e.g. OU1 ...
-1 votes
1 answer
597 views

'Domain User' group not showing when reporting on Active Directory using PowerShell script

The following code query's AD for information on user accounts and is expected to export an excel file that contains the Name, Username, AccountEnabled(yes/no), Department, Description, LastLogonDate, ...
1 vote
2 answers
457 views

Remove AD Membership From user A if user B is not in the group

I am very new to Powershell scripting, even newer to powershell scripting for AD. I am trying to basically replicate memberOf from one AD user to another I have gotten a copy script to work, but in ...
0 votes
0 answers
820 views

PowerShell Get-AdGroupmember doen't work for some groups

I am trying to execute the below PowerShell command. Its giving proper results for some AD groups, but "Cannot find an object with identity xxxx under region.company.com" for few groups. I'm ...
0 votes
1 answer
63 views

How can I change this filter from a specific AD Group to All AD Groups in the Organization?

This filterString gets all AD users from a specific AD group, I need to change this to get ALL users from ALL groups in my organization. I have read through dozens of similar questions and changed ...
1 vote
1 answer
322 views

ActiveDirectoryMembershipProvider on Azure App Service: Access Denied

One of the legacy applications running on IIS 7 was recently ported to Azure App Service. The application uses WebMatrix (Simple Membership) and Active Directory as membership providers. Upon hosting ...
15 votes
3 answers
17k views

PrincipalContext not connecting

I am attempting to use PrincipalContext for a webservice that I am developing. I have already been using forms authentication on the web server in a different application and it works fine. The ...
1 vote
0 answers
62 views

Simple AD - change domain membership

I have one Simple AD configured in a primary AWS account and a few Windows EC2 instances are joined to this Simple AD. I want to migrate my primary account Windows instances which are joined to the ...
0 votes
1 answer
287 views

C# Active Directory Login

Ive written a program to manage our Active Directory in c# - windows forms. I'm stuck at the following point: For managing the Active Directory and Commiting Changes, you have to run the program as ...
1 vote
1 answer
4k views

How to pipe "member of" to csv in Powershell

I am attempting to get a list of information about what groups a selected user is a member of. I found a script on here earlier that seemed to be of use: Get-ADUser -SearchBase "OU=Users,DC=...
1 vote
1 answer
714 views

Check if AD Group is Member of another group (recursive)

Imagine i have structure RootGroup <- Group{x} .... <- Group{x+n} <- Group100 How could I check that Group100 is member of RootGroup I have this and it returns always false private bool ...
0 votes
0 answers
564 views

Get-ADGroup to retrieve members not returning members in other forest (but does return for different domain/same forest)

I'm in a multi-domain and multi-forest environment. Forest 1 contains the vast chunk of users and domains - forest 2 contains a single legacy domain, and this setup is causing issues. Get-ADGroup -...
0 votes
1 answer
22 views

Extracting group memberships

I am have a list of active directory computers on a file, and I would like to see for each of one them, what groups they belong to. It is very long when you have 200-300 to do manually, but I think ...
0 votes
1 answer
47 views

Error when viewing Members section in Umbraco

Using Umbraco 7.12.4 I'm using an instance of AD LDS to authenticate backoffice users and members (both authenticate using the exact same AD LDS instance). In Web.config: <providers> <add ...
2 votes
1 answer
69 views

Azure AD multi-tenant app unpredictable behaviour?

I am trying to build a scalable multi-tenant b2b SAAS in Azure AD using Angular in the front end and node + Azure MS SQL sharded db design. I've spend a week going through the MS documentation and ...
0 votes
0 answers
2k views

Distribution group members not receiving e-mail

I'm encountering an issue within Active Directory that I'm sure has a simple solution but I just can't seem to get it working or fixed. Basically, I have a distribution group which has Universal ...
-1 votes
1 answer
714 views

User not able to create Azure AD application

We have an Azure Active Directory and within it I want the users to be able to create AD application by going to "App registrations" section. Reading the link here, Check the App registrations ...
4 votes
3 answers
13k views

Can LDAP_MATCHING_RULE_IN_CHAIN return 'subtree search results' with attributes (specifically "memberOf")?

I have an active directory (AD) test instance with nested groups: Employees (Parent) with two subgroups: Executives and Engineers. Tree: Employees | -Executives | | | -Mister Executive ...
2 votes
2 answers
1k views

SSIS Package for loop to expand list of AD group membership

I am a fairly new user of SSIS tool and I love it! But I have a project that I don't know how to configure the tool. I have a list of about 300 domain groups in a MySQL table that I need to read each ...
4 votes
1 answer
6k views

Simple username login with membership provider in Active Directory

I use Active Directory for authentication through ActiveDirectoryMembershipProvider in one of my ASP.Net projects. I connect to it successfully with this LDAP connection string: LDAP://server/DC=...
18 votes
3 answers
18k views

PrincipalContext.ValidateCredentials always returns FALSE

I have an MVC application that needs to login and verify a user against Active Directory. I am using the PrincipalContext.ValidateCredentials method but always get a authentication of false. ...
-1 votes
1 answer
57 views

What does adding a PC to Domain Controller actually do?

I am wondering what adding a PC to a windows domain actually does? For example, if after issuing, sudo net ADS JOIN -U 'unixJOINer%JOINpwd' .... How does the Domain controller from then on know ...
1 vote
0 answers
2k views

Active Directory Get List of Users using PrincipalSearcher throws error

I have two functionality which I need to achieve in asp.net web application. Authenticate using Active Directory Get list of Active Directory users. Both above work fine on client environment when I ...
0 votes
0 answers
82 views

C# combining two strings

I am working on an app that will create users in AD. What I need want to do to be flexible is to create the users in a user defined OU (via GUI). So if a user enters OU=test users, OU=test, I would ...
0 votes
0 answers
164 views

Active Directory Integration in Windows Phone App

I need my Windows Phone App users to be authenticated with Active Directory. How to achieve this?
2 votes
1 answer
1k views

Active Directory Authentication with Retrieving User Data in MVC

In my MVC5 application, I used to apply the following approach by just checking if the user is exist or not in Active Directory. Now, I want to use another approach like that: I send the username and ...
2 votes
3 answers
13k views

Query Active Directory from ASP.NET and bind result to List View

I managed to do ASP.NET authentication work wih AD. Now, I want to query an OU in AD and display the result either ListView or GridView in ASP.NET page. Here's the Domain Controller: dc.itlab.edu The ...
0 votes
1 answer
267 views

ASP.NET active directory membership using VPN

I trying to use ASP.NET Active Directory Membership Provider for authenticating the users in ASP.NET Web API. This active directory is on a different server and I can only connect to that server ...
0 votes
0 answers
33 views

Script to update domain computer LastLogonDate?

So I've poked around looking for something like this for a while now, but can't seem to find anything anywhere. In our environment we have a script that disables computers after the last seen AD ...
10 votes
6 answers
27k views

Query From LDAP for User Groups

How To Get User group of user from LDAP active directory in C# .NET for ASP. In my Scenario I want to Pass user name to method which query from LDAP Active directory and tell me my user is Member of ...
0 votes
2 answers
130 views

How to add the distrubtion group in Active Directory for a user?

How to add the distrubtion group from Powershell in Active Directory ? I have user in active directory and i want to add the user into particular group rather than going and server because that part ...