Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicate name error when adding second firewall rule #73

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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