Tag Archives: ADS

Find existing UPN in Forest

A userPrincipalName (UPN) must be unique in a Active Directory Forest. To check for an existing UPN use the following lines. The script expects that all DC’s within the Root Domain are GC enabled . View Code PS11 2 3 … Continue reading

Posted in Information Technology | Tagged , , | Comments Off on Find existing UPN in Forest

Force replication on all domain controller of a domain

The following line searches for all Domain Controllers of a Domain . Then it filters some Computers by IP (10.10.10.*) to eliminate RODCs and finally forces replication on each remaining Domain Controller. View Code PS11 2 $Domain = "Contoso.com" Get-ADDomainController … Continue reading

Posted in Information Technology | Tagged , , | Comments Off on Force replication on all domain controller of a domain

Get Domain from distinguished Name

Get Domain from FQDN: get-domfqdn “CN=Test,OU=Orgunit,DC=contoso,DC=test” will result in contoso.test   function get-domfqdn ($fqdn)  {  $afqdn= $fqdn.split(“,”)  $first = 0  $Dom=””  foreach ($pfqdn in $afqdn)   {   If ($pfqdn.contains(“DC=”) -eq $true)    {    If ($first -eq 1)     {            $Dom = $Dom+”.” … Continue reading

Posted in Information Technology | Tagged , , | Comments Off on Get Domain from distinguished Name

SCOM Domain Controller greyed out

Possible problems are: 1. HSLockdown has SYSTEM in denied list. – run : HSlockdown <ManagementGroupName> /R “NT AUTHORITY\SYSTEM” 2. Operations Manager Event log shows Error  Source: Health Service Script  Event ID: 10  Message: AD MP DC Local Discovery : Active … Continue reading

Posted in Information Technology | Tagged , , | Comments Off on SCOM Domain Controller greyed out

MomADAdmin error in Child Domain

MomADAdmin is not extending Active Directory on Child domains. The problem occurs in a environment where SCOM is installed in one domain monitoring other domain. Within SCOM the following error is shown: MomADAdmin not run To successful run momadadmin you … Continue reading

Posted in Information Technology | Tagged , , | Comments Off on MomADAdmin error in Child Domain