Skip to content

Commit

Permalink
Fix duplicate name error when adding second firewall rule
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeytdisco authored and spbrogan committed Apr 6, 2023
1 parent 769a609 commit 3717003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DfciPkg/UnitTests/DfciTests/DeviceUnderTest/SetupDUT.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ New-NetFirewallRule -Name Allow_Ping -DisplayName “Allow Ping” -Description

# allow robotserver port 8270 and 8271
New-NetFirewallRule -Name Allow_robotserver -DisplayName Allow Python Robot server 8270 -Protocol TCP -LocalPort 8270 -Description PyRobot server -Enabled True -Profile Any -Action Allow
New-NetFirewallRule -Name Allow_robotserver -DisplayName Allow Python Robot server 8271 -Protocol TCP -LocalPort 8271 -Description PyRobot server -Enabled True -Profile Any -Action Allow
New-NetFirewallRule -Name Allow_robotserver2 -DisplayName Allow Python Robot server 8271 -Protocol TCP -LocalPort 8271 -Description PyRobot server -Enabled True -Profile Any -Action Allow

##set up task scheduler to run robot server
Register-ScheduledTask -Xml (get-content 'PyRobotServer.xml' | out-string) -TaskName "PyRobot Server" –Force
Expand Down

0 comments on commit 3717003

Please sign in to comment.