Can’t add Server to Exchange 2016 DAG

Error:

The following servers in the Windows Failover Cluster are not in Active Directory: Exch-DR-01. This is usually the result

of an incomplete membership change (add or remove) of the database availabilty group.

 

PS C:\Windows\system32> Get-ClusterNode

Name                 ID    State
—-                 —    —–

Exch-DR01            6     Up
Exch-DR-01           1     Down
Exch-Main01          5     Up
Exch-Main-01         2     Up
Exch-Main02          4     Up
Exch-Main-02         3     Up

PS C:\Windows\system32> Get-ClusterNode -Name “Exch-DR-01”

Name                 ID    State
—-                 —    —–

Exch-DR-01           1     Down

PS C:\Windows\system32> Get-ClusterNode -Name “Exch-DR-01” | Remove-ClusterNode

Remove-ClusterNode

Are you sure you want to evict node Exch-DR-01?

[Y] Yes  [N] No  [S] Suspend  [?] Help (default is “Y”): y

 

Advertisements
Posted in Uncategorized | Leave a comment

This task does not support recipients of this type. The specified recipient ……

While creating new batch to migrate a mailbox , you get this error :

This task does not support recipients of this type. The specified recipient MyDomain.com/Users/Migration.8f3e7716-2011-43e4-96b1-aba62d229136 is of type UserMailbox. Please make sure that this recipient matches the required recipient type for this task.

If your Run the powershell command:

Enable-Mailbox -Arbitration -Identity “Migration.8f3e7716-2011-43e4-96b1-aba62d229136”

You will have the below error :

This task does not support recipients of this type. The specified recipient

MyDomain.com/Users/Migration.8f3e7716-2011-43e4-96b1-aba62d229136 is of type UserMailbox. Please make sure that

this recipient matches the required recipient type for this task.

+ CategoryInfo : InvalidArgument: (MyDomain.com…b1-aba62d229136:RecipientIdParameter) [Enable-Mailbo

x], RecipientTaskException

+ FullyQualifiedErrorId : [Server=EXCH-MAIN-02,RequestId=6d6e076f-c1ff-43c3-9ae7-a07e9d49babb,TimeStamp=6/30/2016

8:07:07 AM] [FailureCategory=Cmdlet-RecipientTaskException] 2383F4,Microsoft.Exchange.Management.RecipientTasks.En

ableMailbox

+ PSComputerName : exch-main-02.MyDomain.com

You try to run the relative powershell command :

Set-Mailbox “Migration.8f3e7716-2011-43e4-96b1-aba62d229136” -Arbitration -Management:$true

Database is mandatory on UserMailbox.

+ CategoryInfo : NotSpecified: (MyDomain.com…b1-aba62d229136:ADObjectId) [Set-Mailbox], DataValidati

onException

+ FullyQualifiedErrorId : [Server=EXCH-MAIN-02,RequestId=6d969971-61e7-4ad6-ada4-e8b563b2ff4b,TimeStamp=6/30/2016

8:08:24 AM] [FailureCategory=Cmdlet-DataValidationException] 25FBB8DA,Microsoft.Exchange.Management.RecipientTasks

.SetMailbox

+ PSComputerName : exch-main-02.MyDomain.com

Database is mandatory on UserMailbox.

+ CategoryInfo : NotSpecified: (MyDomain.com…b1-aba62d229136:ADObjectId) [Set-Mailbox], DataValidati

onException

+ FullyQualifiedErrorId : [Server=EXCH-MAIN-02,RequestId=6d969971-61e7-4ad6-ada4-e8b563b2ff4b,TimeStamp=6/30/2016

8:08:24 AM] [FailureCategory=Cmdlet-DataValidationException] 44C49AF9,Microsoft.Exchange.Management.RecipientTasks

.SetMailbox

+ PSComputerName : exch-main-02.MyDomain.com

To resolve it , you have to re-home the mailbox , sounds like your Migration Mailbox doesn’t belong to a DB for some previous activities:

Set-Mailbox -Arbitration -Identity “Migration.8f3e7716-2011-43e4-96b1-aba62d229136” –Database “Apps”

Set-Mailbox “Migration.8f3e7716-2011-43e4-96b1-aba62d229136” -Arbitration -Management:$true

Now run :

Get-Mailbox –Arbitration

Posted in Uncategorized | 1 Comment

Set all Exchange service Startup type to automatic , start it , or delete it using powershell

get-service | Where {$_.DisplayName –like “Microsoft Exchange*”} | Set-Service -StartupType Automatic

get-service | Where {$_.DisplayName –like “Microsoft Exchange*”} | Start-Service

(Get-WmiObject Win32_Service | Where {$_.DisplayName –like “Microsoft Exchange*”}).Delete()

Posted in Uncategorized | Leave a comment

Exchange 2016 Error Database is mandatory on UserMailbox

Error:

The following error was generated when “$error.Clear();

if ( ($server -eq $null) -and ($RoleIsDatacenter -ne $true) )

{

Update-RmsSharedIdentity -ServerName $RoleNetBIOSName

}

” was run: “Microsoft.Exchange.Data.DataValidationException: Database is mandatory on UserMailbox.

at Microsoft.Exchange.Data.Directory.ADDataSession.Save(ADObject instanceToSave, IEnumerable`1 properties, Boolean bypassValidation)

at Microsoft.Exchange.Data.Directory.Recipient.ADRecipientObjectSession.Save(ADRecipient instanceToSave)

at Microsoft.Exchange.Management.Deployment.UpdateRmsSharedIdentity.Link()

at Microsoft.Exchange.Management.Deployment.UpdateRmsSharedIdentity.InternalProcessRecord()

at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__b()

at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)”.

As many sites reported , it’s system mailbox issue , one of my mailboxes was not having a Database , but the server was removed already.

[PS] C:Windowssystem32>Get-mailbox -Arbitration | Format-Table Name, ServerName, Database -Auto

As you see I have an orphaned Mailbox from removed Server , so this Article was helpful

[PS] C:Windowssystem32>Get-mailbox -Arbitration -Identity “FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042” | Disable-Mailbox -ArbitrationMailboxAllowed

 

Posted in Uncategorized | Leave a comment

uninstalling adobe Acrobat via Group Policy – multiple versions / releases

My Problem was:

1- Various installation of Adobe Acrobat.

2- Customer is targeting specific Adobe Acrobat build (11.0.16).

3- If you used below articles will help you to uninstall ANY Acrobat with version 11 regardless of minor build version.

4- I did follow the below articles for releases before 11.

5- For Acrobat 11 I made additional script to remove any 11.0.X , so it will ignore existing already installed 11.0.16 and remove any other minor previous releases:

How-To Deploy Acrobat Reader with GPO

From <https://community.spiceworks.com/how_to/37690-how-to-deploy-acrobat-reader-with-gpo>

How To Deploy Adobe Reader XI (11) through GPO

From <http://www.itninja.com/blog/view/how-to-deploy-adobe-reader-11-xi-through-gpo>

Adobe Reader Uninstall GUIDs

From <http://www.74k.org/adobe-security-updates/uninstall-guid-for-adobe-reader-and-acrobat-versions>

So My WMIC , to use in your login script

wmic product where name=”Adobe Reader XI (11.0.10)” call uninstall /nointeractive

wmic product where name=”Adobe Reader XI (11.0.11)” call uninstall /nointeractive

wmic product where name=”Adobe Reader XI (11.0.12)” call uninstall /nointeractive

wmic product where name=”Adobe Reader XI (11.0.13)” call uninstall /nointeractive

wmic product where name=”Adobe Reader XI (11.0.14)” call uninstall /nointeractive

wmic product where name=”Adobe Reader XI (11.0.15)” call uninstall /nointeractive

wmic product where name=”Adobe Reader XI (11.0.0)” call uninstall /nointeractive

wmic product where name=”Adobe Reader XI (11.0.01)” call uninstall /nointeractive

wmic product where name=”Adobe Reader XI (11.0.02)” call uninstall /nointeractive

wmic product where name=”Adobe Reader XI (11.0.03)” call uninstall /nointeractive

wmic product where name=”Adobe Reader XI (11.0.04)” call uninstall /nointeractive

wmic product where name=”Adobe Reader XI (11.0.05)” call uninstall /nointeractive

wmic product where name=”Adobe Reader XI (11.0.06)” call uninstall /nointeractive

wmic product where name=”Adobe Reader XI (11.0.07)” call uninstall /nointeractive

wmic product where name=”Adobe Reader XI (11.0.08)” call uninstall /nointeractive

wmic product where name=”Adobe Reader XI (11.0.09)” call uninstall /nointeractive

Posted in Uncategorized | Leave a comment

Fixing Exchange 2010 OWA and ECP authentication conflicts.

https://exch-main-02.DOMAIN.com/ecp/?ExchClientVer=15

This error (HTTP 400 Bad Request) means that Internet Explorer was able to connect to the web server, but the webpage could not be found because of a problem with the address.

For more information about HTTP errors, see Help.

https://lyncdude.com/2013/02/07/cannot-access-exchange-contorl-panel-ecp-in-exchange-server-2013/

[PS] C:>Get-OwaVirtualDirectory -Server exch-dr-01 |Set-OwaVirtualDirectory -FormsAuthentication:$False -WindowsAuthentication:$True -WindowsAuthentication:$True

My Exchange 2010:

[PS] C:Windowssystem32>Get-EcpVirtualDirectory -Server exch-dr-01 | Set-EcpVirtualDirectory -FormsAuthentication:$false -WindowsAuthentication:$true -BasicAuthentication:$true

Posted in Uncategorized | Leave a comment

grep to display results with specific search , Results exception with another specific one :)

[ahmad@ahmadcentos ~]$ sudo cat /var/log/messages | egrep “his”

[ahmad@ahmadcentos ~]$ sudo cat /var/log/messages | egrep “his” | grep -v winderful

 

Posted in Uncategorized | Leave a comment

Windows powershell snap in citrix configuration admin v2 is not installed on this computer

After un-installing Citrix powershell SDK , I wasn’t not able to launch my Citrix 7.6 Delivery Controller with this error message:

Windows powershell snap in citrix configuration admin v2 is not installed on this computer

I tried to connect to another DDC , same , in Citrix installation Media there’s a lot of powershell snapins

So I closed the Citrix Studio console , installed all of them , some was only repaired , launching my Citrix Studio was successful.

 

Posted in Uncategorized | 2 Comments

Get virtual machine parent Hyper-v host

Powershell:

(get-item “HKLM:SOFTWAREMicrosoftVirtual MachineGuestParameters”).GetValue(“HostName”)

Or just go to the regedit:

Posted in Uncategorized | Leave a comment

VNX Remote/ Local Protection Suite quick notes!!!

VNX Remote Protection Suite solutions:

VNX MirrorView,

MirrorView/S

MirrorView/S provides synchronous replication over a short distances. Since it’s synchronous solution, the RPO (Recovery Point Objective) is zero. The data flow of MirrorView/S is:

1. Host attached to the primary VNX system initiates a write;

2. The primary VNX replicates the data to the secondary VNX system;

3. The secondary VNX acknowledges the write as complete back to the primary VNX;

4. The primary VNX acknowledges the write as complete back to the host.

It is important to understand the data flow of MirrorView/S. As a consequence the RTT (Round Trip Time) between the two VNX system should be less (or equeal) than 10ms. If the RTT is high, then the host will higher response time, because it will take longer time to acknowledge the write request.

From <http://www.storagefreak.net/2015/04/emc-vnx-mirrorview-introduciton>

MirrorView/A

MirrorView/A provides replication over long distances. It can be used for replication between VNX arrays, where RTT (Round Trip Time) is high, but should not be higher then 200ms. MirrorView Asynchronous works on a periodic update model that tracks changes on the primary side, and then applies those changes to the secondary at a user-determined RPO (Recovery Point Objective) interval.

With MirrorView/A replications, writes are acknowledged back to the host once the primary VNX receives them, which basically gives no impact on the production environment (whereas with MirrorView/S all writes has to be acknowledged by primary and secondary VNX system).

The dataflow of MirrorView/A is:

1. Host attached to the primary VNX system initiates a write;

2. Primary VNX system sends and acknowledge to the host;

3. Primary VNX system tracks the changes and replicates the data to the secondary VNX system using the user-defined RPO;

4. Secondary VNX system receives the data and sends an ack back to the primary VNX.

From <http://www.storagefreak.net/2015/04/emc-vnx-mirrorview-introduciton>

MirrorView/A uses SnapView Snapshot technology for data protection on the primary and secondary systems.

VNX Replicator,

VNX Replicator is an IP-based replication solution that produces a read-only, point-intime copy of a source or production system. The VNX Replication service periodically updates this copy, making it consistent with the production file system

Replicator uses internal checkpoints to ensure availability of the most recent point-in-time copy.

These internal checkpoints are based on VNX SnapSure technology

RecoverPoint/SE Remote Protection

A Data Mover is a component that runs its own operating system. It retrieves data from a storage device and makes it available to a network client. It’s an EMC software feature that enables the grouping of Common Internet File Systems (CIFS) and/or Network File Systems (NFS) environments and servers into virtual containers. Each VDM has access only to the file systems mounted to that VDM, providing a logical isolation between physical Data Movers and other VDMs on the VNX system.

From <http://www.mikes.eu/index.php/home/item/vdm-metrosync-for-vnx.html>

VNX Local Protection Suite solutions:

VNX SnapView creates block-based logical point-in-time views of production information using snapshots and point-in-time copies using clones. Snapshots use only a fraction of the original disk space, while clones require the same amount of disk space as the source.

COFW

The Copy On First Write Mechanism (COFW) uses pointers to track whether data on the source LUN, or in the Reserved LUN Pool. These pointers are kept in SP memory, which is volatile, and could therefore be lost if the SP should fail or the LUN be trespassed. A SnapView feature designed to prevent this loss of session metadata is persistence for sessions (which stores the pointers on the Reserved LUN(s) for the session). All sessions are automatically persistent and the user cannot turn off persistence.

VNX Snapshots create block based logical point-in-time views of production information using snapshot technology. By using a different approach to the way new writes to the production file system are handled, VNX Snapshots provide an improvement to the overall performance and consumes less allocated storage space.

ROW

The technology behind VNX Snapshots. After a snapshot is taken, new writes to the primary LUN are redirected (written) to a new location within a storage pool.

Auto-delete
is a background process that scans the pool for eligible Primary LUNs, Snapshot Mount Points, Consistency Groups, snapshots, and snapshot sets. All eligible expired snapshots are deleted before processing for snapshots with the ‘auto-delete’ option enabled and the expired snapshots are deleted regardless of pool auto-delete thresholds.

Auto-delete is triggered using two independent thresholds

– consumed pool space

– consumed snapshot space.

The process is stopped when the threshold conditions are met, or if no eligible snapshots remain to be deleted or the process is manually stopped.

VNX SnapSure creates logical point-in-time views of production file systems using snapshots. SnapSure uses only a fraction of the original disk space used by the source file system.

RecoverPoint Local Protection
is a synchronous product that mirrors volumes in real time between one or more arrays at a local site. RecoverPoint maintains a history journal of all changes that can be used to roll back the mirrors to any point in time.

Journal Volumes:

The journal volumes hold snapshots of data to be replicated. Each Journal volume holds as many point in time images as its capacity allows, after which the oldest image is removed to make space for the newest.

There are two types of journal volumes:

1- Replica (Copy) Journal(s)

2- Production Journal(s) – this one is more-or-less not used during normal operation, however it is necessery and being used when the relationship is promoted to secondary side.

Repository Volume:

Stores pertinent replication environment information This volume must be seen only by the appliances on the same site as this volume.

Replication volumes:

or Replicas are the production storage volumes and their matching target volumes which are used during replication.

Target volumes must be the same size or larger than the source volumes. Any excess size will not be replicated or visible to the host. This is an important design consideration for heterogeneous storage environments.

Local Replication Remote Replication
SnapView Snapshot COFW MirrorView/A
VNX SnapSure ROW VNX Replicator
Posted in Uncategorized | Leave a comment