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

Access to the CustomSettings.ini is denied.

$
0
0

Hello all!

So I am trying to set up MDT Deployment Share and I am keep getting "Access to the CustomSettings.ini  is denied."

Here is my set up:

On work PC(where MDT is installed) I am connecting to 192.168.1.1 linux box that has SAMBA enabled and allappropriate permissions are set up. I want emphasize appropriate because if I go to there share on Win machine and create/modify files and folder I have no problems. The only problem is when I try to create a Deployment Share it fails on that particular file "CustomSettings.ini" I went on the linux box and gave that share all possible permissions and still no luck!

I am suspecting MDT creates files under some strange permissions so that only one files gets that problem.

Here is the log:

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

Performing operation "New Drive" on Target "Name: DS001
Provider: MDTProvider Root: \\192.168.1.11\wintoxp\DS".

Performing operation "new" on Target "deployment share".

Initializing a new deployment share
Initializing scripts and tools.

Access to the path '\\192.168.1.11\wintoxp\DS\Control\CustomSettings.ini' is denied.

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

Does anybody else have such problem?

Any help is greatly appreciated!


copy logs bug?

$
0
0

Hi

I have SCCM 2012 r2 server with MDT 2013 installed (to support Windows 8.1 OSD). When deployment is set to "Download content locally..."MDT step "copy logs" works OK but when this option is set to "Access content directly from a distribution point..." not.

in smsts.log exit code is 0 but:

Microsoft Deployment Toolkit version: 6.2.5019.0    InstallSoftware    2014-02-25 08:55:57    3420 (0x0D5C)
The task sequencer log is located at C:\Windows\CCM\Logs\SMSTSLog\SMSTS.LOG.  For task sequence failures, please consult this log.    InstallSoftware    2014-02-25 08:55:57    3420 (0x0D5C)
Validating connection to \\xxx.xxx.waw.pl\osd\logs    InstallSoftware    2014-02-25 08:55:57    3420 (0x0D5C)
Mapping server share: \\xxx.xxx.waw.pl\osd    InstallSoftware    2014-02-25 08:55:57    3420 (0x0D5C)
Property UserDomain is now = xxxx InstallSoftware    2014-02-25 08:55:57    3420 (0x0D5C)
Property UserID is now = sccm.xxxx    InstallSoftware    2014-02-25 08:55:57    3420 (0x0D5C)
<Message containing password has been suppressed>    InstallSoftware    2014-02-25 08:55:57    3420 (0x0D5C)
Unable to connect to share: Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.    InstallSoftware   2014-02-25 08:56:03    3420 (0x0D5C)
( 0x800704C3 ) , trying to connect without username.     InstallSoftware    2014-02-25 08:56:03    3420 (0x0D5C)
Found Existing UNC Path Z: = \\xxxx.xxxx.waw.pl\osd    InstallSoftware    2014-02-25 08:56:03    3420 (0x0D5C)
Successfully established connection using supplied credentials.    InstallSoftware    2014-02-25 08:56:03    3420 (0x0D5C)
An invalid SLShare value of \\xxxx.xxxx.waw.pl\osd\logs was specified.    InstallSoftware    2014-02-25 08:56:03    3420 (0x0D5C)
About to run command: cmd.exe /c vssadmin resize shadowstorage /For=C: /On=C: /MaxSize=5%    InstallSoftware    2014-02-25 08:56:04    3420 (0x0D5C)
Command has been started (process ID 3628)    InstallSoftware    2014-02-25 08:56:04    3420 (0x0D5C)
  Console > vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool    InstallSoftware    2014-02-25 08:56:05    3420 (0x0D5C)
  Console > (C) Copyright 2001-2013 Microsoft Corp.    InstallSoftware    2014-02-25 08:56:05    3420 (0x0D5C)
  Console > Successfully resized the shadow copy storage association    InstallSoftware    2014-02-25 08:56:05    3420 (0x0D5C)
Return code from command = 0    InstallSoftware    2014-02-25 08:56:05    3420 (0x0D5C)
Process completed with exit code 0    InstallSoftware    2014-02-25 08:56:05    3420 (0x0D5C)
Cleaning up default wallpaper registry keys    InstallSoftware    2014-02-25 08:56:05    3420 (0x0D5C)
zticopylogs processing completed successfully.    InstallSoftware    2014-02-25 08:56:05    3420 (0x0D5C)
Command line returned 0    InstallSoftware    2014-02-25 08:56:05    3420 (0x0D5C)
Process completed with exit code 0    TSManager    2014-02-25 08:56:05    284 (0x011C)

SLShare is proper UNC path and with "download content locally" option works ok. "Access content directly" option is much more faster for me and I'd like to have logs on server share...

is it a bug?

MDT 2013 Issues applying windows updates

$
0
0

I am using the following software versions to deploy a Windows 7 SP1 x64 Lite-Touch Installation to a test machine that I am running:

Windows Server Version:  Windows Server 2012 Enterprise 64-bit

Microsoft Deployment Toolkit Version:  2013

Windows ADK Version:  8.1

I ran a default Task Sequence deployment and had no issues with the process and everything deployed fine. 

However, I now wish to customize this installation and include the Windows updates that were released after SP1.  From my understanding I can accomplish this task three ways.  The first is to let the system go out and get the updates but I tried this process and the deployment time is around 2 hours.  The second way to is to add the packages into the task sequence and the the third is to inject them into the wim.

I have imported a small group of updates into the packages folder.  Next I verified that the apply patch option in the preinstall phase was enabled and the selection was set to all packages.  The problem I run into is that none of the updates seemed to apply.  I then attempted it again by disabling the apply patch option and placing the task for install updates offline in the post-install phase and when that didn’t work I also created a custom task in the state restore phase.  No updates applied in any of these attempts.

From what I can tell (but am uncertain) the updates were not being applied since the unattended.xml did not have the packages listed there.  I tried adding the packages to the unattended file and on my next attempt using each of the phases I receive a dism.exe error.

My question is as follows:

If I wish to add updates directly to the wim file or if I want to add them into the task sequence for deployment (I would like to complete things both ways for comparison) how should I go about accomplishing this task?

DISM.EXE error while applying unattend.xml during LTI deployment with MDT 2013 - Reproducible bug

$
0
0

The problem I am about to describe doesn't exist with MDT 2010 update 1, MDT 2012, or MDT 2012 update 1 when using the either WAIK or ADK.  I have not attempted to reproduce this problem with older versions of MDT or pre-release versions of MDT 2013.  The problem definitely exists with MDT 2013 RTM.

This is the same problem as Inconsistent DISM.EXE error when applying unattend.xml during LTI deployment - Possible bug!, but this is more concise and provides details on how to reproduce the problem. 

Status as of 2014-01-08 (Previous workaround deemed unusable - core bug still present)

Keith Garner determined that DISM.EXE was failing while processing the <offlineServicing> section in the unattend.xml file.  Removing this section resolves the issue, but this section is needed to inject drivers into the image during WinPE and is needed  The presence of this section didn't cause any problems with previous releases of MDT/ADK - it is likely an interoperability bug within the DISM.EXE tool.  See replies below for details.

Problem:

When deploying Windows 7 Pro x64 w/SP1 and enabling/disabling features using unattend.xml, deployment often (almost 100% of the time) fails with this dialog:

Steps to reproduce ("bare-metal"):

  1. Create a new, clean virtual machine (I used VMware Workstation)
  2. Boot the VM with the Windows 7 x64 Pro w/SP1 Volume Licensing DVD
  3. Install Windows with default options, OOBE choices:
    • User name = Tony
    • Computer name = Tony-PC
    • Password = tony
    • Windows Update = recommend settings
    • Time zone = Eastern
    • Location  = Work network
  4. Install VMware Tools and reboot
  5. Configure Internet Explorer using express settings
  6. Configure Windows Update to get updates for other Microsoft products
  7. Apply all available Windows Updates*
  8. Install ADK for Windows 8.1 (http://www.microsoft.com/en-us/download/details.aspx?id=39982)
    • Installs .NET Framework 4.5 automatically
    • Accept all default installation choices
  9. Install MDT 2013 x64 (http://www.microsoft.com/en-us/download/details.aspx?id=40796)
    • Accept all default installation choices
  10. Apply all available Windows Updates again*

*When installing Windows Updates:

  • Select all important updates, except Internet Explorer 11
  • Select all optional updates, except Bing Bar, Bing Desktop, Security Essentials, and Silverlight.

Launch MDT Workbench:

  1. Create a new deployment share
    • Accept all defaults:  C:\DeploymentShare, DeploymentShare$, etc.
  2. Import Operating System:
    • Full set of source files
    • Source Directory = CD drive containing the Windows 7 x64 Pro w/SP1 Volume Licensing DVD.
    • Accept remaining defaults
  3. Create a new task sequence:
    • ID = Test
    • Name = Test
    • Template = Standard Client Task Sequence
    • OS = Windows 7 Professional
    • Key = Do not specify at this time
    • Settings:
      • Full name = Tony
      • Organization = Tony
      • IE Home Page = about:blank
    • Admin password = tony
  4. Update Deployment Share, and completely regenerate the boot images.

From another new, clean virtual machine:

  1. Boot from the "C:\DeploymentShare\Boot\LiteTouchPE_x64.iso" file from MDT computer.
  2. Run the Deployment Wizard, and enter credentials (tony, tony, . )
  3. Launch the created Task Sequence (accept defaults, click keep clicking ‘next’):
    • Computer name = autogenerated
    • Join a workgroup = WORKGROUP
    • Do not move user data and settings
    • Do not restore user data  and settings
    • Locale and time = accept defaults
    • Do not capture an image

At this point, the deployment will succeed every time.

Now, edit the task sequence and edit the unattend.xml:

  1. Add the Foundation Package to the answer file
  2. Edit the foundation Package:
    • Disable MediaPlayback > MediaCenter
  3. Save file and close task sequence.

Deploy the task sequence again using the directions above (for each attempt, I used a new, unused VM), and it will fail nearly every time!

Notes:

  • Enabling/Disabling features via unattended.xml is a supported and documented process.
  • I suspect a bug with DISM.EXE v6.3 while operating on Windows 6.1 images.
  • I realize that adding"Install Roles and Features" and/or "Uninstall Roles and Features" task sequence items may be a workaround for this problem (I haven't tried it), but it is not asolution to the problem.



MDT 2010 - Can't install OS on disk 1

$
0
0

Hi

We are running MDT 2010 SP1 at one of our customers, and having problems with Windows 7 installation on a specific model (Lenovo T440). The model comes with two disks:

Disk 0 (SSD) - 14GB
Disk 1 (HD) - 465GB

Our normal task sequence works fine if a machine only has one disk.

I want my OS to be installed on disk 1 and disk 0 empty formatted.

In my task sequence under "New Computer only" I have made two new format steps with a WMI query so it only runs if the machine is a Lenovo T440.

SSD

HD:

And a new step when installing OS with the same WMI query where disk 1 and partition 1 is selected.

But the task sequence install the OS on the SSD Disk (Disk 0) and fails.

Any ideas?

Regards,
FC

Trouble deploying an image

$
0
0

My Goal:

Deploy a custom Image to a laptop using MDT via a external USB.

What I have done so far:

Created the Task sequence

Created Media on the deployment share

Created the custom sysprepped Image

Updated the task sequence to point to the custom image and updated the media so that the content is present on the share

Formatted and prepped an external drive

Copied the contents of the "Content" directory to the root of the external drive.

What is happening:

The target system boots from the USB fine and runs through the task sequence, however instead of imaging the target laptop it actually applies the image to the external drive instead.  I have tried playing with the diskpart, and image target settings in the task sequence to no avail.  When I open a command window pre task sequence in PE, diskpart shows that the target laptop is the 0 drive and the usb is the 1 drive, but it keeps imaging the external drive.

Any help with this would be greatly appreciated.

Any differences between databases for MDT 2012 and MDT 2013?

$
0
0
We're setting up a new 2012 R2 server for MDT 2013. Our thought was to point to the database we use for MDT 2012 deployments by manufacturer and model. Are there any difference between the database integration in MDT 2012 and MDT 2012? Do we gain anything by creating a new database for MDT 2013?

Orange County District Attorney

MDT 2012 Blue Screen AHCIX64s.sys

$
0
0

Hello All,

I am having a problem after updating my deployment share image for MDT 2012.  I am pretty sure the deployment share had not been updated in about 4-5 months and we had recently received some new hardware and added new drivers to MDT.  I added the drivers, and 3 of the 4 models booted just fine, the 4th claimed it didn't have drivers.

SO I went through and updated the boot image and added the new image to WDS.  Now when I attempt to netboot any machine, I get a BLUE SCREEN OF DEATH referencing ahcix64s.sys.  I went through every driver I could find for the last 6-12 months that referenced ahci and unchecked "enable this driver".  I then went through and updated the deployment share and added the new image to WDS.  I am still getting the BLUE SCREEN OF DEATH.  

Any suggestions on how to fix this?  DO I need to delete all the drivers, as opposed to unchecking the "enable this driver"?  

Joe


MDT 2010 Deploy, DHCP Error

$
0
0

hi all

from time to time we I have with MDT deploy Windows 7.

Error: "A connection to the deployment share  could not be made. DHCP lease was not optained for any networking." START - cmd ipconfig show's a correct DHCP IP Address. There was a new Icon/Link "resume task sequence"  on Desktop. After I click "resume Task sequence" it works fine (without reboot, without modification)

DHCP lease time is 1 day. Workstation is fast and have SSD Drive. Is this a timing problem.

 


Chris

MDT 2013 and USMT tool (XP to Windows 7)

$
0
0

Currently have MDT 2013 running, however now need to upgrade a few offsite desktops from xp to windows 7.

Wanted to use USMT to backup and then restore data after image has been pushed onto machine.

Keep getting error on capturing data. I have installed waik and copied the usmt tools to the deployment share but still no joy.

Custom Sequence - Ending the sequence.

$
0
0

Hi Everyone,

I'm creating a custom MDT task sequence currently and I'm looking for how I can signal the end of a task sequence deployment and display the summary of the sequence.  Right now my custom sequence works, but never displays a rundown of what just happened.  Any assistance would be appreciated.

Ryan

MDT 2013 and DART remote control issues

$
0
0

Hi!

Since few manipulations in my console, I'm notable to controlmy computerswith the built-inMonitoringmenubutton"DaRT Remote Control". This error message appears: "MMC has detected an error in a snap-in and will unloadt it". After many verifications and tests by importing DART Tools v7, v8 or v801 x86 and x64, and because there's no findable answer on Internet, I ask you guys to help me if it's possible and if you know what to do. I'm actually on a Windows Server 2008 R2 x64 and with a MDT x64.

Here some additionnal informations about the trouble:

Unhandled Exception in Managed Code Snap-In / The system cannot find the file specified.

Exception type: System.ComponentModel.Win32Exception
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Microsoft.BDD.Workbench.MonitoringGeneral.buttonDaRT_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Thank you very much for your help in advance! And please forgive my writing mistakes ;P

Hugo

Win7 + IE10 Slipstream error

$
0
0

I am trying to install a test image with IE10 slipstreamed in and getting an error "Windows could not parse or process unattend answer file [C:\windows\Panther\unattend.xml] for pass [specialize]. A component or setting specified in the answer file does not exist."  I used an original Win7 Ent SP1 image + IE10 and then imported full source as if from original DVD / ISO.  Then created a new sequence and problem still occurs.

I think it is being caused by:

<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <IEWelcomeMsg>false</IEWelcomeMsg>
</component>

Which I am not sure is a setting I set in MDT setup or a default setting?  This setting has been removed from IE10.

MDT2013 - USB Install Error

$
0
0

Hi Guys.

I've been using USB sticks with the MDT image on them to image PC's for quite a while and have never had any problems, however since i have upgraded to MDT 2013 and have updated the media content none of the USB sticks will work.

I can boot into them and it looks as though it is going to load into the setup window, however it then just comes up with a blue screen saying that the PC ran into a problem and giving the error: IRQL_NOT_LESS_OR_EQUAL.

Nothing has changed on the deployment share apart from it being upgraded.

Any help.

Cheers.

Media Deployment - Using TSEnv Variables

$
0
0

Hi Guys

I'm having a few problems with a USB Media deployment with a specific application that I roll out via a Powershell script. I decided to do it with a powershell script as we use different scalability servers depending on the site the PC is used at, so I scripted a check based no name to write in the correct scalability server.

The deployment works fine from the server as I have 'hard-coded' the deployment share path for the application installer into the script (now I understand the TSEnv part a bit better, I think I can use %DEPLOYROOT% instead), but obviously when deploying from media I don't have a pre-defined share (Z:) to point at and the USB drive letter could be different. I found a great post on Scriptimus Ex Machina advising how to pause a sequence and access TSEnv variables, but it doesn't seem applicable to media deployments as I do not have c:\MININT\Modules folder on the PC I'm deploying, so I cannot import ztiutility.

If I import it from the location on the USB key, it works and I can see TSEnv and all the variables, but why doesn't a media deployment copy this across to the C: drive?

Any suggestions on how to get this working would be appreciated.

Maybe I should copy the install files to the C: drive and install from there?


Unable to mount the WIM, so the update process cannot continue.

$
0
0

Hi , I am getting this error message when I try to update deployment share for AMD x64. I have MDT in a separate server and WDS in separate server. once the WIM is updated , I map the other server and update the boot image to the WDS to deployment.

This  is the error message.

=== Making sure the deployment share has the latest x86 tools ===

=== Processing LiteTouchPE (x86) boot image ===

Building requested boot image profile.
Determining if any changes have been made in the boot image configuration.
Loading the existing boot image profile for platform x86.
Calculating hashes for requested content.
Changes have been made, boot image will be updated.
Windows PE WIM D:\Deployment Shares\AMD\Boot\LiteTouchPE_x86.wim will be used.
Unable to mount the WIM, so the update process cannot continue.

=== Completed processing platform x86 ===

=== Making sure the deployment share has the latest x64 tools ===

=== Processing Generic (x64) boot image ===

Building requested boot image profile.
Determining if any changes have been made in the boot image configuration.
Loading the existing boot image profile for platform x64.
Calculating hashes for requested content.
Changes have been made, boot image will be updated.
Windows PE WIM D:\Deployment Shares\AMD\Boot\Generic_x64.wim will be used.
Unable to mount the WIM, so the update process cannot continue.

=== Processing LiteTouchPE (x64) boot image ===

Building requested boot image profile.
Determining if any changes have been made in the boot image configuration.
Loading the existing boot image profile for platform x64.
Calculating hashes for requested content.
Changes have been made, boot image will be updated.
Windows PE WIM D:\Deployment Shares\AMD\Boot\LiteTouchPE_x64.wim will be used.
Unable to mount the WIM, so the update process cannot continue.

=== Completed processing platform x64 ===


=== Processing complete ===

Please help,

Thanks

Selection Profile Troubleshooting

$
0
0
I have set up my driver selection profiles using the OS/platform/make/model method.   Everything works fine, however after setting a new model up for imaging I would like to verify the appropriate driver selection profile is being used.   Is this information in one of the logs, or is there another test I can run to prove the correct profile is being used.  Thanks.

Silent installation of Microsoft Proofing Tools 2010 installs multiple "microsoft input langauges"

$
0
0

Hello,

i am having a (seperate of office-2010) silent installaton of microsoft office 2010 proofing tools.

The installations is working right, except one problem.

The installation is also installing (Microsoft Office IME)

Installation of these shared components aren`t not specified in my config.xml.

What can i change in my config.xml to disable the installation of these "office shared features" and only ALL proofing tools languages are installed.

Thx


MDT 2012 U1 - Windows 8 Pro and LTISuspend

$
0
0

Hi guys,

Part way through testing our deployment for Windows 8 and I'm looking at automating the image creation with MDT (as is the best practice).  I'm trying to use LITSuspend in the task sequence to install a couple of apps that need special attention while we test.

I was under the impression that you LTISuspend will pause the task sequence indefinitely until the script is run again from the desktop,  I am starting to find that this is not the case.  What I need to do is paus, install an application, do several restarts and then continue with the task sequence.  At the moment it will pause no problem, but when I restart, it continues with the 'Applying WinPE' and sysprep stages.

Is this the expected behaviour or is something going wrong? 

MDT and script problem

$
0
0

Hi, with mdt 2012 update 1, i have a script that change the name of the computer, so the script goes to the active directory looging for a UUID match and name and if he find it he change the name, this scipt work very well with MDT 2012 update 1,

But with MDT 2013, i cannot make it function properly, so maybe i miss something, in the boot image when I build it, but cannot find what is missing.

here the script that i got, can someone help me to see what's wrong.

Thank in advance and sorry for my english :)

<job id="ZTIConfigure">
<script language="VBScript" src="ZTIUtility.vbs"/>
<script language="VBScript">
oLogging.CreateEntry "changement du nom du serveur en cours...", LogTypeInfo

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

Function ZTIProcess
ZTIProcess = Failure
Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20
WMIGUID = ""

If oEnvironment.Exists("UUID") Then
oLogging.CreateEntry "la variable d'environnement UUID existe...", LogTypeInfo
If len(oEnvironment.Item("UUID")) > 10 Then
WMIGUID = oEnvironment.Item("UUID")
oLogging.CreateEntry "got UUID from Environment " & WMIGUID, LogTypeInfo
End If
End If

If len(WMIGUID) < 10 Then
Set objWMIService = GetObject("winmgmts:\\.\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystemProduct", "WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)

For Each objItem In colItems
WMIGUID = objItem.UUID
oLogging.CreateEntry "got UUID from WMI " & WMIGUID, LogTypeInfo
Next
End If

If oEnvironment.Item("XXXXXX") <> "" then
adminaccompte= oEnvironment.Item("XXXXXXX")

End if

If oEnvironment.Item("XXXXXXXX") <> "" then
passwordadmin = oEnvironment.Item("XXXXXXXXXX")

End if

'MsgBox WMIGUID

Set oConnect = CreateObject("ADODB.Connection")
oConnect.Provider = "ADsDSOObject"
oConnect.Properties("User ID") = XXXXXXXX
oConnect.Properties("Password") = XXXXXXXXXX
oConnect.Properties("Encrypt Password") = True

On error resume next

oConnect.Open "Active Directory Provider", adminaccompte, passwordadmin
Set rs = oConnect.Execute("<LDAP://XXXXXXXXXXXXXXXXXXXXXXX")

For Each E in oConnect.Errors
oLogging.CreateEntry "conn err desc: " & E.Description, LogTypeInfo
Next
on error goto 0

Do While Not rs.EOF
strServeur = rs.Fields(0).Value
'MsgBox strServeur

oLogging.CreateEntry "walking servers... " & strServeur, LogTypeInfo
strGUID = ADSIOctetStringToHexString(rs.Fields(1).Value)
If GUIDUnScrambler(strGUID) = WMIGUID Then
oLogging.CreateEntry "Found a match in AD: " & strServeur, LogTypeInfo
oLogging.CreateEntry "Setting HostName: " & strServeur, LogTypeInfo
oEnvironment.Item("HostName") = strServeur
oLogging.CreateEntry "Setting ComputerName: " & strServeur, LogTypeInfo
oEnvironment.Item("ComputerName") = strServeur
oLogging.CreateEntry "Setting OSDComputerName: " & strServeur, LogTypeInfo
oEnvironment.Item("OSDComputerName") = strServeur
Exit Do
End If
rs.MoveNext
Loop
ZTIProcess = Success
End Function

Function ADSIOctetStringToHexString(arrbytOctet)
If lcase(TypeName(arrbytOctet)) = "null" Then
ADSIOctetStringToHexString = ""
Exit Function
End If

Dim k
OctetToHexStr = ""
For k = 1 To Lenb(arrbytOctet)
ADSIOctetStringToHexString = ADSIOctetStringToHexString & Right("0" & Hex(Ascb(Midb(arrbytOctet, k, 1))), 2)
Next
End Function

Function GUIDUnScrambler(strRawHex)
GUIDUnScrambler = Mid(strRawHex,7,2)
GUIDUnScrambler = GUIDUnScrambler & Mid(strRawHex,5,2)
GUIDUnScrambler = GUIDUnScrambler & Mid(strRawHex,3,2)
GUIDUnScrambler = GUIDUnScrambler & Mid(strRawHex,1,2)
GUIDUnScrambler = GUIDUnScrambler & "-"
GUIDUnScrambler = GUIDUnScrambler & Mid(strRawHex,11,2)
GUIDUnScrambler = GUIDUnScrambler & Mid(strRawHex,9,2)
GUIDUnScrambler = GUIDUnScrambler & "-"
GUIDUnScrambler = GUIDUnScrambler & Mid(strRawHex,15,2)
GUIDUnScrambler = GUIDUnScrambler & Mid(strRawHex,13,2)
GUIDUnScrambler = GUIDUnScrambler & "-"
GUIDUnScrambler = GUIDUnScrambler & Mid(strRawHex,17,4)
GUIDUnScrambler = GUIDUnScrambler & "-"
GUIDUnScrambler = GUIDUnScrambler & Mid(strRawHex,21)
End Function

</script>
</job>


Stephane Gagnon

Viewing all 11297 articles
Browse latest View live


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