Block Spam User Registration on WordPress – Users registering from Russia with email having mail.ru

Scenario: Spam User Registration on WordPress When you enable New User Registrations on your WordPress website, you end-up having a lot of spam (unexpected/unwanted) new user registration taking place. If you manually delete them,  they again gets recreated automatically the next day. Most of these spam new user  registration are reported from different locations within Russia.  Below are some of the spam users details from the logs. Also, most of them use the email address with mail.ru domain as show from the logs below. Logs:  Logs showing spam user registering from Russia with email having mail.ru Used an invalid username […]

Read more

Procedure to extend Windows System Partition with non-adjacent or non-contiguous unallocated Free space

Scenario:  You have a single physical disk having System Partition, Data  Partition and some unallocated free space at the end.  Your System Partition gets filled and you want to extend it by adding the free unallocated space available on the same physical disk. Windows Disk Management tool doesn’t enable the “Extend Volume” option (i.e., “Extend Volume” option is greyed out as shown below) This behavior remains same irrespective of Unallocated space is just RAW of Formatted as FAT32/NTFS volume.                      Cause: In order to be able to extend a volume, the Unallocated free space must be on the same disk, […]

Read more

PowerShell Script to Split, Replace and Rename File Names in the Folder Recursively and in Bulk

Important Note: The File renaming in bulk can result in dangerous results in not handled correctly.  This post is ONLY to share my learning’s to serve you as a guidance to build your own scripts for similar requirements.  Requirement: I had a folder which contained sub-folders and then files.  The naming convention of file names is “<string> –  <string> – <string>.mp4”.  Out of which the first String is too lengthy and common for all files which I wanted to get rid of it.  Script: function Rename-Files ($folder) {     $files = dir $folder | where {! $_.PsIsContainer}     # $files […]

Read more