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

Running CMD as administrator

$
0
0

Ok, this is basic grade school stuff but I haven't figured it out.

I have a batch file in my image that I want to run during the TS at the desktop. I'd like to use the cmd step in my TS but the file has to be in system32 and needs admin authority.
All I need is the syntax for the "Command line" to use cmd.

Would that be: cmd.exe /c "runas /user:administrator C:\path to file" ? If so, do I also need credentials typed out in my TS?

Thanks!


Problems imaging a HP ProBook 650 G2

$
0
0

Hi,

We use WDS&MDT to deploy our Windows 7 images on different brands and models of machines. Recently we bought some HP ProBook 650 G2 laptops with which we have a lot of problems reimaging them. This is a summary of the problems when we try to deploy a Win 7 Pro x64bit image:
a. if I define the task sequence variable DriverGroup001 and create a folder for the Make and Model of the model, after the wim file is deployed, when Windows try to start for the first time I have BSOD. This happens even the Model folder doesn't have any drivers loaded.
b. the same thing happens if I don't define the TS variable and I just set the TS too look for all matching drivers 
c. if I define the TS variable, but I don't create the folder tree (Make&Model) then the image deploys and Windows starts with no drivers loaded indeed (and TS fails as expected because of lack of network connectivity to continue - no ethernet drivers).
d. I was only able to deploy a very old image (with a version of Windows last updated in 2014), but on the moment I updated it fails too 
e. if I deploy the image using "c" option and after I load the drivers manually, Windows works without problems. Also Windows works well if I deploy the old image and after the imaging process I update Windows manually. 
f. I checked the BDD.log but I couldn't find anything useful. 
g. I incline to think there is a problem somewhere between windows updates, model drivers and how MDT works (injecting the drivers), but I couldn't find anything helpful until now. 
Any suggestions are much appreciated! Thank you!



Upgrading Deployment Share Version Via Cli

$
0
0

Good morning,

I manage a lot of MDT servers and currently looking to update to MDT Version 8443 , Is there a way via CLI to force the deployment share to upgrade after the new version of MDT has been installed? I am only able to find a UI way of doing it and it would save time if there is a CLI way to do it. 

Thanks. 

Customsettings.ini processing

$
0
0

Can someone tell me why this will set the workgroup on a Surface Pro 3 to "JEFF":

[Settings]
Priority=Model,SetModelAlias,SetOSDComputerName,SetMachineObjectOU,School,Default
Properties=ModelAlias

[Model]
[Surface Pro 3]
JoinWorkgroup=JEFF

[SetModelAlias]
UserExit=UserExit-SetModelAlias.vbs
ModelAlias=#SetModelAlias()#

but this will not:

[Settings]
Priority=SetModelAlias,SetOSDComputerName,SetMachineObjectOU,School,Default
Properties=ModelAlias

[SetModelAlias]
UserExit=UserExit-SetModelAlias.vbs
ModelAlias=#SetModelAlias()#

[Surface Pro 3]
JoinWorkgroup=JEFF

I know that my %ModelAlias% variable is being populated correctly.  I have also tried:

[Settings]
Priority=SetModelAlias,SetOSDComputerName,SetMachineObjectOU,School,Default
Properties=ModelAlias

[SetModelAlias]
UserExit=UserExit-SetModelAlias.vbs
ModelAlias=#SetModelAlias()#
subsection=%ModelAlias%

[Surface Pro 3]
JoinWorkgroup=JEFF




How do I run Powershell or Batch scripts (locally) from a Task Sequence?

$
0
0

Hi All,

I am new to MDT 2013 and trying to fully automate my build of Windows 10 (or as much as possible).  To be clear I can't use GPOs since this machine is not networked joined since its going to act as my gold image. Once complete I'll add the automated step to capture back as a WIM and then its completely hands off.  Windows 10 16whatever comes out, I point the TS to that base OS ISO and just re-run since all the configuration is already captures.

To do this -- Essentially I have a TS that creates the base Windows 10 build, but then I have several powershell and command line scripts I want to run after the OS is built.  Where *exactly* do I put this in the Task Sequence sequence, and how do I *exactly* call the scripts?  Part of my issue maybe how I am trying to do this so bear with me.  

After the OS is built I have a script to copy my scripts and related files from $OEM$\$1 to C:\RUNONCE.  In this directory are installation files for Office 2016, Language Packs, etc.  This works perfect.  Its when I try to execute the scripts in C:\RUNONCE from the TS that fails.

For example, What I am *trying* to do is have the task sequence run setup.exe for Office 2016 from the C:\RUNONCE directory instead of installing it over the network from the %DEPLOYMENTSHARE%.  I dont know how to run a local command-line from a TS such as this:

C:\RUNONCE\OFFICE_2016_MUI\setup.exe /config c:\RUNONCE\office_2016_MUI\proplus.ww\config.xml

or 

Powershell –executionpolicy bypass "& 'c:\RUNONCE\win10regKeys.ps1'"

I've tried using cmd /c in front but my sequence always fails at that step.  But I also don't know would this step go post-installation?  After OS install?  

What is the best way to have this stuff run locally from C: drive in a task sequence?  Or is that not possible and I am restricted to installing from the network deployment share

Appreciate it


Christopher Westpoint - Infrastructure Architect


Pin Office to Windows 10 Taskbar in Windows 10

$
0
0

Hi,

Does anyone have an XML file that will pin office 2013 apps to the taskbar along with internet explorer and then unpin all other default apps such as Edge and Cortana? 

Thanks,

Bobby

How to automatic install applications on MDT

$
0
0

Hi,

I am using the 'MDT update 2' for deploying Windows 10 Pro and its applications, but i got a few questions about it. I can install the Win 10 Pro without issues, but i need to manually click the checkbox on every application i use ( Google Chrome, Firefox, Java, Adobe Reader, ... ). Is there a way to let MDT autocheck the boxes and install it himself? It works only on Office 2016 because there is an extra option to do that. I only got .exe files for Google Chrome, Firefox etc... . Also the MDT installs the OS and applications on the administrator account and not on a user account. I want him to install everything on a user account 'Jennifer' or some account that he creates itself and not on the administrator.

Thanks in advance,

Jochen

BDEKeylocation Customsettings

$
0
0

I am trying to set a network location for the following:

BDEInstallSuppress=NO
BDEWaitForEncryption=False
BDEDriveLetter=S:
BDEDriveSize=2000
BDEInstall=TPM
BDERecoveryKey=AD
BDEKeyLocation=network share

However, it keeps asking me for credentials to connect.. How can I supply those in my customsettings? I already have the following which joins the computers to AD. Service account...

JoinDomain=****
DomainAdmin=domjoin
DomainAdminDomain=****
DomainAdminPassword=*****

Is it using the same credentials?

I need help to automate this last hurdle.


Windows 2016 installs optional features during deployment

$
0
0

Hi,

I'm currently working on a PoC Windows 2016 VDI image. When I deploy the image with MDT I've noticed that while Litetouch is still running Windows 2016 is installing the optional feature dutch optical support in the background. I wonder why it does this.

Can this be disabled? Or can this be pre-added using DISM? I already did the Dism /get-features on the image but I can't find this optional feature.

Thanks.

Complete Guide to "customsettings.ini"

$
0
0

I've been Google'ing, searching TechNet and perusing the MDT Documentation Library for a complete guide to "customsettings.ini". While I've managed to find bits and pieces here and there, I've yet to find something that lists all the possible commands and variables. Does anyone know where I can find this?  Or even a giant example customsettings file with all the commands they know of with a line by line explanation of what each does. (It's OK to leave out the database parts.)

Thanks!!!

Unable to Create some applications within MDT 8443

$
0
0

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:


Windows 7 Reference Image size grows consistently

$
0
0

Good morning,

i'm running a seperate build system and for my build task sequence i stick to Johan Arwidmarks Tutorial: http://deploymentresearch.com/Research/Post/521/Back-to-Basics-Building-a-Windows-7-SP1-Reference-Image-using-MDT-2013-Update-2

I've set up a Hyper-V VM which runs once a month from a task schedule and starts my Windows 7 Build Task Sequence (via CS.ini and Machine ID).

Yesterday i've run this Task Sequence for testing multiple times, and every time my captured .wim File gets about 500 MB bigger ???

- First run ~ 5GB (it took about 2 hours)
- Next run ~ 5,5 GB
- Next run ~ 6 GB

and so on....

It's always the same TS, same Updates installed, same Applications. Every time the VM starts i delete the old disk and create a new one. So why is my .wim image size growing??? I have no idea...

Greetings from Germany :-)

TsProgressUI.exe - Application Error

$
0
0

Just upgraded from MDT 2013 to MDT 2013 Update 1. Now I'm randomly getting this error when task sequence is trying to start. Any ideas what is causing this?


Capture Image - Powershell Script Error "Object reference not set to an instance of an object"

$
0
0

I am using MDT to capture a Windows 10 image.

As part of the task sequence, I have a step that runs a Powershell script to remove several Windows Apps.

This is the error that I received when capturing the image.

"Cannot process argument transformation on parameter 'Package'. Object reference not set to an instance of an object"

How do I correct the error?
Is this an error with my script?

The powershell script resides in MDTBuild$\Scripts

This is the content of the Powershell script.

Remove-AppxPackage -package (Get-AppxPackage Microsoft.MicrosoftOfficeHub).PackageFullName
Remove-AppxPackage -package (Get-AppxPackage Microsoft.ConnectivityStore).PackageFullName

Best Practice: Updating My WIMs

$
0
0
Hi all. I'd like to know what the best practice method(s) is(are) for updating the captured windows images that I deploy via MDT. So for instance, let's say I have an image from the start of 2016. That image includes Windows OS and core applications (e.g. Office).

Everything else (adobe, web browsers, drivers, etc.) are deployed with the wim at deployment time. However, what about Windows updates? I've considered using WSUS with MDT but that considerably slowed deployment time so we'll be using WSUS outside of MDT later on. Also what about if I'd like to make changes to the wim? Changes like registry values or local/security policy?

Deploying from Media

$
0
0

Hi, we use MDT to deploy Windows 7 x64 Enterprise from Media. We often use large USB drives as source media. The problem that we run into is that if our deployment media has a large amount of free space on it, then MDT log files get created on the media instead of X or the C drive. For unknown reasons, when logs get placed on the external media, builds will fail, often caught in a loop and rebooting to no end. The only solution that we have found so far is to create a dummy file to take up most of the space on the USB before launching a deployment. There has to be a better way!! Is there a method to prevent MDT from writing logs on the USB?

Thanks

Patrick

Offline Media creation Fails If Split WIM is attempted

$
0
0

I'm trying to create offline media using MDT 2013 update 2 and the 1511 ADK from a Windows 10 1511 workstation.

When I create offline media with default settings it works, but makes WIM file too bug for UEFI boot.

I then edited the settings.ini to skipsplitwim = true.  It started splitting the WIM and then it failed with an error stating "Could not find file" with path to the wim file.  The wim file does have the .wim file extension as part of the file name.

What could cause this issue?

MDT 8443 - New to MDT - Some bugs with the wizard

$
0
0

Hey,

We are just in the process of putting MDT into our environment and have run into a couple of oddities with the HTA wizard I wanted to ask about out here.

1. On Surface Books the font is teeny tiny. Is there any way to fix the wizard for high DPI devices? The release notes say that it was fixed in the 8443 release so maybe I am doing something wrong.

2. On occasion the wizard will come up white or blank. I am thinking this might be due to a hiccup in the network maybe? I've seen a few posts about it on the internet but haven't been able to pin anything down for it.

Need to specify a second set of credentials in MDT

$
0
0

Here's the scenarios

All of our clients have users on other domains that do not have rights to access our deployment shares. We use a service account to gain access and to image. I have the need to set up and include the individual users credentials and the ability to pass them to install applications, logon to VPN, etc. I know how to make the user an admin, etc. I need an HTA box that will accept the input of the username, domain and password and be able to use them later in a the task sequence. My thought was create an HTA from the existing Credentials.xml and vbs and change the names to UserID1, UserPassword1, UserDomain1. Does anyone think this will work? I know I need to add the custom properties. Any help with validating their creds to AD would be helpful as well. As we do have a VLAN connection to their domain from our network.

Part 2, I have this working for just the username portion but when trying to pass the variable %UserNTID% in a command line to DISM it errors out. Even though it shows the correct info in the log files. If I remove %UserNTID% from V:\Backup\%UserNTID%\UserNTID%.wim and create the folder manually in another step it works fine. HELP?

Cmd.exe /c start /wait Dism.exe /LogPath:V:\DismLogs\%UserNTID% /LogLevel:4 /Capture-Image /Image-File V:\Backup\%UserNTID%\UserNTID%.wim /Capture-Dir:C:\ /Name "UserData" /ConfigFile:Z:\Scripts\ImageXConfig.ini

Here is the log file:

DISM   DISM.EXE: Executing command line: Dism.exe  /LogPath:V:\DismLogs\MIKES /LogLevel:4 /Capture-image /ImageFile:V:\Backup\MIKES\MIKES.wim /CaptureDir:C:\ /Name:"MyData" /ConfigFile:Z:\Scripts\ImageXconfig.ini

And the errors:

2017-01-12 08:54:49, Info                  DISM   DISM Provider Store: PID=1840 TID=1844 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
[1840] [0xc144012e]

2017-01-12 08:54:49, Error                 DISM   DISM WIM Provider: PID=1840 [WIMCloseWIM:(2707) -> Fail to flush file buffers] V:\Backup\MIKES\MIKES.wim (HRESULT=0x80070006) - CWimManager::WimProviderMsgLogCallback

2017-01-12 08:54:49, Error                 DISM   DISM WIM Provider: PID=1840 TID=1844 base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:1171 - CWimManager::Capture(hr:0x80070003)
2017-01-12 08:54:49, Error                 DISM   DISM WIM Provider: PID=1840 TID=1844

base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:4558 - CWimManager::InternalCmdCaptureBase(hr:0x80070003)

2017-01-12 08:54:49, Error                 DISM   DISM WIM Provider: PID=1840 TID=1844 Error executing command - CWimManager::InternalExecuteCmd(hr:0x80070003)

2017-01-12 08:54:49, Error                 DISM   DISM WIM Provider: PID=1840 TID=1844 base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:2186 - CWimManager::ExecuteCmdLine(hr:0x80070003)

2017-01-12 08:54:49, Error                 DISM   DISM.EXE: WimManager processed the command line but failed. HRESULT=80070003


Michael Luebbert Global Desktop Engineer C3I-Inc.

MDT 2013 - Different settings per task sequence

$
0
0

Hi,

I'm trying to create different settings for different TaskSequenceIDs. For one TS I wanted to join the pc to a workgroup and do SkipApplications=YES and for the other TS I wanted to join a domain and do SkipApplications=NO. But I can't get it to work for some strange reason.

I've tried and tested this solution https://gallery.technet.microsoft.com/scriptcenter/Different-settings-per-4faa55e9#content but it doesn't work.

I tried this too : http://www.the-d-spot.org/wordpress/2012/07/20/how-to-use-different-settings-per-task-sequence-with-mdt-2012/ but it doesn't work.

Perhaps MDT 2013 acts different then 2012 and 2010???? It would be nice if you could help me out on this one. :-)

Paul

Viewing all 11297 articles
Browse latest View live


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