Windows command: icacls Icacls is a command-line utility that can be used to display or modify discretionary access control lists (DACLs) on specified files, and apply stored DACLs to files in specified directories. Read more
Powershell: Get-Uptime Start with Powershell 6, there is Get-Uptime cmdlet to tell how long the system running. Read more