question

SogandFathy-3441 avatar image
0 Votes"
SogandFathy-3441 asked LimitlessTechnology-2700 answered

Add new Vlanid with GPO

Hi Team,

We have around 100 PC in different offices that we want to assign separate vlan for these PCs. I installed Realtek diagnostic driver and then add vlan3 on 3 local PC manually and all is working fine. Switch ports have been configured accordingly. I have been advised to push this change on the remaining PCs via GPO and now I am looking for the codes/script to push this policy. Can you please assist with this ?

Thanks in advance
Kind regards
Sogand

windows-group-policywindows-hardware
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello SogandFathy,

You can define the VLAN ID using the next comdlet:

Set-NetAdapter -Name <Adapter> -VlanID xxx
(where xxx is the number of the VLAN)

Reference and other examples and parameters: https://docs.microsoft.com/en-us/powershell/module/netadapter/set-netadapter?view=windowsserver2022-ps



--If the reply is helpful, please Upvote and Accept as answer--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.