Monday 26 August 2019

Delete entries from RabbitMQ queue

Using GUI

Enable RabbitMQ Management through command

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>rabbitmq-plugins enable rabbitmq_management

Log in to http://localhost:15672 with default credentials as guest/guest , scroll down and click on purge.


Using CLI

Download rabbitmqadmin from http://localhost:15672/cli/ and use it

python rabbitmqadmin purge queue name=queue2

Sunday 25 August 2019

Windows Update throws error

As Administrator, on command line run the following commands

net stop wuauserv

net stop cryptSvc

net stop bits

net stop msiserver

ren C:\Windows\SoftwareDistribution SoftwareDistribution.old

ren C:\Windows\System32\catroot2 catroot2.old

net start wuauserv

net start cryptSvc

net start bits

net start msiserver

 If wuauserv gives message of Cannot restart, stopping - kill its PID and it will auto restart.


Sunday 18 August 2019

On Windows Server 2016 Datacenter make unresponsive Software Center work

Use the Powershell command Invoke-WmiMethod -Namespace root\CCM -Class SMS_Client -Name SetClientProvisioningMode -ArgumentList $false

This takes out of Provision Mode the System Configuration Configuration Management Client which is used to install organization intranet provided updates through Software Centre.

The Provision Mode is the mode in which previous updates or upgrades were being installed. The client might be stuck in the mode owing to error in updates/upgrades.

Friday 16 August 2019

On Windows Server 2016 Datacenter, increase password validity

Open gpedit.msc and configure Computer Configuration > Windows Settings > Security Settings > Password Policy > Maximum password age