MAC address exception, Windows, command line

Today i want to limit script execution based on client MAC address.

I use gnu grep for more production and less code:

This is how i found MAC address for active interface.
Change the basic octets to satisfy your needs:
And now the limitation:
I create a file exeption-list.txt with content:
12-12-ab-ab-ac-ac
11-22-33-44-55-66
ff-ee-aa-cc-dd-bb
And the final script for production:

No comments: