adsi Questions
5
Solved
I use the following code to determine members of the local Administrators group:
$obj_group = [ADSI]"WinNT://localhost/Administrators,group"
$members=@($obj_group.Invoke("Members"))|foreach{$_.Get...
Fredkin asked 11/8, 2015 at 18:39
6
The User.Identity.Name property returns the domain login id.
Which class/property exposes the actual user name?
For user "John Doe" who logs into the web application supplying my_domain\jdoe
**U...
Annabelle asked 29/1, 2009 at 23:58
1
Solved
I'm trying to work with active directory from Rust by following the c++ examples Microsoft posts for the ADSI API and the Windows-RS crate. I'm not understanding quite what is going on here:
https:...
4
Solved
I have searched the site for information and found this:
ASP.NET C# Active Directory - See how long before a user's password expires
which explains how to get the value of when the password ex...
3
Solved
Using Active Directory, am trying to find the SamAccountName and email of the user’s manager.
I find the logged on user in the AD by search where sAMAccountName = Domain\Account. I then retrieve t...
Microvolt asked 11/6, 2009 at 14:57
3
Solved
How can I get a list of users within an LDAP group, even if that group happens to be the primary group for some users?
For example, suppose "Domain Users" is "Domain Leute" in German. I want all m...
Tithable asked 14/12, 2010 at 20:23
2
Solved
The following method I created seem does not work. An error always happens on foreach loop.
NotSupportedException was unhandled...The provider does not support
searching and cannot search WinNT...
Upstage asked 19/11, 2011 at 3:37
3
Solved
(This is a question about a vague problem. I try to present all relevant data, in the hope that someone has helpful information; apologies for the long description.)
Our web app
We have a .NET 4 ...
Millsap asked 13/3, 2012 at 14:36
1
using (PrincipalContext ctx = new PrincipalContext(ContextType.Domain, Domain, UserName, Password))
{
UserPrincipal U = new UserPrincipal(ctx);
U.GivenName = strFirstName;
U.Surname = strLastNa...
Otero asked 5/3, 2015 at 6:21
2
Solved
Background
I'm creating some SQL to assist with security auditing; this will take security info from various systems databases and from Active Directory and will produce a list of all anomalies (i...
Meltwater asked 17/12, 2012 at 13:1
1
I'm trying to script with PowerShell the act of adding the user IIS AppPool\ASP.NET v4.0 to the Performance Monitor Users group, to be able to use custom performance counters from an ASP.NET applic...
Edwardedwardian asked 13/8, 2013 at 12:18
3
Solved
I am trying to create a powershell script to automate user creation which is working great using ADSI. However I need to set the following properties and I am not sure how (or if ADSI can even do t...
Iselaisenberg asked 1/6, 2009 at 9:41
2
Solved
I'm developing a C# .NET Framework library to access active directory.
One of the things that I have to do is to get all AD users, and I see that:
PrincipalContext principalContext =
new Princip...
Consubstantiate asked 9/5, 2014 at 8:16
4
I have a C++ DLL that is used for authentication that gets loaded by a Windows service for every login.
In that DLL I use the Windows ADSI function ADsOpenObject() to get a user object from Active...
Cordeelia asked 6/12, 2013 at 9:0
5
Solved
I have a long running process that needs to do a lot of queries on Active Directory quite often. For this purpose I have been using the System.DirectoryServices namespace, using the DirectorySearch...
Fountainhead asked 12/4, 2011 at 7:46
1
Solved
I am trying to get all group members from "Domain Users". When using AD Users MMC tab, I get a lot of results. When using ADSI - not. The following DOESN'T work as expected:
looking at members at...
Amphibolite asked 29/6, 2012 at 12:46
1
Solved
We have a large Transaction Processing System (batch processing) ERP Solution for large Healthcare claims processing organizations and businesses. We currently implement our own user account manage...
Pharmacopoeia asked 6/4, 2012 at 18:26
2
I am not able to find out the ADSI EDIT on WIN-7, any help in this regard.
Any installing instruction !
PS. Install the ADSI Edit, error on launch:"MMC could not create the snap-in"
Is RSAT sti...
1
I'm trying to programmatically determine whether the current user has certain permissions on a given Active Directory object (specifically in this case, I'm trying to determine whether the user has...
Clydeclydebank asked 30/11, 2011 at 15:51
1
Solved
I have code that hasn't been touched in over a year, but the DCs were upgraded from 2008 to 2008 R2. The AD folks claim it’s not the DC upgrade but the issue started promptly after that went in.
...
Bankruptcy asked 8/2, 2010 at 15:26
2
Solved
I am working on Configuring and manipulating and controlling IIS 6.0 and later versions using ASP.Net based web application. I am considering WMI, ADSI, Managed API as my options.
I have a target W...
2
Solved
In active directory, should mailNickname always equal samaccountname? Or, should it always be equal to the mail property (minus the "@domain")?
My reason for asking is that we have recently chang...
Prepay asked 2/2, 2009 at 20:59
2
Solved
I've installed PowerShell recently and one of the first things I started looking for was how to create a new user. After looking for some time I still haven't found this.
I have a little experience...
Hebrews asked 20/12, 2008 at 15:1
4
Solved
I currently have some code that pulls down a list of users in a group and then iterates through that group to determine if a given account exists, but it seems like there ought to be a more concise...
Monamonachal asked 15/12, 2008 at 16:2
1
© 2022 - 2024 — McMap. All rights reserved.