Clean RDP Sessions Rumi, June 18, 2022 Just found it useful with the garbage of RDP session to clean- Paste the below lines on a notepad and rename it- rdp_clean.bat. Execute the batch file through cmd line as admin user. @echo off reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /f reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" cd %userprofile%\documents\ attrib Default.rdp -s -h del Default.rdp Voila! Related Scripts RDPWindows
IP Setting on CentOS6 using Shell Script December 6, 2015 #!/bin/bash if [ $# -eq 5 ] then echo “” echo “Taking the backup and Changing the hostname from $(hostname) to $1 …” sed -i.bk “s/$(hostname)/$1/g” /etc/sysconfig/network echo “” echo “Backing up & Assigning the Static IP …” echo “” cp /etc/sysconfig/network-scripts/ifcfg-$2 /etc/sysconfig/network-scripts/$2.bk cat <<EOF > /etc/sysconfig/network-scripts/ifcfg-$2 DEVICE=$2 BOOTPROTO=static IPADDR=$3.$4… Read More
Delete files older than 10 days using shell command October 28, 2023 find is the common tool for this kind of task : find ./my_dir -mtime +10 -type f -delete EXPLANATIONS ./my_dir your directory (replace with your own) -mtime +10 older than 10 days -type f only files -delete no surprise. Remove it to test your find filter before executing the whole command Src: https://stackoverflow.com/questions/13489398/delete-files-older-than-10-days-using-shell-script-in-unix Related Read More
A good Webmail with least complications and have beautiful interface- MailBee July 7, 2008July 7, 2008 I was just tired on working webmail projects with- Horde Neomail Squirrelmail (I did customize quite a long back!) DWMail Uebimiau MDaemon with IIS integration And so many!!!!! Anyway, my eyes were bored in seeing those interfaces on and on, just looked for some new thingy available now a days…… Read More