WMI is not enabled. After installation check for WMI exceptions for NMM.

You came here because  you were running checkconfig while to verify your sharepoint NMM readiness and received  this error:

WMI_STATUS
Profile: Domain,Private,Public,       Enabled: No
WMI is not enabled.  After installation check for WMI exceptions for NMM.

So you googled a lot and found some recommendations like:

Enable-PSRemoting –force
From <https://technet.microsoft.com/en-us/library/ff700227.aspx>

or

winrm quickconfig
From <https://technet.microsoft.com/en-us/library/ff700227.aspx>

or

Tried to add the remote hosts as trusted:
winrm s winrm/config/client ‘@{TrustedHosts=”SP-SRV,NW-SRV,DataDomain”}’
From <https://technet.microsoft.com/en-us/library/ff700227.aspx>

Then started to check the service if something wrong with it:
Get-Service | Where-Object {$_.name -eq “wmiApSrv”} |ft
Get-WmiObject win32_service | Where {$_.name -like “wmi*”} | Group-Object -Property StartName

Other doubts if you have to add the IPs using ntesh:
S C:\Windows\system32> netsh http add iplisten 127.0.0.1
IP address successfully added
Then verifying and it is OK
PS C:\Windows\system32> netsh http show iplist

or tried to test WMI from the another host in the network , maybe something in between preventing it:
PS C:\> wmic /NODE:”192.168.10.00″ /USER:MyDomain\spdmin” OS GET Name
Enter the password :**************
Name
Microsoft Windows Server 2012 R2 Standard|C:\Windows|\Device\Harddisk0\Partition2

 So ,, my case with the server was a part of the domain and the Group policy disabling the firewall , I excluded the server from this policy , then add in/out rules allowing WMI access into your server, re-run the chcekconfig again and Enjoy 🙂

 

#Networker #NMM #EMC #Backup #SharePoint #ItemPoint

Advertisements
Posted in Uncategorized | Leave a comment

Restoring DB2 database with EMC Networker NMDA

Restoring DB2 database using Networker NMDA is straight forward process: 

1-     Query nsrinfo -X all -n db2 DB2CLST.mydomain.com 
The output will look like:

scanning client `DB2CLST.mydomain.com ‘ for all savetimes from the db2 namespace
version=1,  DB2, objectname=\SALESDB\NODE0000\DB2LOG\ \C0000009_S0007147.LOG, createtime=Sun Mar 25 07:45:28 2018, copytype=BSACopyType_BACKUP, copyId=1521953128.1521953129, restoreOrder=1521953128.1, objectsize=0.0, resourcetype=L,  BSAObjectType_FILE,  BSAObjectStatus_ACTIVE, description=NMDA_v91:DB2_v956:LOG_IMAGE:SALESDB, objectinfo=CMRM:1
version=1,  DB2, objectname=\SALESDB\NODE0000\DB2LOG\ \C0000007_S0007146.LOG, createtime=Sun Mar 25 07:45:22 2018, copytype=BSACopyType_BACKUP, copyId=1521953122.1521953123, restoreOrder=1521953122.1, objectsize=0.0, resourcetype=L,  BSAObjectType_FILE,  BSAObjectStatus_ACTIVE, description=NMDA_v91:DB2_v956:LOG_IMAGE:SALESDB, objectinfo=CMRM:1
version=1,  DB2, objectname=\SALESDB\NODE0000\DB2LOG\ \C0000007_S0007145.LOG, createtime=Sun Mar 25 07:45:03 2018, copytype=BSACopyType_BACKUP, copyId=1521953103.1521953104, restoreOrder=1521953103.1, objectsize=0.0, resourcetype=L,  BSAObjectType_FILE,  BSAObjectStatus_ACTIVE, description=NMDA_v91:DB2_v956:LOG_IMAGE:SALESDB, objectinfo=CMRM:1
version=1,  DB2, objectname=/SALESDB\NODE0000 \DB_BACKUP.20180325074501.1, createtime=Sun Mar 25 07:45:01 2018, copytype=BSACopyType_BACKUP, copyId=1521953101.1521953102, restoreOrder=1521953101.1, objectsize=0.0, resourcetype=database,  BSAObjectType_DATABASE,  BSAObjectStatus_ACTIVE, description=NMDA_v91:DB2_v956:FULL_BACKUP:SALESDB:TEQ, objectinfo=CMRM:1
version=1,  DB2, objectname=/RMDB\NODE0000 \DB_BACKUP.20180324210059.1, createtime=Sat Mar 24 21:00:59 2018, copytype=BSACopyType_BACKUP, copyId=1521914459.1521914460, restoreOrder=1521914459.1, objectsize=0.0, resourcetype=database,  BSAObjectType_DATABASE,  BSAObjectStatus_ACTIVE, description=NMDA_v91:DB2_v956:FULL_BACKUP:RMDB:TEQ, objectinfo=CMRM:1

Take note of (20180325074501) this is the time set you will use later on.
2-     Restore the DB2 Database :
db2 restore db SALESDB load ‘C:\Program Files\EMC NetWorker\nsr\bin\libnsrdb2.dll’ open 3 sessions options @C:\temp\nmda_db2.cfg taken at 20180325074501 into SALESDB

3-     Your roll forward your LOGs to the DB so you can bring it up:
db2 “rollforward db TSTRMDB3 to end of logs and complete”

*** But you may get the below error :
SQL4970N  Roll-forward recovery on database “SALESDB” cannot reach the specified stop point (end-of-log or point-in-time) on database partition(S) “0”. Roll-forward recovery processing has halted on log file “S0007145.LOG”.

Here is why:
1-     Before restoring the DB2 DB with EMC Networker you have to update the DB2 DB with the location of transaction logs:
db2 update db cfg for sample using logarchmeth1 VENDOR:NetWorker_install_dir\nsr\bin\libnsrdb2.dll logarchopt1 @pathname\nmda_db2_tlogs.cfg

2-      You have to take care of few parameters , in my Scenario , I have windows Cluster of 2 DB2 instances, the problem that configuration file was not set properly, to have a successful EMC Networker Backup you have to:
The config file:  nmda_db2_tlogs.cfg , if doesn’t exist create it ,, it should be located under:  C:\Program Files\EMC NetWorker\nsr\apps\config
Also consider setting the below values:
#Name of the pool in networker:
NSR_LOG_VOLUME_POOL =Gold
#Your networker server:
NSR_SERVER =NWServer.domain.com
#your CLUSTER virtual name (application cluster name)
NSR_CLIENT= DB2CLST.mydomain.com
One more important file to update it: nmda_db2.cfg
#your CLUSTER virtual name (application cluster name)
NSR_CLIENT= DB2CLST.mydomain.com
NSR_SERVER =   NWServer.domain.com
#logs ,, important to have for troubleshooting :
NSR_DIAGNOSTIC_DEST = C:\PROGRA~1\EMCNET~1\nsr\apps\logs
NSR_DEBUG_LEVEL = 9

 

P.S.
DB2CLST in my case is not windows cluster name , it’s the Client Access Name “Services and Applications Name”

Posted in Uncategorized | Leave a comment

Schedule NRU Reports

My main goal was running NRU Report for on weekly basis , move it to a sub-directory in local IIS  & Email it to the team

Task 1 script:
cd C:\NRU600\bin && ./NSR_REPORTER_6.0 -s NWSERVER.domain.com -q “1 WEEKS ago” -graph -D “MM/DD/YYYY” -cfg -noicmp -per_ss_monitor -nooldsession -nodns

 

Task 2 script: “to run after 1 hour at least from the previous one, I didnt manage to combine both , it emails the previous created report”
## Get TOday Date Variable

$WeekdirName = (Get-Date).ToString(‘d.M.yyyy’)

# Copying contents of Generated Report

cp C:\NRU600\Data\index.html C:\NRU600\$WeekdirName\index.html

robocopy C:\NRU600\data\NWSERVER.domain.com C:\NRU600\$WeekdirName\NWSERVER.domain.com /s /e

cd C:\NRU600\$WeekdirName

### E-mail the Report URL

$body = “This is Test E-mail for Network Reporting Tool, if you recieve it then Script is working fine. Week# $(Get-Date -UFormat “%W %B %Y”) URL http://192.168.1.100:8080/$WeekdirName/NWSERVER.domain.com/index.html&#8221;

Send-MailMessage -To “ahmedse@domain.com” -From “ahmedse@domain.com” -Subject “Test3: NRU for the Week: $WeekdirName” -SmtpServer “smtpSRV.domain.com” -Body $body

Ref#

https://onedrive.live.com/?id=root&cid=31646F67127173F0
https://www.facebook.com/NetworkerReportingUtility/?hc_ref=ARQ5tn05e5SNtpCFHt_8VOMBqVysUtOjdQByyNZ2ZHtOy2ivnyBl2qrsOy9pb8zbeAI&fref=nf
https://community.emc.com/thread/167204

 

Posted in Uncategorized | Leave a comment

Getting Policy Information email notification for:
Disabled / Enabled Policies / Workflows & Actions
The reason I had to make it , if you have many networker admin and one of them by mistake disabled an action , and I need to easily follow up these changes at a glance once per week, we missed important backup for that mistake 😦

 
$policy=nsrpolicy policy list
$Status=foreach ($i in $policy) {(nsrpolicy.exe policy display -p Test | Where-Object  { $_.Contains(“policyName”) -or $_.Contains(“workflowName”) -or $_.Contains(“actionName”) -or $_.Contains(“actionEnabled”)  -or $_.Contains(“workflowEnabled”)})}
Send-MailMessage -To alerts@myomain.com -from “ahmed@mydomain.com” -Subject “TEST E-MAIL!!! (Networker Scripted Report) Checking Disabled Policies/WorkFlow or Actions” -SmtpServer mail.localsmtprelay.com -Body ($Status  | out-string )

#EMC #Networker #Backup

Posted in Uncategorized | Leave a comment

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

 

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