I am in the process of making a powershell task sequence to fire off to complete some tasks that otherwise would be run manually after a newly imaged computer is complete. One of them is to detect if the machine is Windows 7, if it is perform a certain task.
I am running this on a VM as well as a spare production laptop and it always opens up IEXPLORE (in my example below) and not notepad. When I type $OS it comes back with "Microsoft Windows 7 Enterprise".
If I run this on my Windows 10 computer and adjust the "If ($OS -contains 'Microsoft Windows 10 Pro')", it works as it should.
Am I missing something here?
This topic was modified 1 year, 2 months ago by Brent Balzer.