When trying to add the DotNet 4.6.2 Application to MDT 8443 (ADK 1607) I keep getting the following:
Performing the operation "import" on target "Application".
Beginning application import
Copying application source files from D:\Apps\DOTNET462 to D:\DeploymentShare\Applications\DOTNET462
The filename, directory name, or volume label syntax is incorrect
The filename, directory name, or volume label syntax is incorrect
System.ComponentModel.Win32Exception (0x80004005): The filename, directory name, or volume label syntax is incorrect
at Microsoft.BDD.Core.DirectoryUtility.CopyFile(DEInfo sourceFile, DEInfo destFile, String destFullName)
at Microsoft.BDD.Core.DirectoryUtility.CopyDirectory(String theSource, String theDest)
at Microsoft.BDD.Core.DirectoryUtility.CopyDirectory(String theSource, String theDest)
at Microsoft.BDD.Core.DirectoryUtility.BeginCopy()
at Microsoft.BDD.PSSnapIn.ImportApplication.ProcessRecord()
I've changed the folder and exe name to something easier like "ABC" and the error still occurs.
The following is a copy of the PowerShell script generated from the "View Script" Button when creating the Application:
Import-Module "C:\Program Files\Microsoft Deployment Toolkit\bin\MicrosoftDeploymentToolkit.psd1"
New-PSDrive -Name "DS003" -PSProvider MDTProvider -Root "D:\DeploymentShare"
import-MDTApplication -path "DS003:\Applications" -enable "True" -Name "DOTNET462" -ShortName "DOTNET462" -Version "" -Publisher "" -Language "" -CommandLine "cscript.exe Install-DOTNET462.wsf"
-WorkingDirectory ".\Applications\DOTNET462" -ApplicationSourcePath "D:\Apps\DOTNET462" -DestinationFolder "DOTNET462" -Verbose
I get the same error with other Applications I tried to add, weirdly though some have worked.
I've created two new Servers (Both 2012R2 and 2016 Standard) and am having the same issue on both.
Anyone have any ideas?
Edit: Heres an image of the Error: