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

Change text color from checked element in MDT wizard pane

$
0
0

Hello everyone!

I would like to color in green the name of application checked in Wizard pane.

It s a specific request from my boss^^

What files must be modified?

I have some idea but it's not working :

In ZTIConfigFile.vbs, line 701 :

BuildHTML_Element = "<div onmouseover=""javascript:this.className = 'DynamicListBoxRow-over';"" onmouseout=""javascript:this.className = 'DynamicListBoxRow';"" >"        BuildHTML_Element = BuildHTML_Element & "<input name=" & sEnabledElements & " type=" & sButtonStyle & " id='" & sFolderGuid & "-" & sGuid &"' value='" & sGuid & "' " & sIsChecked & "/><img src='" & sItemIcon & "' />"        BuildHTML_Element = BuildHTML_Element & "<label for='" & sFolderGuid & "-" & sGuid & "' class=TreeItem>" & sName & "</label>&nbsp;&nbsp;"& sComments & "</div>"

and in wizard.css i m trying to add some class like this :

input[type=checkbox] + label {color: #ccc;font-style: italic;}input[type=checkbox]:checked+ label {color: #f00;font-style: normal;}

Thank for your help.

Regards,




Check against AD and automatically name computers based on naming convention

$
0
0

Hello,

A customer has a requirement to automatically name computers as they are deployed and conform to a naming convention.

The way I'm thinking to achieve this is by getting the computers to check with AD what computer names already exist, elect a free one and then join with that to the domain.

Now on to the technical stuff:
Based on the research I've done so far, checking against AD for a list of computer names can either be done using PowerShell or using dsquery. Using PowerShell is more complicated as it requires the AD module and other pre-requisites and while getting that working seems possible it's just way more complicated than I'd like. dsquery is a lot more appealing as it seems that all it takes to make it work in the client OS is copying dsquery.exe and dskquery.dll and calling dsquery from the full local path (%windir%\system32\dsquery.exe).

The dsquery line that gives me the output I want is this:
dsquery computer "OU=Computers,DC=domain,DC=local" -o rdn

So if dsquery is the more reasonable choice, we now have to think how are we going to make that work during the deployment. The main problem is that dsquery can only work if the machine is a member of the domain. To solve that we either
a) create a "Run Command Line" step and use the "Run this step as the following account" option (probably won't work) or
b) join the computer to the domain using the auto-generated MDT name (which I believe is unique per machine unless I'm wrong) and then run dsqeury and rename the computer based on the first available name.

The next question is how do we get the deploying computer to generate a first available computer name after it has obtained the list of existing computers from dsquery. I found a couple of options online, mainly this guy here who seems to have worked out a batch file that does that (goes through a list of results and settles on the first unsued one):
https://bjtechnews.files.wordpress.com/2014/07/mdtsequential.pdf
Credit and original page: http://bjtechnews.org/2014/07/30/mdt-sequential-computername-workaround-finally/
One key element to his script is the creation and checks of text files. This is a great idea as another problem that can arise is what happens if you've got 10 computers (or more) deploying at the same time all getting the same dsquery result and electing the same name. To ensure every computer gets a unique name we need to create a text file as soon as a computer has elected a name, or even go a step back and get all computers to wait while each one elects a name and posts it in a text file for all to see and skip.

Does this sound like a good plan or is there a better way of doing this?

Thanks in advance!


Failure (5627) 50 run dism.exe error 000015fb

$
0
0

After installing the update to ADK / MDT, everything on my deployment server went wrong.

I am back at the point where my current images work again and I can update the deployment share without failure.

However I can not rollout a Windows 10 image with the above error, I have looked through all the ones I can find and find nothing with an exact match or fix, having tried many for about 3 days now. Here is a link to the bdd.log and the VSSETUP.log.

https://onedrive.live.com/redir?resid=704772BC9CE168B7!109&authkey=!AH4YGVZ2nczFRu0&ithint=folder%2cLOG

Please help as I am at a bit of a loss here.


Updating media content take a lot of time

$
0
0
We are using MDT 2012 and deployment method USB media. We have 12 Windows 7 images and 8 types of hardware models so about 3GB of drivers. We just setting up this environment so there are cases in which I need to change the driver for proper one - remove older and import newer one. After this operation I need to update media content which take a lot of time - about 1 hour. Deployment Share is about 90GB size. Then I need to copy all this content into USB media. Any idea how we can make this process faster? When we change only one or two drivers is there any way to update only these changes?

Lite Touch Deployment hangs on spinning green bar for one model

$
0
0

I'm banging my head against a wall trying to figure this out. I have a Windows 7 lite touch deployment image that I deploy to multiple models of PCs and laptops. It works fine for all models except one (HP 6005 SFF).

For this model, I PXE boot, manually approve the pending device in WDS, and the process starts. It downloads the correct LiteTouchDeployment wim file, then goes to a black screen with a green spinning bar and just stays there. I've left it alone for hours with no progress. Are there logs anywhere that I can see what's causing this? Where do I start looking?

Delete Registry Keys Via Task Sequence

$
0
0
Hello, I'd like to create a task sequence that will have a step where I can delete the HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate key. I've tried to create a .wsf file do this but it's failed. 

<job id="Z-Sample"><script language="VBScript" src="ZTIUtility.vbs"/><script language="VBScript">

' //***************************************************************************
' // ***** Script Header *****
' //
' // Solution: Solution Accelerator for Microsoft Deployment
' // File: Z-Sample.wsf
' //
' // Purpose: Template
' //
' // Usage: cscript Z-Sample.wsf [/debug:true]
' //
' // Customer Build Version: 1.0.0
' // Customer Script Version: 1.0.0
' // Customer History:
' //
' // ***** End Header *****
' //***************************************************************************

'//----------------------------------------------------------------------------
'//
'// Global constant and variable declarations
'//
'//----------------------------------------------------------------------------

Option Explicit

Dim iRetVal

'//----------------------------------------------------------------------------
'// End declarations
'//----------------------------------------------------------------------------

'//----------------------------------------------------------------------------
'// Main routine
'//----------------------------------------------------------------------------

On Error Resume Next
iRetVal = ZTIProcess
ProcessResults iRetVal
On Error Goto 0

'//---------------------------------------------------------------------------
'//
'// Function: ZTIProcess()
'//
'// Input: None
'//
'// Return: Success - 0
'// Failure - non-zero
'//
'// Purpose: Perform main ZTI processing
'//
'//---------------------------------------------------------------------------

' To Delete a Registry Key Value
Function RegDelete( sRegValue )
    RegDelete = oShell.RegDelete ( sRegValue )
end Function

Function ZTIProcess()

     iRetVal = Success
     ZTIProcess = iRetval
        ' Call function and delete key
        Dim sRegDeleteValue, sRegKey
        sRegKey = "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate"
        oLogging.CreateEntry "Preparing to delete Registry key " & sRegKey, LogTypeInfo
        sRegDeleteValue=regDelete(sRegKey)
End Function</script></job>

MDT 2013 Database/DeploymentShare Migration

$
0
0

I am having a challenge i wanted to see if anyone else out there has run into. I have recently migrated my MDT 2013 deployment share and SQLDB to a new server. After doing so I am having issues with MDT accessing the database via the customsettings/bootstrap.ini files. When SQL connection settings are set to TCP/IP I get errors in the deployment summary stating 'ZTI error opening SQL Connection: Login fail for user 'NT AUTHORITY\ANONYMOUS LOGON'. (-2147217843).  If I switch the cs.ini and SQL connection settings over to Named Pipes I get a different error which is 'ZTI error opening SQL Connection:[DBNETLIB][ConnectionOpen (Connect().]SQL Server does not exist or access denied (-2147467529)'. 

I have been scouring the internet and trying different things but nothing seems to work.  I am guessing it is just something really simple in the config between MDT and SQL.  Any assistance/guidance would be greatly appreciated.

RESOLVED - Cannot import captured wim

$
0
0

I am having problem importing a captured wim into the Operating Systems node in the workbench.  I do not get any errors during the import, the wim file ends up in deployment share\Operating Systems\ but not in the Operating Systems node in the workbench.  I've uploaded the image twice (with the same name), same issue.

I tried the import again by selecting the wim file in the \operating systems\ directory (instead of the \captures\ directory), it doesn't like my file name, but I can import it with a different name, then attempt to rename it once it's in the workbench (double-click the image, change the Operating system name field, which I've done many times before), then I get a message saying "The name specified already exists".  There is no image named this in the Operating Systems node.  I have tried opening and closing the workbench, closing and reopening the deployment share and restarting the server, nothing helps.

Ideas?



MDT error - FAILURE ( 5627 ): 112: RUN DISM.exe

$
0
0

MDT error - FAILURE ( 5627 ): 112: RUN DISM.exe can anyone shed any light on this one?


Will post logs as soon as I get them.

jmg


WIM is not visible after import

$
0
0

HI All,

 I just try to capture the current Win7 x64 bit laptop and found capture successfully and import to OS successfully but i cannot see the image?

This is the settings

[Settings]
Priority=Default
Properties=MyCustomProperty

[Default]
OSInstall=Y
SkipCapture=NO
DoNotCreateExtraPartition=YES
BackupDrive=ALL
ComputerBackupLocation=\\exmelmdt01\D$\CaptureOS
SkipAdminPassword=YES
SkipProductKey=YES
SkipComputerBackup=NO
SkipBitLocker=NO

This is the image info

 D:\DeploymentShare\Tools\x86>imagex /info "D:\DeploymentShare\Operating Systems\
CAPWIN7LAPTOP/capwin7laptop.wim"

ImageX Tool for Windows
Copyright (C) Microsoft Corp. All rights reserved.
Version: 6.1.7600.16385

WIM Information:
----------------
Path:        D:\DeploymentShare\Operating Systems\CAPWIN7LAPTOP\capwin7laptop.wi
m
GUID:        {78503906-d38e-4169-bf63-6cc2a131cf23}
Image Count: 3
Compression: LZX
Part Number: 1/1
Attributes:  0x8
             Relative path junction


Available Image Choices:
------------------------
<WIM>
  <TOTALBYTES>7386474590</TOTALBYTES>
  <IMAGE INDEX="1">
    <DIRCOUNT>5</DIRCOUNT>
    <FILECOUNT>4</FILECOUNT>
    <TOTALBYTES>256186798</TOTALBYTES>
    <HARDLINKBYTES>0</HARDLINKBYTES>
    <CREATIONTIME>
      <HIGHPART>0x01CDBD39</HIGHPART>
      <LOWPART>0xCB5F45EA</LOWPART>
    </CREATIONTIME>
    <LASTMODIFICATIONTIME>
      <HIGHPART>0x01CDBD39</HIGHPART>
      <LOWPART>0xCB61A74B</LOWPART>
    </LASTMODIFICATIONTIME>
    <NAME>CAPWIN7LAPTOPCDrive</NAME>
    <FLAGS>PROFESSIONAL</FLAGS>
  </IMAGE>
  <IMAGE INDEX="2">
    <DIRCOUNT>16398</DIRCOUNT>
    <FILECOUNT>80341</FILECOUNT>
    <TOTALBYTES>20521326708</TOTALBYTES>
    <HARDLINKBYTES>4852434907</HARDLINKBYTES>
    <CREATIONTIME>
      <HIGHPART>0x01CDBD3C</HIGHPART>
      <LOWPART>0xF407C000</LOWPART>
    </CREATIONTIME>
    <LASTMODIFICATIONTIME>
      <HIGHPART>0x01CDBD3C</HIGHPART>
      <LOWPART>0xF621B6FE</LOWPART>
    </LASTMODIFICATIONTIME>
    <WINDOWS>
      <ARCH>9</ARCH>
      <PRODUCTNAME>Microsoftr Windowsr Operating System</PRODUCTNAME>
      <EDITIONID>Professional</EDITIONID>
      <INSTALLATIONTYPE>Client</INSTALLATIONTYPE>
      <HAL>acpiapic</HAL>
      <PRODUCTTYPE>WinNT</PRODUCTTYPE>
      <PRODUCTSUITE>Terminal Server</PRODUCTSUITE>
      <LANGUAGES>
        <LANGUAGE>en-US</LANGUAGE>
        <DEFAULT>en-US</DEFAULT>
      </LANGUAGES>
      <VERSION>
        <MAJOR>6</MAJOR>
        <MINOR>1</MINOR>
        <BUILD>7601</BUILD>
        <SPBUILD>17514</SPBUILD>
        <SPLEVEL>1</SPLEVEL>
      </VERSION>
      <SYSTEMROOT>WINDOWS</SYSTEMROOT>
    </WINDOWS>
    <NAME>CAPWIN7LAPTOPDDrive</NAME>
    <FLAGS>PROFESSIONAL</FLAGS>
  </IMAGE>
  <IMAGE INDEX="3">
    <DIRCOUNT>1488</DIRCOUNT>
    <FILECOUNT>2314</FILECOUNT>
    <TOTALBYTES>1354433148</TOTALBYTES>
    <HARDLINKBYTES>131072</HARDLINKBYTES>
    <CREATIONTIME>
      <HIGHPART>0x01CDBD3D</HIGHPART>
      <LOWPART>0x314C0AED</LOWPART>
    </CREATIONTIME>
    <LASTMODIFICATIONTIME>
      <HIGHPART>0x01CDBD3D</HIGHPART>
      <LOWPART>0x3150CDAE</LOWPART>
    </LASTMODIFICATIONTIME>
    <NAME>CAPWIN7LAPTOPEDrive</NAME>
    <FLAGS>PROFESSIONAL</FLAGS>
  </IMAGE>
</WIM>




D:\DeploymentShare\Tools\x86>

Whats wrong?

Windows 10 Enterprise/Education post MDT deployment OneDrive will not launch

$
0
0


Trying to deploy Win10-1511 Education

Created my base image just fine and copied the profile using sysprep (see below)

Capture the image using DISM
Dism /Capture-Image /ImageFile:"z:\install.wim" /CaptureDir: z:\ /Name:"Windows Education"

The image will deploy with MDT just fine with the exception that OneDrive will not launch.
OneDrive is in the start menu and on the start screen where I put a tile but the process will not launch.
Click it and nothing.

If I just take the generated install.wim and replace it on my install media and do a "regular" media install OneDrive works just fine. OneDrive launches and I can use it.

Has anyone seen anything like this? I had this issue with 10240 and 10586 (1511)

Setup:

Server 2012 R2 (removed and redownloaded MDT and ADK)
MDT 6.3.8298.1000
DISM 10.0.10586.0
Windows 10.10586 (1511) Education and Enterprise

Commands used:

C:\Windows\System32\sysprep\sysprep.exe /audit /reboot /generalize /unattend:c:\options\CopyProfile.xml

Dism /Capture-Image /ImageFile:"z:\install.wim" /CaptureDir: z:\ /Name:"Windows Education"

----------------------

CopyProfile.xml


import .wim does not show up in workbench

$
0
0

Hello,

I did a capture of windows 7 virtual machine and afterwards i tried to import it as operation system, but it does not show up. No error screen nothing, import was succesfully. Am i missing something?

Other OS from source are importing fine.

regards,

Francis

Return Code 2 - ThinkVantage System Update Deployment

$
0
0

Good day all.

Here is a link to all deployment logs LINK (via Dropbox because OneDrive is currently showing an error 6).

In my environment, we primarily use Lenovo devices and as such we try incorporate their official applications in our Windows images. I have made attempts to install the ThinkVantage System Update application AFTER the OS install procedure but I've been unsuccessful here with the task sequence giving an error stating, "Application Install - ThinkVantage System Update returned an unexpected return code: 2".

I've tried this application install via LiteTouch.vbs where I allowed a computer's HDD to be wiped, the wim installed and then applications installed. All my other applications (web browsers, Flash, Reader DC, etc.) install without issue. I've also attempted it via Post OS Installation Task Sequence which also works for other apps.

The silent install parameters are: c:\>[System Update installation file name].exe/VERYSILENT /NORESTART (SOURCE). I downloaded the extract-able executable from Lenovo's site, I specified the folder to which the application's files would be extracted and then I imported that entire folder as the Install - ThinkVantage System Update application via the Add Application Wizard inside MDT.

Captured Windows 10 WIM file too small

$
0
0

So I am trying to capture my reference image of Windows 10. It goes through everything as normal but the WIM file it spits out into the captures folder is only 3.4mb. The wizard says complete though with no errors? I have sifted through some log files but with no answers.

Anybody have any ideas?

Joel

Install apps MDT

$
0
0

Been messing with this now for days. 

Im doing deployment still and i want it to install applications, i used to have error 2 

So i did this:

https://social.technet.microsoft.com/Forums/en-US/12faf5f9-0c1a-4922-9fdf-b249ed4588fa/unexpected-return-code-2-when-installing-applications?forum=mdt 

But i get network path not found and end of install screen, same with firefox

LOG: https://onedrive.live.com/redir?resid=8F390ABF958ECF54!2068&authkey=!ADs8zLSkNOkpbPk&ithint=folder%2clog

Screens:


How to remove "Skype Video" app when deploying?

$
0
0

Hi,

i hope sombody could shed some light into this issue i'm experiencing. I have a powershell script that removes provisioned apps and i also have a script that inställs a custom start layout through task sequences in MDT. This has been working great.

However since the new Windows 10 1511 release i keep getting this app "Skype Video", i haven´t found a way to remove it and also it messes up my start layout because it keeps appearing.

Has anyone been able to successfully remove this app?

MDT - Add ICD PPKG

$
0
0

I have a deployment task for Windows 10 and i would like to disable WiFi Sense.

I have checked ICD and it allows to disable WiFiSense so i have built a provision package, resulting in 2 files: a CAB file and a PPKG one.

From there how do i integrate it in my task sequence?

Lite Touch Deployment hangs on spinning green bar for HP 6005 SFF

$
0
0

I'm banging my head against a wall trying to figure this out. I have a Windows 7 lite touch deployment image that I deploy to multiple models of PCs and laptops. It works fine for all models except one (HP 6005 SFF).

For this model, I PXE boot, manually approve the pending device in WDS, and the process starts. It downloads the correct LiteTouchDeployment wim file, then goes to a black screen with a green spinning bar and just stays there. I've left it alone for hours with no progress. Are there logs anywhere that I can see what's causing this? Where do I start looking?


MDT 2013 u1 - problem with Windows 10 deployment - "Unable to find rules INI file"

$
0
0

Hi,

I'm starting my adventure with MDT 2013 (Update 1). I read tutorials and prepared my first OSD - Windows 10. Unfortunately I have found problem. After PXE boot, when I filled login and password which connect OSD to AD... nothing happened. I see background wallpaper without any progress bar.

I checked logs on machine and found in ZTIGather.log this: "Unable to find rules INI file". Do you have any idea what I have done wrong?

Thank you for all support.

Removing Windows 10 built in Apps

$
0
0

Hello,

I created and captured a Windows 10 Reference Build. During my build process I removed some of the Windows 10 built in Apps using a PS command. I made some changes to the profile. When I bring down the image I am seeing the profile changes are there but the built in Apps are back! I was unable to find a place in the unattended file to remove these apps. So does that mean I need to remove these apps each time I build new computer or do I need to do it a different way?<o:p></o:p>

Thanks


Viewing all 11297 articles
Browse latest View live


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