New & improved instructions for restoring Network Diagnostics and Network Setup Assistant.
In High Sierra the Network Diagnostics and Network Setup Assistant apps are no longer in the /System/Library/CoreServices location as they had been previously. In order to restore them, you will need to have an installation of Sierra, such as a Time Machine or other backup or a Mac that hasn't been upgraded to High Sierra. You need to copy the following files to a location that you can access from the High Sierra Mac, such as an external drive:
/System/Library/CoreServices/Network Diagnostics.app
/System/Library/CoreServices/Network Setup Assistant.app
/System/Library/PrivateFrameworks/NetworkDiagnosticsUI.framework
/System/Library/PrivateFrameworks/SetupAssistantFramework.framework/Versions/A/S etupAssistantFramework
/System/Library/PrivateFrameworks/SetupAssistantSupport.framework/Versions/A/Set upAssistantSupport
Now restart the High Sierra Mac in Recovery mode and disable System Integrity Protection (SIP). This is necessary because the System folder must be modified:
Hold down the Command-R keys while restarting. Once Recovery starts up, click on Utilities in the menu bar (not the open window) and then Terminal. Run the following commands in Terminal:
csrutil disable
reboot
On your High Sierra Mac, copy the Network Diagnostics.app and Network Setup Assistant.app to their original location. Authenticate as an administrator.
Next in High Sierra, trash the following files (authenticate as an administrator):
/System/Library/PrivateFrameworks/SetupAssistantFramework.framework/Versions/A/S etupAssistantFramework
/System/Library/PrivateFrameworks/SetupAssistantSupport.framework/Versions/A/Set upAssistantSupport
Now move the files out of the trash and keep them in an appropriately named folder as backups.
Copy the following files to the corresponding location in High Sierra:
/System/Library/PrivateFrameworks/NetworkDiagnosticsUI.framework
/System/Library/PrivateFrameworks/SetupAssistantFramework.framework/Versions/A/S etupAssistantFramework
/System/Library/PrivateFrameworks/SetupAssistantSupport.framework/Versions/A/Set upAssistantSupport
Change owner of all files/folders to root by running the following commands in terminal from an administrator's account (enter the password at least once); copy and paste the commands into Terminal, one at a time:
sudo chown -R root:wheel /System/Library/CoreServices/Network\ Diagnostics.app
sudo chown -R root:wheel /System/Library/CoreServices/Network\ Setup\ Assistant.app
sudo chown -R root:wheel /System/Library/PrivateFrameworks/NetworkDiagnosticsUI.framework
sudo chown root:wheel /System/Library/PrivateFrameworks/SetupAssistantFramework.framework/Versions/A/ SetupAssistantFramework
sudo chown root:wheel /System/Library/PrivateFrameworks/SetupAssistantSupport.framework/Versions/A/Se tupAssistantSupport
Make aliases of the Network Diagnostics.app and Network Setup Assistant.app and drag them to a more accessible folder and/or the Dock.
Now that all files have been restored, enable SIP in Recovery using the following Terminal commands:
csrutil enable
reboot
If you followed all steps correctly, the Network Diagnostics.app and Network Setup Assistant.app should now work. Of course, we don't know how long they will continue to work. Our best hope is that Apple will restore these useful apps to macOS.
If you haven't already done so, tell Apple to do this at https://www.apple.com/feedback/macos.html