Quantcast
Channel: Microsoft Deployment Toolkit forum
Viewing all articles
Browse latest Browse all 11297

Application Imporing into MDTApplications from source repository

$
0
0

Hi techies

Can some one look in to this script, it's not working for me please help me to figure out this issue

# Import ALL Basic Code1 Applications In to MDT App


Add-PSSnapin Microsoft.BDD.PSSnapin

New-PSDrive -Name "DS003" -PSProvider MDTProvider -Root "E:\Application Deployment"


$APPS = Get-ChildItem ("\\Computer1\Toolbox$\Basic_Toolbox") | Select-Object Name 

$commonpath = "\\computer1\toolbox$\Basic_Toolbox\"
$name = "W7WXP_TI_10"

Foreach ($app in $apps) {

import-MDTApplication -path "DS003:\Applications\Basic Application" -enable "True" -Name $app.name -ShortName $app.name -Version "" -Publisher "" -Language "" -CommandLine "cscript.exe install.vbs" -WorkingDirectory $commonpath$app.name$name  -NoSource -Verbose

}




k sivakumar


Viewing all articles
Browse latest Browse all 11297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>