Hi All,
I am looking to club 5 commands to one power shell script, I know we can use semicolon as a separator but using execute policy in each command is not looking nice. Please suggest ![]()
powershell.exe -ExecutionPolicy Bypass -command set-NetAdapterAdvancedProperty W* -RegistryKeyword “RoamAggressiveness” -RegistryValue ‘4’
powershell.exe -ExecutionPolicy Bypass -command Set-NetAdapterAdvancedProperty W* -RegistryKeyword “RoamingPreferredBandType” -RegistryValue “2”
powershell.exe -ExecutionPolicy Bypass -command set-NetAdapterAdvancedProperty W* -RegistryKeyword “IEEE11nMode” -RegistryValue ‘2’
powershell.exe -ExecutionPolicy Bypass -command Set-NetAdapterAdvancedProperty W* -RegistryKeyword “IbssTxPower” -RegistryValue “100”
powershell.exe -ExecutionPolicy Bypass -command Set-NetAdapterAdvancedProperty W* -RegistryKeyword “802.11n/ac Wireless Mode” -RegistryValue “2”
Regards,
Vishal