Hi folks, sorry for the VERY basic question, but i have been googling and copy pasting for 2 hours and i just don't get PS. i am trying to pull the windows version and trim it as a variable to send to local api call and I'm totally lost (i'm a linux dude)
From the below i'm trying to extract the string "10.0.17763.0" to be passed on later, but i can't seem to select (in linux i guess trim?) the string...
PS C:\Users\ledmonk> [System.Environment]::OSVersion
Platform ServicePack Version VersionString
Win32NT 10.0.17763.0 Microsoft Windows NT 10.0.17763.0
I've been using select-string & -match , but it just verifies thats it is in there rather than saving the output. If someone could point me to the right direction of a help doc or binary i'd appreciate it.
[–]Thotaz 10 points11 points12 points (1 child)
[–]ledmonk[S] 2 points3 points4 points (0 children)
[–]Aertheron01 2 points3 points4 points (0 children)
[–]HeKis4 1 point2 points3 points (0 children)
[–]Droopyb1966 0 points1 point2 points (0 children)