Quantcast
Channel: Directory Services forum
Viewing all 31638 articles
Browse latest View live

logon query shows zero in active directory 2016

$
0
0

Hi,

I have entered the command to check the logon query in 2016 unfortunately I am not getting the count. 

logon result shows zeoro. is there any alternate command available for 2016.

My infra is mixed 2008R2 and 2016 soon 2008R2 will be removed just one month back we have transitioned.

C:\Windows\system32>nltest /server:server1 /logon_query
Number of attempted logons: 0
The command completed successfully


Domain Controllers High CPU usage due to LDAP query

$
0
0

Hi All,

We are receiving high CPU alerts on few Domain Controllers due to LDAP queries & I found those AD objects into the ADDS Data Collector set report (SPA Report) & got the queries types as well.

Is there any way to find out which accounts are used for those LDAP queries ? 


AliahMurfy

Metadata cleanup is not working - unable to demote 2008 R2 DC

$
0
0

Hello everyone, I would appreciate your advice on how to remove traces of a recently demoted 2012 Std server.

Although the demotion appeared to go fine, there are still traces that are preventing the demotion of our last 2008 server.

-------------------------------------------------------------------------------

The Forest and Domain DNS infrastructure values are pointing to the retired server DC02, via ADSIEdit, DSQuery and LDP:

Value of: ForestDNS\DC=ForestDNSZone,DC=Mydomain,DC=com \ CN-Infrastructure:
 CN=NTDS Settings\0ADEL:9677ee9c-e0e5-4682-9774-b25a26956851,CN=DC02\0ADEL:b306569a-59c2-4f6e-9153-3a2dbfb2875f,CN=Servers,CN=Site1,CN=Sites,CN=Configuration,DC=Mydomain,DC=com
 
 Value of :  Domain DNS\DC=DomainDNSZne, DC=Mydomain, DC=com \ CN=Infrastruture:
 CN=NTDS Settings\0ADEL:9677ee9c-e0e5-4682-9774-b25a26956851,CN=DC02\0ADEL:b306569a-59c2-4f6e-9153-3a2dbfb2875f,CN=Servers,CN=Site1,CN=Sites,CN=Configuration,DC=Mydomain,DC=com

-------------------------------------------------------------------------------

Attempts to update the value manually error out and the vbs script in the below article fails on line 11 char 5 when run in an elevated cmd prompt:

 ForestDNSZones or DomainDNSZones FSMO says “The role owner attribute could not be read”
 https://blogs.technet.microsoft.com/the_9z_by_chris_davis/2011/12/20/forestdnszones-or-domaindnszones-fsmo-says-the-role-owner-attribute-could-not-be-read/
  
 What has happened is the DC who held the FSMO Role Holder for your DomainDNSZones or your ForestDNSZones (or both) application partition isn’t there anymore.
 Someone deleted it, decommissioned it, basically it failed somewhere along the line but the DC owned one or more of your AD Integrated DNS Zones.
 The deleted DC can be seen in the mess above after cn=___ and in most cases this means someone had to do metadata cleanup and forcibly removed the server from AD.

-------------------------------------------------------------------------------

The standard FSMO roles are fine:

C:\Windows\system32>netdom /query fsmo
Schema master               GLDC01.Mydomain.com
Domain naming master        GLDC01.Mydomain.com
PDC                         GLDC01.Mydomain.com
RID pool manager            GLDC01.Mydomain.com
Infrastructure master       GLDC01.Mydomain.com
The command completed successfully.

-------------------------------------------------------------------------------

The server is not seen in ADSIEdit to delete when searching by site:

How to remove data in Active Directory after an unsuccessful domain controller demotion
https://support.microsoft.com/en-us/help/216498/how-to-remove-data-in-active-directory-after-an-unsuccessful-domain-co

Example:

select operation target: list sites

...returns 7 sites correctly

select operation target: select site 0
select operation target: list servers in site
Found 2 server(s) - DC01 not there

select operation target: select site 1
select operation target: list servers in site
Found 1 server(s) - DC01 not there..just the 2008 R2 server I wish to demote

-------------------------------------------------------------------------------

Dssite.msc

The retired 2012 server was seen with no NTDS settings attached.
Manually deleted and confirmed the replication to other DCs...it is removed.


Clean Up Server Metadata
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc816907(v=ws.10)

-------------------------------------------------------------------------------

ADSIEdit and LDP confirm the incorrect value is still seen for the Forest and Domain DNZ application roles:

-------------------------------------------------------------------------------

FixFsmo.vbs script again fails at line 11 char 5

-------------------------------------------------------------------------------

Suggestions on how to clean up the metadata is greatly appreciated.
Goal: retire the 2008 R2 DC

Thank you!

Andy


Andy

Wrong Logon Server

$
0
0

On a new site we have created all of the clients get a logon server for a different site. B

In ADSS the subnet is setup and assigned to the correct site.

I looked through DNS and everything seems to be ok and the kerberos dns setting for the site is pointing to the correct dc

If I run nltest /dsgetsite it returns the wrong site

User locked out - Events 1955 and 1083

$
0
0

Just yesterday a user starting having issues logging into a server.  I had them reboot and found they couldn't log in at all.  But it seems sporadic.

After much searching I am seeing the messages below on one of my domain controllers that point to the users object.  These appeared, I suspect around when I attempted change their password because of these issues.  

The DC in question was recently added (with in a month or so).  They are 3 domain controllers running Server 2012R2 domain functional level 2003

    Log Name:      Directory Service
Source:        Microsoft-Windows-ActiveDirectory_DomainService
Date:          7/5/2018 3:28:07 PM
Event ID:      1083
Task Category: Replication
Level:         Warning
Keywords:      Classic
User:          ANONYMOUS LOGON
Computer:      DC04
Description:
Active Directory Domain Services could not update the following object with changes received from the directory service at the following network address because Active Directory Domain Services was busy processing information. 
 
Object:
CN=
Network address:
e3457cb7-5a59-4383-b661-a5266614d890._msdcs.
 
This operation will be tried again later.

Log Name:      Directory Service
Source:        Microsoft-Windows-ActiveDirectory_DomainService
Date:          7/5/2018 3:28:07 PM
Event ID:      1955
Task Category: Replication
Level:         Information
Keywords:      Classic
User:          ANONYMOUS LOGON
Computer:      Description:
Active Directory Domain Services encountered a write conflict when applying replicated changes to the following object. 

Object: 
CN=,OU=,DC=,DC=com 
Time in seconds: 


Event log entries preceding this entry will indicate whether or not the update was accepted. 

A write conflict can be caused by simultaneous changes to the same object or simultaneous changes to other objects that have attributes referencing this object. This commonly occurs when the object represents a large group with many members, and the functional level of the forest is set to Windows 2000. This conflict triggered additional retries of the update. If the system appears slow, it could be because replication of these changes is occurring. 

User Action 
Use smaller groups for this operation or raise the forest functional level to Windows Server 2003.


Any script to backup the Group policy objects

$
0
0
Is there any script to backup all the Group Policy Objects in a domain and generate a report?

RESET ADMINISTRATOR ACCOUNT PASSWORD

$
0
0

Hi,

Just want to ask on what should i consider before resetting the password for the account of Administrator in a domain.

Should there any be affected roles, services, etc.?

Thanks.



dcdiag error

$
0
0

Hello,

I'm getting ready to do an FRS to DFSR migration. My new domain controllers are now on Server 2012 R2 and I've raised the functional level to it. When I run a dcdiag /e /c I see the following errors:

Starting test: VerifyEnterpriseReferences

         The following problems were found while verifying various important DN

         references.  Note, that  these problems can be reported because of

         latency in replication.  So follow up to resolve the following

         problems, only if the same problem is reported on all DCs for a given

         domain or if  the problem persists after replication has had

         reasonable time to replicate changes. 
            [1] Problem: Missing Expected Value

             Base Object: CN=MCPDC2,OU=Domain Controllers,DC=my,DC=domain

             Base Object Description: "DC Account Object"

             Value Object Attribute Name: msDFSR-ComputerReferenceBL

             Value Object Description: "SYSVOL FRS Member Object"

             Recommended Action: See Knowledge Base Article: Q312862

             
            [2] Problem: Missing Expected Value

             Base Object: CN=MCPDC1,OU=Domain Controllers,DC=my,DC=domain

             Base Object Description: "DC Account Object"

             Value Object Attribute Name: msDFSR-ComputerReferenceBL

             Value Object Description: "SYSVOL FRS Member Object"

             Recommended Action: See Knowledge Base Article: Q312862

             
            LDAP Error 0x5e (94) - No result present in message. 
         ......................... MCPDC2 failed test

Can anyone give me some insight on how to fix this before I proceed with the migration? Thanks.


Domain admin account keeps locking

$
0
0

Hello All, 

I have a standard account and a DA account for administrative tasks and out of no where my DA account gets locked on different servers that i'm not even on.  The security event logs on those server don't specify much info but we do have manageEngine ad audit which just tells me that it's locked and the cause was a specific server.  How do I find out the cause of why my DA account keeps getting locked?

We have a cyber team so I don't believe it's anything malicious, I'm also new to this company and didnt set up any services with my account.  What is a good way to troubleshoot this?

Thanks,

NoObjectInGetMember Error when issuing (Get-ADReplicationSite -Identity "My-Site-Name").ReplicationSchedule | Get-Member

$
0
0

I need help.

I am running PowerShell v 5.1

Reading the following link, I should be able to output the current AD NTDS schedule for all my AD sites. However, I get an error.

Making Sense of Replication Schedules in PowerShell

When I run the following PowerShell command, I get the correct out.

Get-ADReplicationSite -Identity "My-Site-Name"

So, I ran the following command.  I also received the correct output.

Get-ADReplicationSite -Identity "My-Site-Name" | Get-Member

However, when I run the following command, I get an error.

Command:

(Get-ADReplicationSite -Identity "My-Site-Name").ReplicationSchedule | Get-Member

Error:

Any help would be appreciated

Thank you,

Bulk removal of Published certificate info from users properties.

$
0
0

Hello all ,

 

I am trying to remove usercertificate and usersmimecertificate value from users properties but facing an issue ....below is the script :::

 

  $users = get-content "c:\input.txt"  

                foreach($usersam in $users)

                {

                                $Searcher = new-object DirectoryServices.DirectorySearcher

                                $Root = [ADSI]("LDAP://" + "DC=guitar,DC=intra")

                                $scope = "subtree"

                                $Filter = "(&(objectclass=user)(samaccountname=" + $usersam + "))"

                                $Searcher.SearchScope = $Scope

                                $Searcher.Filter = $Filter

                                $Searcher.SearchRoot = $Root

                                $accnt = $Searcher.Findone()

 

                                if($accnt -ne $null)

                                {

                                $userdn = $Objuser.properties.distinguishedname

                                $user= New-Object DirectoryServices.DirectoryEntry ("LDAP://kingfisher.guitar.intra:389/$userdn")

                                $User.Putex(1,"userCertificate",0)

                                $User.Putex(1,"userSmimeCertificate",0)

                                $user.setinfo() 

 $userdn

                                }

                }

I am getting following Error :::

 

The following exception occurred while retrieving member "Putex": "Unknown error (0x80005000)"

At C:\Users\Administrator.WIN-B91ISTRF9UO\Desktop\removeattribute.ps1:17 char:44

+                                 $User.Putex <<<< (1,"userCertificate",0)

    + CategoryInfo          : NotSpecified: (:) [], ExtendedTypeSystemException

    + FullyQualifiedErrorId : CatchFromBaseGetMember

 

The following exception occurred while retrieving member "Putex": "Unknown error (0x80005000)"

At C:\Users\Administrator.WIN-B91ISTRF9UO\Desktop\removeattribute.ps1:18 char:44

+                                 $User.Putex <<<< (1,"userSmimeCertificate",0)

    + CategoryInfo          : NotSpecified: (:) [], ExtendedTypeSystemException

    + FullyQualifiedErrorId : CatchFromBaseGetMember

 

The following exception occurred while retrieving member "setinfo": "Unknown error (0x80005000)"

At C:\Users\Administrator.WIN-B91ISTRF9UO\Desktop\removeattribute.ps1:19 char:46

+                                 $user.setinfo <<<< () 

    + CategoryInfo          : NotSpecified: (:) [], ExtendedTypeSystemException

    + FullyQualifiedErrorId : CatchFromBaseGetMember

 

The following exception occurred while retrieving member "PSComputerName": "Unknown error (0x80005000)"

    + CategoryInfo          : NotSpecified: (:) [format-default], ExtendedTypeSystemException

    + FullyQualifiedErrorId : CatchFromBaseGetMember,Microsoft.PowerShell.Commands.FormatDefaultCommand

 

___________________________________________________________________________________________________________________________________________________________________________________________________________________________

PS C:\Users\Administrator.WIN-B91ISTRF9UO> C:\Users\Administrator.WIN-B91ISTRF9UO\Desktop\removeattribute.ps1

The following exception occurred while retrieving member "Putex": "Unknown error (0x80005000)"

At C:\Users\Administrator.WIN-B91ISTRF9UO\Desktop\removeattribute.ps1:17 char:45

+                                 $Users.Putex <<<< (1,"userCertificate",0)

    + CategoryInfo          : NotSpecified: (:) [], ExtendedTypeSystemException

    + FullyQualifiedErrorId : CatchFromBaseGetMember

 

The following exception occurred while retrieving member "Putex": "Unknown error (0x80005000)"

At C:\Users\Administrator.WIN-B91ISTRF9UO\Desktop\removeattribute.ps1:18 char:45

+                                 $Users.Putex <<<< (1,"userSmimeCertificate",0)

    + CategoryInfo          : NotSpecified: (:) [], ExtendedTypeSystemException

    + FullyQualifiedErrorId : CatchFromBaseGetMember

 

The following exception occurred while retrieving member "setinfo": "Unknown error (0x80005000)"

At C:\Users\Administrator.WIN-B91ISTRF9UO\Desktop\removeattribute.ps1:19 char:47

+                                 $users.setinfo <<<< () 

    + CategoryInfo          : NotSpecified: (:) [], ExtendedTypeSystemException

    + FullyQualifiedErrorId : CatchFromBaseGetMember

 

 

Any help is appreciated ...

 

 

thanks again.

Unable to enable AD Recycle bin feature, Server 2016

$
0
0

Good day all, I am having difficulty enabling the recycle bin feature. From what I gathered recycle bin was enable in the past but during upgrade from 2008 and 2016, we received error that the recycle bin feature could not be found in active directory. 

I have gone majority of guides on how to enable recycle bin. Using the Active Directory Administrative Center, enable recycle bin is greyed out. However when trying command under power shell it states that Object Recycle bin cannot be found.

Example:

PS C:\WINDOWS\system32> Enable-ADOptionalFeature 'Recycle Bin Feature' -Scope ForestOrConfigurationSet -Target 'domain.com' -server dc1

Error:

Enable-ADOptionalFeature : Cannot find an object with identity: 'Recycle Bin Feature' under: 'CN=Configuration,DC=domain,DC=com'.
At line:1 char:1
+ Enable-ADOptionalFeature 'Recycle Bin Feature' -Scope ForestOrConfigu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Recycle Bin Feature:ADOptionalFeature) [Enable-ADOptionalFeature], ADIdentityNotFoundException
    + FullyQualifiedErrorId : ActiveDirectoryCmdlet:Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException,Microsoft.ActiveDirectory.Management.Commands.EnableADOptionalFeature

OR

PS C:\WINDOWS\system32> Enable-ADOptionalFeature –Identity 'CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=my,DC=domain,DC=name' –Scope ForestOrConfigurationSet –Target 'domain.com'

Error:

Enable-ADOptionalFeature : Cannot find an object with identity: 'CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=my,DC=domain,DC=name' under:
'CN=Configuration,DC=domain,DC=com'.
At line:1 char:1
+ Enable-ADOptionalFeature –Identity 'CN=Recycle Bin Feature,CN=Optiona ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (CN=Recycle Bin ...=domain,DC=name:ADOptionalFeature) [Enable-ADOptionalFeature], ADIdentityNotFoundException
    + FullyQualifiedErrorId : ActiveDirectoryCmdlet:Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException,Microsoft.ActiveDirectory.Management.Commands.EnableADOptionalFeature

Also using ADSI editor, under CN=Partitions msDS-EnabledFeature field is empty.

Any help or advice would be greatly appreciated. We will probably have to contact microsoft support, but wanted to check here first. 

Imported DC into new HyperV Host gives Public Network.

$
0
0

Hi everyone.

Can I just vent and say NLA is a pain in the ass! Why can't you alter it!!!

Anyway, back to my issue.

I have a Windows 2012r2 HyperV Host with a single DC VM. I have shutdown the VM and exported it, then imported the VM onto a different HyperV Hosts (still 2012r2) in for me to perform some testing.

The export and import went without a hitch, and when I logged into the VM on the new hosts, the network was connected with a domain profile bearing the domain name. everything looked perfect. I tried to open AD and got the error message...

Naming information cannot be location because:
The specified domain either does not exist or could not be contacted.
Contact your system administrator to verify that your domain is properly configured and is currently online.

So I rebooted the server just to ensure everything came up correctly. On reboot, the DC network changed from Domain to Public.

I have checked every single solution I can find. I have ensured DNS is up and running and that the primary DNS on the network is the same as the IP of the server. I have via powershell changed the profile from public to private, I have gone through the registry and followed changes there. stopped and restarted NLA, disabled and enabled the network. All of which end the same bloody problem. Public network no domain. I've even disabled the firewall completely and set the dns prefix to the domain and still nothing.

There are probably other steps I've found via Google that I'm forgetting but this is frustrating. 

has anyone had this exact same issue with a DC being moved from one Host to another?

This is driving me nuts, there should be an option to select the network profile.

any help appreciated. 

Paul

gpresult /R vs Get-ADPrincipalGroupMembership

$
0
0

I'm tying to understand the output differences between the following commands:

  • PowerShell: Get-ADPrincipalGroupMembership user | format-table -property name
  • Windows 10 command prompt: gpresult /R

gpresult /R produces many more records than Get-ADPrincipalGroupMembership. I assume these are "Distribution Groups". However, gpresult /R doesn't seem to pick up some domain specific groups (e.g. Everyone, Remote Desktop Users, etc.) as well as other security groups picked up by Get-ADPrincipalGroupMembership. 

I need a command that will, for a given user, provide a complete list of all security groups, distribution groups, and domain-specific groups. 

Suggestions? 

    what is the use of default task schedule

    $
    0
    0

    what are the use of default task schedule and a default task schedule of the single profiler?


    Abp


    send a message to all domain users over GP

    $
    0
    0
    i know this is an old thing, users deleting any email sent from IT, so i want to send a system message, is that still available. the pop up that appears to all users

    PasswordSettingsContainer deleted

    $
    0
    0
    In ADSI-Edit we can't see the CN=Password Settings Container anymore. So we can't create Fine-Grained Password Policies in AD. Is there a way how to rebuild/restore the Password Settings Container?

    Password settings container in AD deleted

    $
    0
    0
    In ADSI-Edit we can't see the CN=Password Settings Container anymore. So we can't create Fine-Grained Password Policies in AD. Is there a way how to rebuild/restore the Password Settings Container?

    How to use msds-memberoftransitive with multi-domain forest?

    $
    0
    0

    Hi all,

    Have a multi-domain forest: acme.com and child.acme.com. For users in this forest, would like to get direct and transitive(nested) group membership using LDAP interface. After looking at available options zeroed on using msds-memberoftransitive attribute as that has distinguished names of all groups having user as member.

    Question 1:

    User say user1 from acme.com can be member of Universal, Global and Domain Local groups of acme.com and Universal and Domain Local groups of child.acme.com.  As expected, universal groups in one domain can have membership in Domain local groups of other domain.

    With this kind of membership, does msds-memberoftransitve store distinguished names of all Universal, Global, and Domain Local groups having user as member(both direct and thru nested groups)?

    Question 2:

    What is the right way to read msds-memberoftransitive? Should LDAP bind be to Domain Controller of user domain Or Global Catalog?

    In my lab set-up, by connecting to Domain Controller of either domain, not getting the complete list of groups. So, is Global Catalog the only source to read msds-memberoftransitive?

    From https://msdn.microsoft.com/en-us/library/dn410792.aspx?ppud=4, SystemFlags for attribute indicate it's not replicated(systemFlags: FLAG_ATTR_NOT_REPLICATED | FLAG_ATTR_IS_CONSTRUCTED |  FLAG_ATTR_IS_OPERATIONAL | FLAG_SCHEMA_BASE_OBJECT). Guess, by this, it means the attribute msds-memberoftransitive is not available with Global Catalog. Please correct if I am wrong

    Thanks,

    Lokesh

    Server 2012 DC Promotion Bug

    $
    0
    0

    Hi Technet,

    Last night I followed Microsoft Documentation to install the Directory Services role and then promoted a Server 2012 (Data Center) server to a Domain Controller in my environment.  The role installation completed normally, and I was able to complete the promotion and reboot.  Following a reboot, everything seems to be working 100% normally - but when opening Server Manager I noticed something strange:

    Server Manager still says that I need to Promote the server to a Domain Controller.  Even after additional reboots it still says this.

    Meanwhile, Directory Services seems to be working perfectly on the server, and it's replicating correctly to all other DCs in my environment.  No errors in event log on this server, or on other DCs in my environment related to this server.  I am able to connect to AD Users and Computers on the new DC as well as other directory services snap-ins and they seem to be working properly as well - changes made using the snap ins on this server replicate to my other DCs and vice versa.  

    Specifics:
    New DC:  Server 2012 Data Center Edition, current Windows Updates.
    All other DCs:  Server 2008R2 SP1
    DFL:  2008
    FFL:  2003
    All FSMO roles still on one of my 2008R2 DCs

    At this point I'm not sure what to do except ignore this and chalk it up to a bug, but would love to hear from anyone else who has seen and perhaps resolved this, or from MS themselves for suggestions.  I haven't been able to find any accounts from other people with this issue.  I suppose I could run the promotion from server manager again and see what happens, but I'm hesitant to do this as everything appears to be working, and don't want that to result in damage / corruption / other issues in my existing AD Structure.

    Any assistance with this would be greatly appreciated.

    Keith Kelly
    Systems Administrator
    Easter Seals UCP NC
    keith.kelly@eastersealsucp.com

    Viewing all 31638 articles
    Browse latest View live


    <script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>