Installing applications located on a server share, UNC path or D: drive

lupinlicious 131 Reputation points
2022-01-14T14:39:08.653+00:00

Dear all,

Applications I would like to add to MDT usually copies everything over to the deploymentshare. I have a few and large applications I would like to put on a separate hard drive or network share.

I found this blogpost: https://social.technet.microsoft.com/Forums/en-US/2d133f05-5aa4-497b-a164-ca767bfa47d8/installing-applications-located-on-a-server-share-unc-path-via-zticonnectwsf-stuck?forum=mdt

I have tried the following:

Option 1:

Quiet Install command: cscript.exe "%SCRIPTROOT%\ZTIConnect.wsf" /uncpath:\IP\Apps\PACKAGE-WINEDT-V10-Win10-64bit-PS\INSTALL.bat
Working directory: <left it empty>

and the result on the client end up with:

Property uncpath is now = \\IP\Apps\PACKAGE-WINEDT-V10-Win10-64bit-PS\INSTALL.bat 
Microsoft Deployment Toolkit version: 6.3.8456.1000
The task sequencer log is located C:\Users\<User>\Appdata\Local\Temp\SMSTS.LOG for task sequence failures, please consult this log
Validating connection to \\IP\Apps\PACKAGE-WINEDT-V10-Win10-64bit-PS\INSTALL.bat 
Already connected to server IP as that is where this script is running from.
Successfully connected to \\IP\Apps\PACKAGE-WINEDT-V10-Win10-64bit-PS\INSTALL.bat 
ZTIConnect processing completed successfully

and nothing gets installed

Options 2:

Quiet Install command: cscript.exe "%SCRIPTROOT%\ZTIConnect.wsf" /uncpath:\IP\Apps\PACKAGE-WINEDT-V10-Win10-64bit-PS\INSTALL.bat
Working directory: \IP\Apps\PACKAGE-WINEDT-V10-Win10-64bit-PS\

and the result on the client end up with:

Property uncpath is now = \\IP\Apps\PACKAGE-WINEDT-V10-Win10-64bit-PS\INSTALL.bat 
Microsoft Deployment Toolkit version: 6.3.8456.1000
The task sequencer log is located C:\Users\<User>\Appdata\Local\Temp\SMSTS.LOG for task sequence failures, please consult this log
Validating connection to \\IP\Apps\PACKAGE-WINEDT-V10-Win10-64bit-PS\INSTALL.bat 
Already connected to server IP as that is where this script is running from.
Successfully connected to \\IP\Apps\PACKAGE-WINEDT-V10-Win10-64bit-PS\INSTALL.bat 
ZTIConnect processing completed successfully

and nothing gets installed

Option 3:

Quiet Install command: "\IP\Apps\PACKAGE-WINEDT-V10-Win10-64bit-PS\INSTALL.bat"
Working directory: \IP\Apps\PACKAGE-WINEDT-V10-Win10-64bit-PS\

On the client it says "CMD does not support UNC path as current directories"

Any suggestions on how to solve this?

Thaank you!

Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
828 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. lupinlicious 131 Reputation points
    2022-01-15T16:05:39.887+00:00

    I think I got it solved by adding the following lines in the install.bat

    pushd \IP\DeploymentShare$\Applications\WinEDT-UNC
    Powershell.exe -WindowStyle Minimized -executionpolicy remotesigned -File "%~dp0Media\Deploy-Application.ps1"
    popd