Skip to content

Commit 34b86fa

Browse files
committed
🎉 Added Get-Version function
1 parent 648231a commit 34b86fa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pwsh/functions.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,13 @@ function SystemUpdate() {
129129

130130
# https://stackoverflow.com/a/7330368
131131
function Get-WindowsBuild {
132-
# [System.Environment]::OSVersion.Version
132+
Write-Green "WINDOWS ENVIRONMENT"
133133
[Environment]::OSVersion
134+
[System.Environment]::OSVersion.Version
135+
}
136+
137+
function Get-Version {
138+
$PSVersionTable.PSVersion; Get-WindowsBuild
134139
}
135140

136141
# function get-serial-number {

0 commit comments

Comments
 (0)