As I've said, we have Oldnet and Newnet. One of the things the 802.1x-script evaluates is if the client has got an expected IP address or not. Since the script evaluates things like that and I don't want it to fail, I need to exit the script if 802.1x isn't necessary .
Simply because no matter how many certificates the client has, none will get the client to switch VLAN if it's on Oldnet.
So does the network support 802.1x?
In Windows this is easy to spot:
In WinPE all you have is netsh and it will look like this even though one network support 802.1x and other one doesn't...
That is unless you import a network profile, the dot3svc service needs to be started but nothing else.
Then you have something to parse with your scripts.
Kommentare