PS script to check for OS
Hi,
Can anyone guide me with the script to check for the OS version and then depending on that go for the install for win 7 or win 8. I need for win 7 and win 8.
I know we need to use this (Get-WmiObject Win32_operatingSystem).Version
Not sure how to proceed, further.
0 Comments
[ + ] Show comments
Answers (1)
Answer Summary:
Please log in to answer
Posted by:
SMal.tmcc
8 years ago
Top Answer
google this:
powershell get os run command
http://stackoverflow.com/questions/33696409/powershell-os-check-before-running-a-command-using-an-if-statement
powershell get os run command
http://stackoverflow.com/questions/33696409/powershell-os-check-before-running-a-command-using-an-if-statement