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

Run an app with admin's right

$
0
0

Hi.....i have an app on my client's system

that needs admin's right for starting....

 I know that i can use RunAS app but

i'm looking for another way in windows ((((10))))....also I've tried

Task Scheduler and creating shortcut but.....they didn't work 

thank a lot..:)


Need help renew domain controller authentication certificate.

$
0
0
Need help renew domain controller authentication certificate. 

AD Account expiry notification to User's Manager

$
0
0

Hi All,

I am trying to automate this notification in our organization where a User's Manager receives a notification regarding the expiration of User's account. In case the Manager field is empty or Manager is disabled, the mail is sent to User informing the expiry and asking to update correct manager.

I tested the below script but the 'else' part does not works, I was able to receive mails where User's manager is Valid. (Invalid Manager= Disabled/empty)

Please help to get this work.

Import-Module ActiveDirectory
$From = "itservicedesk@xyz.com"

$SMTPServer = "mailrelay.xyz.com"
$startDate = Get-Date
$endDate = $startDate.AddDays(30)
$Users = Get-ADUser -Filter {AccountExpirationDate -gt $startDate -and AccountExpirationDate -lt $endDate -and enabled -eq 'True'} -Properties SamAccountName, name, mail, AccountExpirationDate, Manager


Foreach($User in $Users)
    {
        $ManagerID = $null
        $active = $null
        $ManagerID = Get-ADUser $User.Manager -Properties SamAccountName | select SamAccountName
        $active = Get-ADUser $User.Manager -Properties enabled | select enabled
        $ManagerName = Get-ADUser $User.Manager -Properties GivenName | select GivenName
        If 
            ($ManagerID -ne $null -and $active -ne "False") 
                    {
                            $Manager = Get-ADUser $User.Manager -Properties EmailAddress
                            $ManagerName = Get-ADUser $User.Manager -Properties GivenName
                            $To = $Manager.EmailAddress
                            $CC = $User.mail
                            $To = "myemail@self.com" #for testing
                            $Subject = "Network Account Expiration Notification for $($User.Name) ($UserID)"
                            $Body = "Dear $($ManagerName.GivenName),
The Network User Account of $($User.Name) will be expiring on $($User.AccountExpirationDate). The expiration of the account would mean that the user will not be able to login to network.

If the account is no longer required then kindly raise an Off-boarding request.
Off-boarding link: https://

If the account is still required, kindly use the below request template to extend the account’s expiration date.
Extension Request link: https://

For further assistance, please contact IT Service Desk.

P.S: This is an automated notification, please do not reply to this email.

Thanks & Regards,
IT Service Desk"
Send-MailMessage -To $To -From $From -Subject $Subject -SmtpServer $SMTPServer -Body $Body -Port 25
                    }  
        Else
                    {
                    #$To = $User.mail
                    $To = "myemail@self.com" #for testing
                    $Subject = "Network Account Expiration Notification for $($User.Name) ($UserID)"
                    $Body = "Dear $($User.GivenName),
Your Network User Account will be expiring on $($User.AccountExpirationDate). The expiration of the account would mean that you will not be able to login to network.

If the account is still required, kindly ask your manager to request for extension. Our systems do not have your current manager information and hence the email is being sent to you.
Extension Request link: https://

For further assistance, please contact IT Service Desk.

P.S: This is an automated notification, please do not reply to this email.

Thanks & Regards,
IT Service Desk"
Send-MailMessage -To $To -From $From -Subject $Subject -SmtpServer $SMTPServer -Body $Body -Port 25
                    }


    }

Forest Trust with multiple sites

$
0
0

Hi everyone
Please give me advice

The situation

I have two forests separated by firewall
I need to setup one way trust from FOREST-A to FOREST-B
FOREST-A is resource forest where resides web server - intranet-portal.contoso.com
FOREST-B is users forest
Users from FOREST-B should be able to authtenticate with web server intranet-portal.contoso.com using Kerberos (SSO)

The question about trust

Should all DCs from FOREST-A be able to comminicate with all DCs from FOERST-B (see picture VARIANT-1 green arrows Ports(Trust))?
Or i can restrict communication between DCs from SITE-A-1 and DCs from SITE-B-1(see picture VARIANT-2 green arrows Ports(Trust))?


How to manually remove a duplicate TRUST_ACCOUNT from active directory?

$
0
0

Hi,

I have a user account in my AD which is a TRUST_ACCOUNT , and also is a duplicate, I mean it has DN in the form of :

CN={DomainName}$\0ACNF:{GUID},CN=Users,DC=XXXXXX,DC=com

how can I remove this object?

I tried to generate a fake trust and remove the trust (described here:https://www.privalnetworx.de/active-directory-interdomain-trust-account-phantom) but that could not delete the object.

I get Error:

ldap_delete_s(ld, "CN={DomainName},CN=Users,DC=XXXXXX,DC=com");
Error: Delete: Insufficient Rights. <50>
Server error: 00000005: SecErr: DSID-031A1190, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0

Error 0x5 Access is denied.

Force removal of failed DC--cleanup

$
0
0

Hi there. We had a Server 2012 R2 domain controller. It's a HyperV VM and the host it was running on had a serious hardware failure that resulted in the VM being corrupted and blue screening even in safe mode. No luck with safe mode etc or the Directory Services repair options. So we did a force removal of the DC in AD. This particular DC had no FSMO roles and wasn't a file server, so there wasn't much needed to recover that we didn't already have from backups. After the host was repaired, we built a new DC VM to replace the dead one and linked it to the same subnet in AD Sites and Services etc. We gave it a different name.

Things appear to be working normally. I ran a number of AD replication tests using Microsoft's AD Replication Status tool and no errors are coming up. I've gone through DNS and removed any references to the dead DC. The dead DC does not show up anywhere in AD Sites and Services.

My question is about NTDSUtil. I know that if you have to force remove a DC, you should clean up the metadata using NTDSUtil. The problem(?) is NTDSutil couldn't find any reference to the failed DC for me to remove. Is there anything left to check? The Microsoft articles I found simply said that if the dead DC couldn't be found there, it may have already been removed.... So does that mean I'm in the clear?

Thanks in advance,

Sir Timbit.

My user account is getting lockout frequently from mac device

$
0
0
I am looking for the steps what steps we can perform if user account getting locked from mac device

What is the reason for creating a .local suffix domain?

$
0
0

Hi, 

I've seen some people create domains with a .local suffix and I was wondering why? 

I know that the domain is non routable, so it's probably as the name suggests local only. Therefore to my understanding it can't be looked up externally and it is private from the internet. But, I tend to create my forest with a routable tld like .com so that it matches with my public registered DNS name. 

The problem with .local is that what happens if you want to use directory sync, or have your users use a .com suffix later on? 

Is it not prudent these days to just use a public .tld suffix when creating your forest? I even think that this is recommended in the ADDS Wizard.  

Thanks 


DC replication issue

$
0
0

Hi All,

When i run the below command against schema database, I could see few deleted DSA entries and these DC's were removed some time back but still exists in this result. Is it normal one or need to cleanup from somewhere?

repadmin /showvector /latency

Also could see two GUID entries as well. Hope these GUID entries are belongs to old DC's.

Change Domain Controller IP address and Host name with Old demoted Domain controller.

$
0
0

Hello Team,

I would like to know whether is it advisable to use old demoted DC IP address and host name to the newly promoted Domain Controller.

And If it is Yes than, what is the Best Practice to do it with Guide?

Both Demoted and new DC have same OS server 2012 OS.

Please advice in this.

Thanks & Regards,

Sapan Shah


Unable to configure WSUS on WIndows server12 r2

$
0
0

Hi Support team,

I have installed a new domain controller in my domain. Installed Windows 2012 R2, install AD DS role. And promote to domain controller.

After finishing the promotion, the server had worked fine but after some time approx 2 month late its give warning message,i  have to configure it but errors remaining same. the warning Post-Deployment configuration is still there, 

How can I avoid that warning and reconfigure it.



Microsoft Remote Desktop unable to connect Code ox104

$
0
0

Hello

I try to connect my Mac to the office with Microsoft Remote Desktop (last version) but can't do it. I receive:

We couldn't connect to the remote PC because the PC can't be found...... Error Code: ox104

I have another Mac which connect easily with the same setup.  Do you know what could be the problem ?

The correct Mac use OSX High Sierra and the one I have problems use OSX Mojave.  Thanks

Deploying LAPS in broken Forest

$
0
0

Hi there, we have implemented LAPS successfully in a single domain TEST environment but have had issues when deploying to a forest.

I believe this is due to replication not working between the sub-domain and the root.  Replication between DC's within the domain is fine.

So back to LAPS, I can see the entry for ms-Mcs-AdmPwd and ms-Mcs-AdmPwdExpirationTime within root and wondered if this could be exported and imported using ldifde....

Initial attempts to import gives the following errors:

An error has occurred in the program
dn: CN=ms-Mcs-AdmPwd,CN=Schema,CN=Configuration,Add error on entry starting on line 1: Unwilling To Perform

The server side error is: 0x20e7 The modification was not permitted for security reasons.
The extended server error is:
000020E7: SvcErr: DSID-03152D2E, problem 5003 (WILL_NOT_PERFORM), data 0

The exported ldif file (domain names removed)

dn: CN=ms-Mcs-AdmPwd,CN=Schema,CN=Configuration,DC=<root>,DC=<com>
changetype: add
objectClass: top
objectClass: attributeSchema
cn: ms-Mcs-AdmPwd
distinguishedName: CN=ms-Mcs-AdmPwd,CN=Schema,CN=Configuration,DC=<root>,DC=<com>
instanceType: 4
whenCreated: 20190821125635.0Z
whenChanged: 20190821125635.0Z
uSNCreated: 61915468
attributeID: 
 1.2.840.113556.1.8000.2554.50051.45980.28112.18903.35903.6685103.1224907.2.1
attributeSyntax: 2.5.5.5
isSingleValued: TRUE
uSNChanged: 61915468
showInAdvancedViewOnly: FALSE
adminDisplayName: ms-Mcs-AdmPwd
oMSyntax: 19
searchFlags: 904
lDAPDisplayName: ms-Mcs-AdmPwd
name: ms-Mcs-AdmPwd
objectGUID:: AaDqLmaexECT9ZzLgHJgkQ==
schemaIDGUID:: RXApA6jLI0OCu6BG7YcuzA==
systemOnly: FALSE
isMemberOfPartialAttributeSet: FALSE
objectCategory: CN=Attribute-Schema,CN=Schema,CN=Configuration,DC=<root>,DC=<com>m
dSCorePropagationData: 16010101000000.0Z
msDS-IntId: -1745476022

So obviously repair replication (not going to be easy) but if anyone could shed some light on importing the objects it would be appreciated.

Thanks


Ports required for an RODC in a DMZ

$
0
0

Hello

I'm about to deploy a Windows 2019 RODC in a DMZ.

Have the port requirements changed since 2008?

https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd728028(v=ws.10)#required-communication-ports

Thanks

ADMT Migration From Windows 2016 Domain to a Windows 2012 Domain

$
0
0
Hello people,
Does anyone has ever performed any migration with ADMT where the source domain and forest were Windows 2016 Mode and the destination domain was Windows 2012?

Is this scenario supported?

Could anyone share your experience?

Thank you in advance.

How to add custom attribute with GUID format to AD schema?

$
0
0

Hi,

I want to add an custom attribute to the ad schema. The attribute is an outside of AD generated GUID (not related to any internal ad attribute like objectGUID). I want to add it to user objects using a dynamically linked auxiliary class.

I tried to use the same definitions for my attribute like the ones objectGUID is defined by in the schema: syntax octet-string with upperRange and lowerRange 16 Bytes. Here is my ldf file I import with ldifde:

# My GUID attribute
# =================

dn: CN=LabA-Guid,CN=Schema,CN=Configuration,DC=X
changetype: ntdsschemaadd
objectClass: top
objectClass: attributeSchema
cn: LabA-Guid
lDAPDisplayName: labAGUID
adminDisplayName: LabA-Guid
adminDescription: LabA-Guid
attributeID: 1.3.6.1.4.1.18228.9999.111
# String(Octet):
attributeSyntax: 2.5.5.10
oMSyntax: 4
rangeLower: 16
rangeUpper: 16
isSingleValued: TRUE
searchFlags: 1
isMemberOfPartialAttributeSet: TRUE
showInAdvancedViewOnly: TRUE
systemOnly: FALSE

dn:
changetype: modify
add: schemaUpdateNow
schemaUpdateNow: 1
-

# Object class
# ============

dn: CN=LabA-Person,CN=Schema,CN=Configuration,DC=X
changetype: ntdsschemaadd
objectClass: classSchema
cn: LabAPerson
lDAPDisplayName: labAPerson
adminDisplayName: LabA-Person
adminDescription: LabA-Person
governsID: 1.3.6.1.4.1.18228.9999.1
objectClassCategory: 3
subclassOf: top
rDNAttID: cn
# mayContain: labAGUID
mayContain: 1.3.6.1.4.1.18228.9999.111
defaultObjectCategory: CN=LabAPerson,cn=Schema,cn=Configuration,dc=X
systemOnly: FALSE

dn:
changetype: modify
add: schemaUpdateNow
schemaUpdateNow: 1
-

This works without errors and I can link the class to a user object and then insert a guid value to "labAGUID" in ADUC. But when I look at the value in ADUC I get a not the usual textual representation for GUIDs like objectGUID is getting (hexadecimal digits with hyphens, like xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) but instead a byte array (\xx\xx\xx\xx\xx\xx\xx\xx\xx\xx\xx\xx\xx\xx\xx\xx).

When I query the attribute in Powershell I also get a byte array. While objectGUID is returned as Guid:

PS C:\Users\Administrator> $user = Get-ADUser tstUser1 -Properties '*'
PS C:\Users\Administrator> $user.ObjectGUID

Guid
----
cb1d10cf-ee28-435f-a6ae-63af3e1dbbdd

PS C:\Users\Administrator> $user.ObjectGUID.GetType()

IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     True     Guid                                     System.ValueType


PS C:\Users\Administrator> $user.labAGUID
207
16
29
203
40
238
95
67
166
174
99
175
62
29
187
221

PS C:\Users\Administrator> $user.labAGUID.GetType()

IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     True     Byte[]                                   System.Array

So it is returned as a byte array. Now I understand that I added a 16 byte octet string attribute to the schema and I should expect a byte array. But objectGUID looks to me the same in the schema. But somehow AD treats it differently. Also there are other predefined attributes which behave like GUIDs.

It seems I'm missing something?

What do I have to change in my attribute definition so that it is treated as a GUID value and not a plain octet string?

Thanks!


There is an Authenticated NTP in Hybrid (Windows NTP Server,Linux NTP Client, Cisco NTP Client) environment?

$
0
0

There is an Authenticated NTP in Hybrid (Windows NTP Server,Linux  NTP Client, Cisco NTP Client) environment? 

A have a CiscoSX20 which supports NTP Keys, to authenticate to NTP Servers and modern Linux RHEL also supports it.

There is an  NATIVE "authenticated" NTP Server in Widows, allowing me to allow only authenticated NTP clients from synching time? (i.e., Linux, cisco, etc)

I´m not talking about kerberos/intra-doain authentication, but insted, hybrid clients being allowed to sync time from Windows, with some sort of security?



Trying to add new DC to current infrastructure, but its showing as Offline in AD Administrative Center, even though it is working correctly.

$
0
0

We currently have two DC's in our structure (Dc01 WS2008r2 and Dc02 Ws2012r2), that are DFS synced.

I'm trying to add a new ws2019 DC to our structure and then decomission the 2008r2 dc.

What I don't understand is why my new server shows as "Offline" in AD Administrative Center.

I can manage our AD through "Sol1" normally, "netdom query fsmo" command shows Sol1 as master in all roles.

Any guesses?

image link: https: // imgur com / a / HWgVVpA (delete spaces)


Suppressed SRV Record

$
0
0

Hi, we have suppressed SRV Record so that client machine won't go to that DC for authentication.Now, what i want to know that, after SRV Suppressed what are the parameters & time it takes to actually starts doing that.

Thanks!


Planning for raising Domain/Forest functional level and roll back plan

$
0
0
We are upgrading the windows domain and forest to Windows 2008 R2 from Windows 2008.
It is a single forest and single domain with no trusts.
There are a lot of read only domain controllers and the replication delta can be 2 hours or so behind according to the repadmin command.
I plan to upgrade the domain first and then force the replication and then do the forest upgrade.
I will be taking backup of the PDC (which has all FSMO roles) before the change.
Any other things to consider before upgrading the domain?
From what I have read the only roll back plan in case of issues is to shutdown all other domain controllers and then restore 1 DC (PDC in my case).
And then demote and re-promote the other domain controllers.
Is that right? Is there any other quicker rollback plan?

And if above is the only rollback plan then my thinking is that I can just VMware snapshot the PDC and revert to snapshot for PDC in case of issues (making sure that all other DCs are demoted and re-promoted as well after that).
Are there any issues with this plan?

Viewing all 31638 articles
Browse latest View live


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