How to delete or remove mobile devices connected to Exchange Activesync List

Trick to delete or remove mobile device connected to exchange activesync.

Using Exchange OWA:

1. Login to your account using exchange owa
2. Goto Options > See All Options…
3. Select Phone. The Mobile Phones tab show a list of all exchange activesyncdevices connected to your account.
4. Select the device you want to remove and click Delete.


From Exchange server cmdlets:

Get-ActiveSyncDevice -ResultSize unlimited | Get-ActiveSyncDeviceStatistics | where {$_.LastSyncAttemptTime -lt (get-date).adddays(-60)} | out-gridview

It will show device list older than 60 days.

Get-ActiveSyncDevice -ResultSize unlimited| Get-ActiveSyncDeviceStatistics | where {$_.LastSyncAttemptTime -lt (get-date).adddays(-365)} | select-object guid | Out-File C:\Temp\list.txt

It will export device GUID that need to be delete.

Get-Content .\list.txt | Get-ActiveSyncDevice | Remove-ActiveSyncDevice

Once you have list for device to delete, run above code to delete / remove devices.


How to install MS17-010 security update

How to install MS17-010 security update

To install MS17-010 security update, we need to download the corresponding patch from Microsoft update catalog server depending upon operating system.

Windows XP SP3

Open Microsoft Update Catalog Server’s URL then search for KB4012598.

Click on Security Update for Windows XP SP3 (KB4012598) to view update details and language selection, click Download to download the patch for Windows XP SP3.

Click the windowsxp-kb4012598-x86-custom-enu_eceb7d5023bbb23c0dc633e46b9c2f14fa6ee9dd.exe link to begin the download.

Double click the downloaded .exe file to install the patch.

Click Next, Select I Agree then Click Next.

Click Finish to restart.

After system restart. You can verify the patch using below command.

C:\Users\myousufali>wmic qfe get Caption,Description,HotFixID,InstalledOn | findstr /C:”KB4012598″


How to change or reset the SA password for MSSQL in Linux

How to change or reset the SA password for MSSQL in Linux

To  reset SA password execute:

First you need to stop  mssql-server  using this command

 sudo systemctl stop myssql-server

sudo /opt/mssql/bin/mssql-conf setup

Setting up Microsoft SQL Server

Enter the new SQL Server system administrator password:

Confirm the new SQL Server system administrator password:

Starting Microsoft SQL Server…

Enabling Microsoft SQL Server to run at boot…

Setup completed successfully.

To change MSSQL SA password

Login to MSSQL by executing these commands.

    cd /opt/mssql-tools/bin/

    ./sqlcmd -S srv01 -U sa 

To change MSSQL sa account password, execute these commands.

EXEC sp_password NULL, 'Mssql@12345','sa'




How to Disable SSL 2.0 and SSL 3.0 on Exchange 2013 running on a Windows 2012

How to Disable SSL 2.0 and SSL 3.0 on Exchange 2013 running on a Windows 2012


Open the registry and edit the values. If you don’t find the entries create the entries.


To disable SSL 2.0

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Client]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server]

To disable SSL 3.0

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Client]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server]


To disable Ciphers:

Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 128/128]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 40/128]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 56/128]

Alternate way to do this save above registry information keys as .reg files then execute on the system.

You can also download from here.

Before executing take the complete registry backup.  You need to restart the server.

Using the web site to perform a test against you site. You should see overall Rating A.


How to Install Microsoft SQL Server on Linux


Now Microsoft SQL Server supports on Linux platforms.

I have tested on Redhat, CentOS and Oracle Linux.

Here we will see step by step guide to install SQL server on Linux.

Supported platforms


Supported version(s)


Red Hat Enterprise Linux


Get RHEL 7.3

SUSE Linux Enterprise Server

v12 SP2

Get SLES v12 SP2


16.04 and 16.10

Get Ubuntu 16.04

Docker Engine


Get Docker


  • You need at least 3.25 GB of memory to run SQL Server on Linux.


Install SQL Server

  • Login to root user using putty.

su - root

  • We will download and install SQL server repositories by using following commands.

# curl
> /etc/yum.repos.d/mssql-server.repo

# curl
> /etc/yum.repos.d/msprod.repo



  • Verify .repo files under /etc/yum.repos.d/ directory


  • To install SQL Server and MSSQL Tools package, run the following commands
# yum install -y mssql-server mssql-tools




  • Run the configuration script to accept license terms and set SA password
# cd /opt/mssql/bin/
# sudo ./mssql-config setup



  • To verify the mssql-server service is running
# systemctl status mssql-server


  • To open tcp-1433 port on system firewall in order to allow external clients to communicate with the database server.
# firewall-cmd --add-port=1433/tcp --permanent
# firewall-cmd --reload



  • Testing SQL Server
# cd /opt/mssql-tool/bin/
# ./sqlcmd -S srv01 -U SA



Upgrade SQL Server

  • To upgrade the mssql-server package on Linux, execute the following command
# yum update mssql-server

Uninstall SQL Server

  • To uninstall or remove the mssql-server package on Linux, execute the following command

# yum remove mssql-server  
(Remove or delete mssql-server package)

# rm -rf /var/opt/mssql/
(Remove or delete database files)