mirror of
https://github.com/freedbygrace/ActiveDirectoryManager.git
synced 2026-07-27 04:19:39 +00:00
11 lines
346 B
PowerShell
11 lines
346 B
PowerShell
# PowerShell script to update the version.txt file with the current date and time
|
|
|
|
# Generate version in yyyy.MM.dd.HHmm format
|
|
$version = Get-Date -Format "yyyy.MM.dd.HHmm"
|
|
|
|
# Update version.txt
|
|
$versionFile = Join-Path $PSScriptRoot "version.txt"
|
|
$version | Out-File -FilePath $versionFile -NoNewline
|
|
|
|
Write-Host "Version updated to: $version"
|