The Sperry 'autopilot' module includes functions to automate changes related to working in a specific office network environment, vs working remotely (away from that office network).
"Lawrence Burst Sperry ... was an aviation pioneer" and is credited with inventing autopilot -wikipedia
(organized by module file / ScriptsToProcess)
The primary cmdlet. If you'd like to adopt Sperry for your own use, you'll want to customize the tasks and operations called from Set-Workplace. Most of the following functions are invoked from within the Set-Workplace function, but are also exported for direct use. You may find that some of these are not useful for you, or you may want/need to customize them to your own workplace/context(s). If you review the code, and have questions about how or why it works for me, please ask; I'd be glad to share my thoughts, and perhaps learn a better way.
Basically just a read-only replica of Clear-IECookies
Get-NetConnStatus No ConnectionID specified; enumerating physical network adapters Name NetConnectionID ---- --------------- Intel(R) Ethernet Connection I219-V Local Area Connection Intel(R) Dual Band Wireless-AC 8260 Wireless Microsoft Virtual WiFi Miniport Adapter Wireless Network Connection
A helper function for streamlining start-process and stop-process cmdlet interactions for predefined executable file paths and their arguments / parameters.
Using the ProcessName parameter, and the internally defined $knownPaths hash table, Set-ProcessState can be used to either Start or Stop a particular application / process, simply by specifying the -Action parameter
Name of process to check for, start up, or stop
Specify whether to start processName, or to Stop it.
Enumerate $knownPaths hash table
Get-Process C:\> Set-ProcessState -ProcessName iexplore -Action Stop
Stop all running instances of Internet Explorer
Get-Process C:\> Set-ProcessState -ProcessName Firefox -Action Start
Effectively equivalent to Start-Process Firefox browser, when the path to Firefox.exe is defined in your Sperry JSON file.