This PowerShell script, osinstalldate.ps1
, is designed to fetch and display the installation date of the operating system on which it is run. It's a useful tool for system administrators, IT professionals, or any users who need to quickly ascertain how long the OS has been installed on a particular machine.
- Easy to Use: Run the script in PowerShell to get the OS installation date.
- Portable: No external dependencies, works on any Windows machine with PowerShell installed.
- Record: Can send its gathered data to a .txt file.
To run this script, you need:
- PowerShell 5.0 or higher (Typically available on Windows 8.1 and later by default).
Here’s how to use osinstalldate.ps1
:
- Open PowerShell.
- Navigate to the directory where
osinstalldate.ps1
is located. - Run the script by entering the following command:
.\osinstalldate.ps1