Category: Windows(2003/2008/2012)

Slow mouse movement in Windows 2012 ?

Slow mouse movement in Windows 2012 ?

When connected to Windows 2012 server using RDP, cursor / mouse movements are very slow. Sometimes this is very horrible while troubleshooting any issue. Well when checked this was all due to the pointer shadow that was on. There needed it to disable and once done cursor movement was back on its normal speed.

Please follow the steps listed below to disable the pointer shadow quickly:

  • Start main.cpl ,1
  • Press Alt key and E.
  • Press Alt key and A.
  • Press Esc key.

Note: Please execute the above mentioned commands in its sequence in command prompt.

 

Thanks,

WintelAdmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , ,

How to reduce the size of datastore.edb?

How to reduce the size of datastore.edb?

If your software distribution folder consuming more disk space? Is it good to delete the folder? Hey, before you delete teh folder you have an option to defrag the datastore file to recover free disk space. This will keep you in safe zone.

datastore.edb is located at c:\windows\softwaredistribution\software. In order to shrink its size, please follow the steps listed below:

Stop windows update and Bits service.

Open command prompt and execute the below command:

esentutl.exe /k c:\Windows\SoftwareDistribution\DataStore\DataStore.edb

For help type

esentutl.exe /?

You can also defrag and repair. If problems were detected in the verify do a recovery followed by a repair.

esentutl.exe /r c:\Windows\SoftwareDistribution\DataStore\DataStore.edb
esentutl.exe /p c:\Windows\SoftwareDistribution\DataStore\DataStore.edb

For me, defragging helped to recover around 200 MB free space.

esentutl.exe /d c:\Windows\SoftwareDistribution\DataStore\DataStore.edb

Thanks,
WintelAdmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , , ,

RDP – The client could not establish a connection to the remote computer.

The client could not establish a connection to the remote computer.

Had issues connecting to one of the Windows 2008 R2 Server using RDP. Got the below error:

[Window Title]
Remote Desktop Connection

[Content]
The client could not establish a connection to the remote computer.

The most likely causes for this error are:
1) Remote connections might not be enabled at the remote computer.
2) The maximum number of connections was exceeded at the remote computer.
3) A network error occurred while establishing the connection.
4) The remote computer might not support the required FIPS security level. Please lower the client
side required security level Policy, or contact your network administrator for assistance.

[OK] [Help]

When checked event log, found Event ID 50 Summary: The RDP protocol component X.224 detected an error in the protocol stream and has disconnected the client.

This issues was solved by changing the Security Layer at the RDP stack to RDP Security Layer from Negotiate.
This can be changed by going to Remote Desktop Host Configuration – General

Thanks,
WintelAdmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , ,

Command to open folder in explorer from same location.

Trick to open a GUI folder from command prompt.

In order to to open a GUI folder from command prompt and list all its content you may just enter the command start followed by a period as shown below:

start.

VICE-VERSA: Similarly, if you wish to open a command prompt from a GUI folder, you can shift-right-click on a desired folder and select “Open command window here”. This should take you to the command prompt.

Thanks,
WintelAdmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , , ,

Get-Hotfix Powershell to find Patches installed on Specific Date.

Get-Hotfix Powershell Command to find Patches installed on Specific Date.

There was a request to verify the list of servers if those were patched recently. I succeeded in verifying the servers using the below powershell command.

get-hotfix -CN “Server1″,”Server2″,”Server3” -CRED “Domain\username” | select csname,hotfixid,installedon,description,installedby | where {$_.installedon -gt “8/1/2017”} | Sort-Object csname | format-table

Thanks,
WintelAdmin

Filed under: Powershell (Tutorial), Windows(2003/2008/2012)Tagged with: , , , , ,

Non-compliant with MS Patches using SCCM

Non-compliant with MS Patches

Found few servers to be non-compliant from the patching team. When checked, found that the patches were getting failed when deployed using SCCM. This issues was fixed by renaming the folder named “SoftwareDistribution” located in C:\Windows\. Further to this found that the service named “Windows Modules Installer” was disabled. Changed it to manual. Now the SCCM pop-up and view updates in Control Panel were populated.

Thanks,
WintelAdmin

Filed under: SCCM (Image/Deployment), Windows(2003/2008/2012)Tagged with: , , , , , ,

Stop multiple services starting with same name

Stop multiple services starting with same name. Well I was in need to reboot a Windows 2008 server and before reboot all the application services were supposed to be stopped. I had to manually stop all services one by one. After couple of days I was requested to perform the same activity once again. This time I thought to look for an option to stop all services using single command. I found that all the application services names started in same format. Hence, below listed powershell command made my task very easy.

Get-Service | Where-Object {$_.displayName.StartsWith(“ABCD”)} | stop-Service

Note: Replace ABCD with your requirement.

Thanks,

WintelAdmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , , , ,

Generate list of hotfixes and patches installed.

Was in need to get the list of hotfix and patches installed on windows server including installation date, user, etc. Finally, got to know about the command that can fetch the required details and in a very neat format.

wmic qfe list full /format:htable > hotfixes.html

Thanks,
WintelAdmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , , ,

IIS World wide web publishing service stopping


Got an alert stating IIS 7 role unavailable, when checked found that the service named World Wide Web publishing service was not starting. This could be in case the IIS isn’t shutdown cleanly. This could break the services like World Wide Web publishing service (w3svc).
In that case, we can fix the issue by resetting the IIS by executing the commands
# iisreset /stop
# iisreset /start
or
taskkill /F /FI “SERVICES eq w3svc”
Finally, restarting the IIS would fix the issue.

Thanks,
Winteladmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , , , ,

SQL Server 2008 R2: A failure was detected for a previous installation

SQL Server 2008 R2 cumulative update was giving an error stating SQL Server setup failure.

SQL Server Setup has encountered the following error:

A failure was detected for a previous installation, patch or repair for instance “MSSQLSERVER” during the configurtion for features………. Error code 0x84B20001

Found it on Microsoft forums and other posts to look for these registry entries:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\ConfigurationState

MPT_AGENT_CORE_CNI
SQL_Engine_Core_Inst
SQL_Replication_Core_Inst

All REG_DWORD values were set to 3 and changed them to 1.

Wow, this time the setup validation succeeded and the SQL server 2008 R2 update operation was completed successfully.

Filed under: Windows(2003/2008/2012)Tagged with: , , , , ,