PS script to check for OS
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.
Answer Chosen by the Author
powershell get os run command