Friday, 22 March 2019

GPresult /r does not show computer settings

Today i have to test a new GPO settings, for testing on client machine i ran the GPResult /r command but found that there were no computer settings in the result of GPResult /r command i which i was more interested as the GPO was applied on computer Object.
So i was trying different way, and one was to open the Command prompt with Administrator rights.
So after start the command prompt with Administrator rights and running the GPResult /r i got the required computer settings in the result/output.

 

Wednesday, 13 March 2019

Windows updates failing with error 80072ee2 on Windows Server 2008 R2


Today i faced an issue that i was unable to install windows updates on windows server 2008 R2.  was getting this "80072ee2" error code in windows updates error. 


ERROR Code:     80072ee2

Description:       above error was generated during windows updates

Solution:             Re-register WU DLLs - Run the following commands on elevated cmd.exe and re-register Windows update DLLs.

                                regsvr32 oleaut32.dll

                                regsvr32 jscript.dll

                                regsvr32 vbscript.dll

                                regsvr32 softpub.dll

                                regsvr32 msxml.dll

                                regsvr32 wintrust.dll

                                regsvr32  initpki.dll

                                regsvr32 cryptdlg.dll

P.S: My issue was resolved after registering above *. dll . please note that there may be some other solutions as well and should be resolved accordingly.

Thursday, 14 February 2019

Resolved: Unable to connect Exchange mangement shell

Environment:
Exchange Server 2013 CU20 fresh installed with multi role (mailbox and CAS) on a Windows server 2012 R2.

ISSUE:
I was unable to connect Exchange management shell.

Error: While trying to open/connect Exchange management shell getting the following errors.

VERBOSE: Connecting to mbxcas.pt.test.com.
New-PSSession : [mbxcas.pt.test.com] Connecting to remote server mbxcas.pt.test.com failed with the following
error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
   gTransportException
    + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
VERBOSE: Connecting to mbxcas.pt.test.com.
New-PSSession : [mbxcas.pt.test.com] Connecting to remote server mbxcas.pt.test.com failed with the following
error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
   gTransportException
    + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
VERBOSE: Connecting to mbxcas.pt.test.com.
New-PSSession : [mbxcas.pt.test.com] Connecting to remote server mbxcas.pt.test.com failed with the following
error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
   gTransportException
    + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
VERBOSE: Connecting to mbxcas.pt.test.com.
New-PSSession : [mbxcas.pt.test.com] Connecting to remote server mbxcas.pt.test.com failed with the following
error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
   gTransportException
    + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
VERBOSE: Connecting to mbxcas.pt.test.com.
New-PSSession : [mbxcas.pt.test.com] Connecting to remote server mbxcas.pt.test.com failed with the following
error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
   gTransportException
    + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
Failed to connect to an Exchange server in the current site.
Enter the server FQDN where you want to connect.: mbxcas.pt.test.com
VERBOSE: Connecting to mbxcas.pt.test.com.
New-PSSession : [mbxcas.pt.test.com] Connecting to remote server mbxcas.pt.test.com failed with the following
error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
   gTransportException
    + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
[PS] C:\Windows\system32>
Resolutions:

There was time difference of 12 minutes between the Exchange Server and the DC, after correcting/synchronizing the time on exchange server, the issue was resolved.

Tuesday, 29 January 2019

Resolved: something went wrong. You don't have permission to open this mailbox

I was trying to assign full admin rights on mailbox "A" to mailbox "B" in Exchange Server 2013, so will access /owa with mailbox credentials of mailbox "B" and then access mailbox "A" in it. But i faced the following issue while accessing in OWA.

something went wrong


You don't have permission to open this mailbox.

X-ClientId: PGCP - 0PQE - SIGS - FGVSWBQ X-OWA-Error: SDServerErr;Microsoft.Exchange.Clients.Owa2.Server.Core.OwaExplicitLogonException X-OWA-Version: 15.0.1367.3 X-FEServer: MBCS01 X-BEServer: mbcs03.domain.com Date: 1/29/2019 3:34:26 PM
Even that full access was assigned on mailbox "A" to mailbox "B".
in my case mailbox "B" had full admin access but was also having other management roles like
  1. Discovery management
  2. Server management
  3. recipient management
  4. etc.
So i just create another mailbox "Z" and assign the full admin rights on mailbox "A" to mailbox "Z" and then i was able to access Mailbox "A" in /owa of mailbox "Z"

So it means we should create a simple mailbox and assign full admin rights. then it should work

Search mailboxes in Exchange server 2013 and delete or move the content to another mailbox

1)
To Search email between 2 specific dates and move the content to another mailbox.
First lets create the following 3 variables and put the values as per your requirements

$Fromdate ="10/01/2018";
$Todate = "01/20/2019";
$date="Received:"+$Fromdate+".."+$Todate

Search-Mailbox v.hili@domain.com -SearchQuery "$date" -TargetMailbox khaaz@domain.com -TargetFolder ToFromHilal

2
Tested: to copy data from one mailbox to another one.
Search-Mailbox v.hil@domain.com -SearchQuery 'Subject:"RDP"' -TargetMailbox khaaz@domain.com -TargetFolder tohilal

3
Tested: To Delete content from a mailbox of a subject.
Search-Mailbox -Identity "khaaz@domain.com" -SearchQuery 'Subject:"sook sook"' -DeleteCon
tent

4
To Search all mailboxes that contain the words country OR province OR districts, and copy the result to khaaz@domain.com mailbox in Country Folder
Get-Mailbox | Search-Mailbox -SearchQuery 'country OR province OR districts' -TargetMailbox khaaz@domain.com -TargetFolder "AllMailboxes-Country" -LogLevel Full

Friday, 30 November 2018

Could not open a connection to SQL server

I was getting the following error while login to SQL server 2008

Getting the following error:

Cannot connect to..+ additional information: +
A network-related or instance-specific error occurred while establishing a connection to SQL server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes provide, error: 40- could not open a connection to SQL server)(Microsoft SQL Server, Error: 2)


Resolution:
While verifying the Services i found that the MSSQLSERVER service was stopped, after starting this service my issue was resolved.