Coder Social home page Coder Social logo

frc-driver-station-connectivity-script's Introduction

FRC-Driver-Station-Connectivity-Script

  

PowerShell Version

A PowerShell script that performs the most common fixes for Driver Station comm's issues to the FRC Field Network

Because of the default PowerShell restrictions in Windows. The FFS_Connect.ps1 is run by Launch_FFS_ConnectPS.bat

The PowerShell script and the Batch file must be in the same directory

Launch_FFS_ConnectPS.bat must be run as admin in order for all commands to execute. It is recommended you create a shortcut and add the option "Run as Administrator".

The script has pauses in it so the FTA/FTAA can read the output and check for errors, this is also so the script can be closed if the last function fixes the connection problems to the field

Disable Windows Firewall

Disables all three Windows Firewalls (Public, Private, Domain).

Enable Firewall rules to allow comms to the field network

Firewall rules are created for the NI mDNS Responder and all the ports listed in the FMS White paper, Season Manual, and FTAA/CSA Troubleshooting. This is done in case the computer has other firewall software.

Stop Windows updates

The Windows Update Service is stopped

Disable All Network Adapters and Reset Physical 802.3 (Ethernet) Adapters

All Network Adapters (Including Bluetooth and Cellular) are Disabled. Physical 802.3 (Ethernet) Adapters are then reenabled. IPv6 is also disabled on all Physical 802.3 (Ethernet) Adapters.

Set Physical 802.3 (Ethernet) Adapters to use DHCP

Physical 802.3 (Ethernet) Adapters are set to use DHCP for IP Addresses and DNS. The DNS Cache is then flushed and all IP addresses released.

Prompt to open Network Adapter Control Panel

ncpa.cpl can be opened to allow setting a static IP for the connected Ethernet Adapter

Renew DHCP for Physical 802.3 (Ethernet) Adapters

The renew command is issued for Physical 802.3 (Ethernet) Adapters if ncpa.cpl is not opened

end

Domain managed devices with Powershell GPO restrictions.

If the device has a GPO applied that blocks unsigned Powershell, you can run the script by opening it in Powershell ISE launched as admin, selecting the lines of the script, and pressing F8 (Run Selection)

Revert Sctipt

Launch_Revert_FFS_Connect_ChangesPS.bat launches Revert_FFS_Connect_Changes.ps1 (Must be in the same directory, and the batch file must be run as admin) This Script disables the created rules, enables the Firewall, and starts the Windows update service again.

Created by Juan Jose Chong

This version of the script is encoded to be run from a USB Rubber Ducky

Most Windows computers with stock security settings should be vulnerable to this deployment method, But computers with additional security polices applied and/or additional security software may block this deployment method.

Acknowledgements

Ed Jordan

Juan Jose Chong

Eric Fletcher

Doug Frisk

frc-driver-station-connectivity-script's People

Contributors

fletchers7 avatar juchong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

juchong

frc-driver-station-connectivity-script's Issues

Find a way to Dynamically find all Ethernet Adapters

Right now the batch file creates a list of Ethernet adapters with the name Ethernet and Local Area Connection 0-9.

I need to find a way to find all of the adapters on the devices and dynamically add them to the list.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.