Questions tagged [domaincontroller]

An Domain Controller (DC) is a Windows server which responds to security authentication requests (logging in, checking permissions, etc.) within the Windows Server Active Directory domain.

For a complete description, see https://en.wikipedia.org/wiki/Domain_controller

231 questions
27
votes
10 answers

UserPrincipals.GetAuthorizationGroups An error (1301) occurred while enumerating the groups. After upgrading to Server 2012 Domain Controller

Research: Similar Issue with workaround, but not actual solution to existing problem Similar issue pointing to Microsoft End Point update as culprit The above links are the most suited to my problem, I have also viewed every similar question listed…
Pynt
  • 2,023
  • 2
  • 20
  • 26
8
votes
0 answers

How to fetch username of the user who is logged into AD domain on OSX using objective C

Is there a way to find the username (User Principal Name or samaccountname) of the user who is using my app and is logged into an AD domain? Can we also find which domain is the user connected to programmatically? dsconfigad -show command line…
ZestyZest
  • 911
  • 13
  • 27
8
votes
3 answers

How do I query an organizational unit for its groups with LDAP?

I have tried many queries, but this gets me my OU: (&(objectCategory=organizationalUnit)(Name=MyOU)) (I just get the ou here) I tried to use (&(objectCategory=organizationalUnit)(objectClass=group)(Name=MyOU)) but failed. Also,…
johnny
  • 19,272
  • 52
  • 157
  • 259
7
votes
1 answer

Php adLDAP Error - Unable to bind to server: Strong(er) authentication required

I am attempting to use PHP adLDAP version 4.04 to authenticate on a corporate network with no success yet. PHP Version 5.2.4 I tried this stackoverflow post PHP ldap - Strong(er) authentication required, no luck. I am NOT an admin on this domain…
Kellen Stuart
  • 7,775
  • 7
  • 59
  • 82
7
votes
4 answers

Determine current domain controller programmatically

I need to query current domain controller, probably primary to change user password. (P)DC name should be fully qualified, i.e. DC=pdc,DC=example,DC=com (how to properly name such notation?) How can it be done using C#?
abatishchev
  • 98,240
  • 88
  • 296
  • 433
6
votes
3 answers

How do I get my Domain Controllers to sync with a correct external time source?

I had a user contact me saying that her computer clock is 8 or 9 minutes faster than her cell phone clock. That concerned me because cell phone clocks are always synced. I looked at my computer's clock, and it was the same, about 8 minutes ahead…
6
votes
4 answers

How to change default scheduled task process priority in Windows

I've been checking this for a while now. We have a script that creates a scheduled task and it seems that as described in many places across the net, the task priority this process and its descendants receive is 7:BelowNormal Now this causes many…
Ohad Benita
  • 533
  • 2
  • 8
  • 26
5
votes
1 answer

Where do I run the setspn command?

I am trying to add a Service Principal Name with the below command, which I am using for Windows Authentication. setspn –a HTTP/Kerberos.com domain\username I have a site running on IIS Server which is running on windows 2008 server connected to…
Kalpesh
  • 83
  • 2
  • 6
5
votes
1 answer

Server 2012 Local Shares - Cannot access using \\IP but works via \\localhost

I've been stuck on this problem for the last couple of days and I can't find a solution on the internet that works. I have a Windows Server 2012 instance running on Amazon AWS with a public IP address. I am using it as an SCCM (System Center 2012…
5
votes
4 answers

Get closest Domain Controller in current AD site without hard coding information

For instances when Active Directory takes too long to replicate data between sites, I need to ensure that the local AD replica contains the most up to date information. How can I get a list of DomainControllers for the current site? I haven't…
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
4
votes
0 answers

list all users in active directory using c++

I am working on active directory and I am new to this.Here I need to list all the users in the active directory using c++ and ADSI.It might be duplicate post,but i went through many posts and I got an idea to use ADSI.So give some idea to proceed…
Ganeshkumar SR
  • 101
  • 1
  • 2
  • 10
4
votes
2 answers

Windows Azure - Stuck on Running (Provisioning) when creating VM from custom created image in gallery

I have problem when creating VM from a custom created image in gallery. Image is a domain controller. Stuck on Running (Provisioning). I captured the image after sysprep etc. But when I create VM from an image which is a none domain controller(stand…
4
votes
1 answer

Powershell - Invoke command access denied while not running under domain admin account

I'm using a script to create a folder on a remote server which is a filew server and a RODC. When I run the script from a domain admin user the command complet successfuly. When I run with an account that is on the group that can administer the RODC…
3
votes
1 answer

c# Howto enumerate DCs in a different domain

I would like to enumerate all DCs in a domain (where current user nor computer are member of, and also not in the same forest). I found this nice method Domain domain = Domain.GetCurrentDomain(); foreach (DomainController dc in…
Stef
  • 593
  • 3
  • 10
  • 23
3
votes
1 answer

Object 'user' couldn't be found on 'Domain Controller'

I have created PowerShell script to gather all users mailbox detail such as "PrimarySmtpAddress, Identity, displayname" on Exchange On-Premises. I am trying to run this command from powershell: $UserNameInSmtpFormat = Get-Mailbox -Identity $User…
1
2 3
15 16