Category Archives: Windows

Fix: No Suitable Directory Servers Found when accessing OWA and ECP

When accessing ECP or OWA on your Exchange server you will be the below Server Error saying that No Suitable Directory Servers Found in Site and connected Sites. On the Event Viewer you will get the error 0x80040a02 (DSC_E_NO_SUITABLE_CDC).

The below solution if for Exchange 2003, 2007, 2010 and 2013. Open the Domain’s Group Policy Management and edit the Default Domain Controllers Policy or your server policy as below.

Computer Configuration
Policies
Windows Settings
Security Settings
Local Policies
User Rights Assignment
Mange auditing and security log
Add ‘Exchange Servers‘ or ‘Exchange Enterprise Servers‘ to that policy.

Restart the Exchange server to apply the computer configuration.

(7)

Fix: Cannot demote server Access is denied

When demoting a server from an existent Active Directory you will be prompted for the credentials with an error saying

The Operation failed because: The attempt at remote directory server to remove directory server was unsuccessful. “Access Denied”.

This issue is due to the fact that the object is set with Protect object against Accidental Deletion

To fix this open Active Directory Sites and Services. Find the server which you are trying to demote and expand it. Right click on NTDS Settings and click on Properties. Click on the Object tab and un-tick the Protect object from Accidental Deletion.

Retry the demotion and it will work. If it doesn’t then check the Active Directory Users and Computers and check if the computer account has the Protect object from Accidental Deletion enabled. Make sure to click on Advanced Features.

(13)

Fix: Azure AD Connect unexpected error on sign in

You setup the domain, verified and you are in the process of configuring the Azure AD Connect Tool, you will be asked to enter the username and password for the tool to connect to the Azure AD.

The connector immediately stops with an error at the first step under the Express/Custom settings page titled “Connect to Azure AD” with the below error.

Unable to validate credentials. An unexpected error has occurred

unexpectederror1

This error most probably will show because you are using a user which ends with @outlook.com and the connect tool will not work with an service-bound Outlook username. To fix this issue and work successfully simply create a new ‘Global Admin’ user on the AD which ends @yourdomain.

In my case this worked like a charm.

 

(1021)

Fix: Windows Server Backup The process cannot access the file

When running Windows Server Backup to another location and you get the error “The process cannot access the file because it is being used by another process”.

Capture

To fix this you would need to look on the backup logs from the location %windir%\logs\windowsserverbackup.

In the error log file you will find

Error in deletion of [C:\System Volume Information\001.dat] while pruning the target VHD: Error [0x80070020] The process cannot access the file because it is being used by another process.

In my case, what I have done is that I deleted all the files in the target folder of the backup, re-run the backup and it worked.

(1425)

How to: Move all FSMO roles on a domain controller

When moving roles, the right way to do it is to view exactly where the roles are at the moment. Firstly to check this one can open the command prompt and use the following command.

Netdom /query FSMO

This will show the roles and who is the owner like below.

C:\Users\Administrator.dom>netdom /query fsmo
Schema master     srv01.mydomain.com
Domain naming master     srv01.mydomain.com
PDC     srv01.mydomain.com
RID pool manager     srv01.mydomain.com
Infrastructure master     srv01.mydomain.com
The command completed successfully.

Now, to change the FSMO owner one must change the settings in the Active Directory Users and Computers, Active Directory Domains and Trusts and Active Directory Schema. This operation would be best to be done on the new server to transfer to.

1. Open the Active Directory Users and Computers and right click on the domain name node, in my case mydomain.com and select Operations Master. Make sure that the entry is the old server on the top dialog box and the new server on the bottom dialog box. Click on the Change button. Switch to the PDC tab and Instrastructure and do the the same operation.

2. Open theActive Directory Domains and Trusts. Right click on the root of the node and select Operations Master. Make sure that the entry is the old server on the top dialog box and the new server on the bottom dialog box. Click on the Change button.

3. Open a command prompt as Administrator and type regsvr32 schmmgmt.dll to register the schema DLL file. Open MMC.EXE and click on File/Add remove Snap-in. Now find the Active Directory Schema from the list. Click on Add and OK. Right-click on the Active Directory Schema node and select Change Active Directory Controller. Select the new server, in this case srv02.mydomain.com. Right-click on the Active Directory Schema node and select Operations Master. Make sure that the entry is the old server on the top dialog box and the new server on the bottom dialog box. Click on the Change button.

If you will run below command, Netdom /query FSMO, you will notice that the roles are now pointing to the new server i.e. srv02.mydomain.com.

 

 

 

(905)

Fix: Blurry text while scrolling on Firefox

One day I have noticed that some text gets blurry while scrolling on Firefox. I have managed to fix this by disabling a feature in Firefox.

Open Firefox
Open a new tab
Enter about:config in the address bar
Click on the “I’ll be careful I Promise” button
Find gfx.content.azure.enabled
Double click on it to set it as false

(1616)

Fix: Can’t connect to printer error 0x0000000a

I encountered the following error after I re-installed a computer from XP to Windows 7. After the installation I went to install a shared printer from another Windows XP and I Get the error “Cant' connect to printer error 0x0000000a“.

To fix this simply:

Open Services.msc
Stop “Print Spool” service
Wait for about 20 seconds
Start the “Print Spool” service
Try to add the printer again

There you have it, Swish it’s fixed.

(37706)

Fix: InetPub Folder consuming a lot of storage on Windows Server SBS 2011

The other day I was having a problem with a lot of space being consumed in the C Drive on a Windows 2008 SBS or Windows 2011 SBS version. I have noticed that the InetPub log files were taking more than 50GB of space. Now, there is an automatic way to delete these log and have a breath of fresh space. You can either use the below script to run it manually or set it up in a Scheduled task. This will stop the services and clear the logs… Swish, there it’s fixed. Enjoy.

@ECHO OFF
CLS
ECHO ** STOP IIS SERVICE **
NET STOP "TSGateway"
NET STOP "W3SVC"
ECHO ** DELETE OLD LOGS **
Forfiles.exe /P "C:\inetpub\logs\LogFiles\W3SVC1" /M *.log /D -5 /C "Cmd.exe /C del @path"
ECHO ** START IIS SERVICE **
NET START "W3SVC"
NET START "TSGateway"

(1111)