Home
%3CLINGO-SUB%20id%3D%22lingo-sub-377251%22%20slang%3D%22en-US%22%3EOptimizing%20Operating%20Systems%20Upgrades%20for%20Remotely%20Connected%20Clients%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-377251%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3EFirst%20published%20on%20TECHNET%20on%20Aug%2028%2C%202017%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3EHi%20everyone.%20My%20name%20is%20Kacey%20Krehbiel.%20I'm%20a%20service%20engineer%20responsible%20for%20application%20and%20operating%20system%20upgrade%20deployments%20within%20Microsoft.%20Today%20I'd%20like%20to%20focus%20on%20one%20small%20aspect%20of%20our%20operating%20system%20upgrade%20process.%20%3CBR%20%2F%3E%3CBR%20%2F%3EOver%20the%20past%20couple%20of%20operating%20system%20upgrade%20cycles%20we%20have%20seen%20a%20huge%20increase%20in%20the%20numbers%20of%20users%20that%20are%20upgrading%20their%20operating%20system%20while%20being%20connected%20over%20VPN.%20An%20edge%20case%20that%20in%20the%20past%20would%20be%20dismissed%20with%20an%20answer%20of%2C%20%22Wait%20until%20you're%20in%20the%20office%2C%22%20or%20%22Sorry%2C%20the%20system%20wasn't%20built%20for%20that%2C%22%20is%20not%20acceptable.%20Users%20may%20never%20go%20into%20the%20office.%20With%20that%20in%20mind%2C%20when%20designing%20an%20OS%20upgrade%20using%20a%20Configuration%20Manager%20task%20sequence%20we%20need%20to%20make%20sure%20that%20we%20are%20making%20special%20consideration%20for%20remote%20clients.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20%3CSTRONG%3EChoosing%20between%20Windows%2010%20Servicing%20and%20Operating%20System%20Upgrade%20Task%20Sequences%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3EA%20note%20on%20Windows%2010%20Servicing%3A%20Windows%2010%20Servicing%20is%20a%20great%20solution%20for%20installing%20Windows%2010%20feature%20updates%20for%20many%20environments%20that%20simplifies%20many%20of%20the%20challenges%20of%20a%20large-scale%20feature%20update%20deployment.%20Due%20to%20unique%20internal%20deployment%20timelines%2C%20as%20well%20as%20some%20customization%20specific%20to%20our%20environment%2C%20we%20have%20opted%20to%20use%20the%20Operating%20System%20Upgrade%20Task%20Sequence%20feature%20present%20in%20Configuration%20Manager.%20We%20encourage%20everyone%20to%20research%20the%20capabilities%20of%20Windows%2010%20Servicing%2C%20and%20determine%20if%20it%20is%20appropriate%20for%20your%20environment.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20%3CSTRONG%3EPre-Download%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20first%20hurdle%20we%20need%20to%20overcome%20with%20remotely%20connected%20clients%20is%20ensuring%20that%20the%20download%20of%20the%20upgrade%20package%20is%20successful.%20If%20we%20get%20one%20chance%20at%20time%20of%20enforcement%20to%20download%20a%204GB%20operating%20system%20package%2C%20we%20are%20going%20to%20have%20some%20failures%20if%20users%20are%20getting%20that%20one%20chance%20while%20seated%20at%20a%20coffee%20shop.%20Pre-download%20helps%20to%20reduce%20that%20issue%20by%20increasing%20the%20number%20of%20times%20we%20attempt%20download%20before%20mandatory%20enforcement.%20%3CBR%20%2F%3E%3CBR%20%2F%3EEvery%20one%20of%20our%20required%20operating%20system%20upgrade%20deployments%20is%20available%20to%20users%20for%20at%20least%207%20days%20before%20the%20mandatory%20date.%20This%20allows%20for%20remote%20users%20(and%20in-office%20users)%20plenty%20of%20warning%20before%20the%20mandatory%20enforcement.%26nbsp%3B%20It%20allows%20some%20remote%20users%20to%20be%20pro-active%20and%20initiate%20the%20upgrade%20when%20they%20are%20in%20the%20office%20that%20one%20day%20of%20the%20week%2C%20but%20most%20germane%20to%20our%20current%20topic%2C%20it%20allows%20for%207%20days%20of%20attempted%20pre-downloads.%20%3CBR%20%2F%3E%3CBR%20%2F%3EPre-download%20is%20still%20a%20pre-release%20feature%2C%20so%20if%20you%20choose%20to%20use%20it%2C%20it%20will%20first%20need%20to%20be%20enabled.%20You%20can%20find%20it%20under%20%3CEM%3E%20Updates%20and%20Servicing%20-%26gt%3B%20Features%20-%26gt%3B%20%22Pre-release%20-%20Task%20Sequence%20content%20pre-caching.%22%20%3C%2FEM%3E%20Once%20you%20have%20the%20feature%20enabled%2C%20setting%20up%20pre-download%20is%20a%20simple%20process.%26nbsp%3B%20In%20the%20Upgrade%20Operating%20System%20Package%20properties%2C%20the%20%3CSTRONG%3E%20Data%20Source%20%3C%2FSTRONG%3E%20tab%20will%20have%20radial%20buttons%20for%20x86%20or%20x64%20architectures.%20Pre-1706%20you%20will%20need%20to%20put%20in%20the%20language%20code%20of%20the%20package%2C%20in%201706%20simply%20select%20the%20language%20you%20wish%20from%20the%20drop-down%20menu.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20954px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F93840iC8EB64D9BC49106B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20%2F%3E%3C%2FSPAN%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20you%20have%20multiple%20upgrade%20packages%20in%20your%20task%20sequence%20you%20will%20still%20need%20to%20put%20in%20logic%20to%20specify%20which%20package%20you%20want%20to%20use.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20998px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F93841i80BB300006A5D282%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20%2F%3E%3C%2FSPAN%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EWhen%20creating%20the%20task%20sequence%20deployment%2C%20to%20enable%20pre-download%2C%20select%20the%20%3CSTRONG%3E%20%22Pre-download%20content%20for%20this%20task%20sequence%22%20%20%3C%2FSTRONG%3E%20box.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F93842i6AD1870F86D29CC6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20%2F%3E%3C%2FSPAN%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%20%3CSTRONG%3ETask%20Sequence%20Design%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3EPre-download%20of%20the%20operating%20system%20upgrade%20package%20solves%20the%20largest%20outright%20failure%20scenario%20for%20a%20remotely%20connected%20client%20but%20we%20want%20to%20make%20sure%20that%20we%20are%20optimizing%20the%20task%20sequence%20itself%20to%20reduce%20other%20download%20failures%2C%20as%20well%20as%20reduce%20any%20delays%20that%20loss%20of%20connectivity%20may%20create.%20%3CBR%20%2F%3E%3CBR%20%2F%3ETo%20reduce%20any%20other%20download%20failures%2C%20we're%20minimizing%20the%20number%20of%20other%20packages%20we're%20sending%20during%20operating%20system%20upgrade.%20If%20application%20or%20driver%20updates%20need%20to%20be%20installed%20before%20operating%20system%20upgrade%20occurs%2C%20consider%20sending%20those%20separately%20before%20the%20upgrade.%20If%20you%20have%20your%20task%20sequence%20set%20to%20%22Download%20content%20locally%20when%20needed%20by%20the%20running%20task%20sequence%22%20keep%20in%20mind%20that%20after%20operating%20system%20upgrade%20completes%20VPN%20connectivity%20may%20no%20longer%20exist.%20In%20such%20cases%20you%20will%20want%20to%20ensure%20that%20any%20packages%20are%20downloaded%20locally%20before%20the%20upgrade%20step%20occurs.%20%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20loss%20of%20VPN%20connectivity%20after%20upgrade%20is%20important%20to%20keep%20in%20mind%20in%20the%20actual%20order%20of%20your%20task%20sequence%20steps.%20The%20task%20sequence%20is%20going%20to%20want%20to%20send%20status%20updates%20for%20every%20step%20it%20completes%2C%20even%20if%20it%20is%20a%20step%20that%20it%20evaluates%20as%20skipped.%20%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20our%20task%20sequence%20we%20have%2032-bit%20and%2064-bit%20packages%20of%205%20different%20languages.%20If%20a%20client%20doesn't%20have%20MP%20connectivity%20it%20is%20still%20going%20to%20attempt%20to%20send%20status%20updates%20for%20each%20upgrade%20step%20it%20skips%2C%20adding%20a%20substantial%20amount%20of%20time%20into%20the%20process.%20Because%20of%20this%2C%20we%20put%20the%20upgrade%20steps%20in%20reverse%20order%20of%20popularity.%20The%20processor%20architecture%2Flanguage%20combination%20with%20the%20fewest%20devices%20in%20our%20environment%20goes%20first%2C%20followed%20by%20the%20second%20fewest%2C%20all%20the%20way%20to%20the%20most%20common%20(in%20our%20case%20English%2064-bit.)%20Organizing%20it%20this%20way%20allows%20the%20most%20people%20to%20have%20the%20least%20amount%20of%20delays%20while%20keeping%20a%20single%20task%20sequence.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20300px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F93843i3DD05CC1D737A3F5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20%2F%3E%3C%2FSPAN%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EKeeping%20those%20status%20delays%20in%20mind%2C%20we%20minimize%20the%20number%20of%20post-upgrade%20steps.%20We%20also%20make%20sure%20that%20the%20post-upgrade%20steps%20are%20not%20essential%20to%20a%20successful%20upgrade%20and%20a%20functioning%20device.%20Reporting%20of%20task%20sequence%20execution%20can%20be%20unreliable%20after%20MP%20connectivity%20is%20lost%20(an%20issue%20we%20are%20working%20the%20development%20team%20on%2C)%20and%20we%20don't%20want%20unreliable%20reporting%20of%20any%20essential%20action.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20%3CSTRONG%3EReporting%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3EPerhaps%20the%20most%20essential%20addition%20we've%20added%20within%20our%20task%20sequence%20is%20one%20that%20doesn't%20perform%20a%20purpose%20in%20the%20upgrade%2C%20but%20assists%20in%20reporting%20and%20troubleshooting.%20Right%20before%20the%20upgrade%20step%20occurs%20we%20run%20a%20script%20to%20detect%20if%20the%20client%20is%20connected%20via%20VPN.%20This%20allows%20us%20to%20quickly%20determine%20if%20the%20attempt%20was%20made%20over%20VPN%20without%20checking%20any%20log%20or%20contacting%20the%20user.%20We're%20able%20to%20categorize%20top%20errors%20based%20on%20connectivity%20type%2C%20track%20the%20overall%20success%20of%20upgrade%20over%20VPN%2C%20and%20see%20the%20percentage%20of%20upgrades%20that%20are%20being%20attempted%20over%20VPN.%20%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20Remote%20Connectivity%20Check%20can%20be%20a%20simple%20PowerShell%20script%20to%20look%20for%20whatever%20remote%20connectivity%20solutions%20exist%20in%20an%20environment%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CCODE%3E%0A%20%20%20%24ErrorActionPreference%20%3D%20%22SilentlyContinue%22%0A%20%20%20%3CBR%20%2F%3E%0A%20%20%20if((Get-NetConnectionProfile%20-Name%20%5Bdomain.com%5D).InterfaceAlias%20-in%20(%22%5BVPN%20Name%5D%22%2C%22%5BSecond%20VPN%20Name%5D%22))%7Bexit%202%7D%0A%20%20%20%3CBR%20%2F%3E%0A%20%20%20else%0A%20%20%20%3CBR%20%2F%3E%0A%20%20%20%7B%0A%20%20%20%3CBR%20%2F%3E%0A%20%20%20if((Get-DAConnectionStatus).status%20-eq%20'ConnectedLocally'%20-or%20(Get-DAConnectionStatus).status%20-eq%20'ConnectedRemotely')%0A%20%20%20%3CBR%20%2F%3E%0A%20%20%20%7Bexit%203%7D%0A%20%20%20%3CBR%20%2F%3E%0A%20%20%20else%0A%20%20%20%3CBR%20%2F%3E%0A%20%20%20%7Bexit%200%7D%0A%20%20%20%3CBR%20%2F%3E%0A%20%20%20%7D%0A%20%20%3C%2FCODE%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20our%20case%20we%20check%20for%20both%20our%20main%20VPN%20profiles%2C%20as%20well%20as%20the%20older%20Direct%20Access%20connectivity.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EWe%20then%20make%20sure%20to%20set%20that%20step%20to%20%3CSTRONG%3E%20%22Continue%20on%20Error%22%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F93844i74936378F99AEAD0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20%2F%3E%3C%2FSPAN%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EWe%20can%20now%20use%20the%20%3CEM%3E%20v_TaskExecutionStatus%20%3C%2FEM%3E%20table%20in%20the%20database%20to%20gather%20data%20on%20the%20connectivity%20of%20all%20upgrade%20attempts.%20Combining%20that%20connection%20information%20with%20the%20other%20details%20of%20the%20task%20sequence%20execution%20we%20are%20able%20to%20track%20both%20the%20number%20of%20users%20upgrading%20remotely.%26nbsp%3B%20We%20can%20also%20track%20the%20errors%20that%20are%20occurring%20on%20these%20attempts%20to%20improve%20the%20process%20for%20the%20next%20set%20of%20upgrades%20through%20a%20PowerBI%20Dashboard.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F93845i981AB943F98B76AD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20%2F%3E%3C%2FSPAN%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CEM%3E%208%2F31%20-%20Added%20clarity%20regarding%20enabling%20the%20Pre-download%20feature%20as%20it%20is%20still%20in%20pre-release.%20%3C%2FEM%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20%3CSTRONG%3EDisclaimer%20%3C%2FSTRONG%3E%20%3A%20This%20task%20sequence%20configuration%20may%20not%20be%20explicitly%20supported%20and%20this%20blog%20post%20is%20for%20informational%20purposes.%20%3CSTRONG%3E%20This%20post%20is%20provided%20%E2%80%9CAS%20IS%E2%80%9D%20with%20no%20warranties%20and%20confers%20no%20rights.%20%3C%2FSTRONG%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-377251%22%20slang%3D%22en-US%22%3E%3CP%3EFirst%20published%20on%20TECHNET%20on%20Aug%2028%2C%202017%20Hi%20everyone.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-377251%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECreators%20Update%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eos%20upgrade%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Epre%20download%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESCCM%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESystem%20Center%20Configuration%20Manager%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Etask%20sequence%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Evpn%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

First published on TECHNET on Aug 28, 2017
Hi everyone. My name is Kacey Krehbiel. I'm a service engineer responsible for application and operating system upgrade deployments within Microsoft. Today I'd like to focus on one small aspect of our operating system upgrade process.

Over the past couple of operating system upgrade cycles we have seen a huge increase in the numbers of users that are upgrading their operating system while being connected over VPN. An edge case that in the past would be dismissed with an answer of, "Wait until you're in the office," or "Sorry, the system wasn't built for that," is not acceptable. Users may never go into the office. With that in mind, when designing an OS upgrade using a Configuration Manager task sequence we need to make sure that we are making special consideration for remote clients.

Choosing between Windows 10 Servicing and Operating System Upgrade Task Sequences

A note on Windows 10 Servicing: Windows 10 Servicing is a great solution for installing Windows 10 feature updates for many environments that simplifies many of the challenges of a large-scale feature update deployment. Due to unique internal deployment timelines, as well as some customization specific to our environment, we have opted to use the Operating System Upgrade Task Sequence feature present in Configuration Manager. We encourage everyone to research the capabilities of Windows 10 Servicing, and determine if it is appropriate for your environment.

Pre-Download

The first hurdle we need to overcome with remotely connected clients is ensuring that the download of the upgrade package is successful. If we get one chance at time of enforcement to download a 4GB operating system package, we are going to have some failures if users are getting that one chance while seated at a coffee shop. Pre-download helps to reduce that issue by increasing the number of times we attempt download before mandatory enforcement.

Every one of our required operating system upgrade deployments is available to users for at least 7 days before the mandatory date. This allows for remote users (and in-office users) plenty of warning before the mandatory enforcement.  It allows some remote users to be pro-active and initiate the upgrade when they are in the office that one day of the week, but most germane to our current topic, it allows for 7 days of attempted pre-downloads.

Pre-download is still a pre-release feature, so if you choose to use it, it will first need to be enabled. You can find it under Updates and Servicing -> Features -> "Pre-release - Task Sequence content pre-caching." Once you have the feature enabled, setting up pre-download is a simple process.  In the Upgrade Operating System Package properties, the Data Source tab will have radial buttons for x86 or x64 architectures. Pre-1706 you will need to put in the language code of the package, in 1706 simply select the language you wish from the drop-down menu.





If you have multiple upgrade packages in your task sequence you will still need to put in logic to specify which package you want to use.





When creating the task sequence deployment, to enable pre-download, select the "Pre-download content for this task sequence" box.





Task Sequence Design

Pre-download of the operating system upgrade package solves the largest outright failure scenario for a remotely connected client but we want to make sure that we are optimizing the task sequence itself to reduce other download failures, as well as reduce any delays that loss of connectivity may create.

To reduce any other download failures, we're minimizing the number of other packages we're sending during operating system upgrade. If application or driver updates need to be installed before operating system upgrade occurs, consider sending those separately before the upgrade. If you have your task sequence set to "Download content locally when needed by the running task sequence" keep in mind that after operating system upgrade completes VPN connectivity may no longer exist. In such cases you will want to ensure that any packages are downloaded locally before the upgrade step occurs.

This loss of VPN connectivity after upgrade is important to keep in mind in the actual order of your task sequence steps. The task sequence is going to want to send status updates for every step it completes, even if it is a step that it evaluates as skipped.

In our task sequence we have 32-bit and 64-bit packages of 5 different languages. If a client doesn't have MP connectivity it is still going to attempt to send status updates for each upgrade step it skips, adding a substantial amount of time into the process. Because of this, we put the upgrade steps in reverse order of popularity. The processor architecture/language combination with the fewest devices in our environment goes first, followed by the second fewest, all the way to the most common (in our case English 64-bit.) Organizing it this way allows the most people to have the least amount of delays while keeping a single task sequence.





Keeping those status delays in mind, we minimize the number of post-upgrade steps. We also make sure that the post-upgrade steps are not essential to a successful upgrade and a functioning device. Reporting of task sequence execution can be unreliable after MP connectivity is lost (an issue we are working the development team on,) and we don't want unreliable reporting of any essential action.

Reporting

Perhaps the most essential addition we've added within our task sequence is one that doesn't perform a purpose in the upgrade, but assists in reporting and troubleshooting. Right before the upgrade step occurs we run a script to detect if the client is connected via VPN. This allows us to quickly determine if the attempt was made over VPN without checking any log or contacting the user. We're able to categorize top errors based on connectivity type, track the overall success of upgrade over VPN, and see the percentage of upgrades that are being attempted over VPN.

The Remote Connectivity Check can be a simple PowerShell script to look for whatever remote connectivity solutions exist in an environment:

$ErrorActionPreference = "SilentlyContinue"
if((Get-NetConnectionProfile -Name [domain.com]).InterfaceAlias -in ("[VPN Name]","[Second VPN Name]")){exit 2}
else
{
if((Get-DAConnectionStatus).status -eq 'ConnectedLocally' -or (Get-DAConnectionStatus).status -eq 'ConnectedRemotely')
{exit 3}
else
{exit 0}
}


In our case we check for both our main VPN profiles, as well as the older Direct Access connectivity.



We then make sure to set that step to "Continue on Error"





We can now use the v_TaskExecutionStatus table in the database to gather data on the connectivity of all upgrade attempts. Combining that connection information with the other details of the task sequence execution we are able to track both the number of users upgrading remotely.  We can also track the errors that are occurring on these attempts to improve the process for the next set of upgrades through a PowerBI Dashboard.





8/31 - Added clarity regarding enabling the Pre-download feature as it is still in pre-release.

Disclaimer : This task sequence configuration may not be explicitly supported and this blog post is for informational purposes. This post is provided “AS IS” with no warranties and confers no rights.