January 23, 2023

PowerShell script to find user profile that not used for long time

This script will loop through all the folders in the “C:\Users” directory and check if they are a container (i.e. a folder). If they are, it […]
January 23, 2023

Powershell script for users list with the folder size and last use

Here is an example PowerShell script that will retrieve a list of users on a remote Windows computer, including the size and last modified date of […]
August 6, 2019

How to logoff remote desktop sessions via command line tools?

This trick I learned from my one of college. In Windows servers, only two remote desktop sessions allowed with administrative access. There are situations, you can’t […]
June 19, 2019

How to give a domain user local admin rights?

In older versions of Windows (XP, Vista) Local Administrators can be added by doing the following: Right Click on My Computer (if you have privileges) Select […]