Run custom vbs before chosing task sequence
I want to load custom vbs script before selecting task sequence to display hardware info like CPU ram ...
What will be the best practice to run *.vbs - do I add that to Lite Touch.wsf
I did try to add:
Dim objShell
Set objShell = Wscript.CreateObject("WScript.Shell")
objShell.Run "msg.vbs"
to Lite Touch.vbs file, byt no msg is displayed
Looks like after adding
UserExit=msg.vbs
to rules
all other are ignored
Like SkipAdminPassword and other skip
any advice?
[Settings]
Priority=Default
Properties=MyCustomProperty
[Default]
_SMSTSOrgName=DinoPC.com
OSInstall=Y
UserExit=msg.vbs
SkipCapture=YES
SkipAdminPassword=YES
SkipBDDWelcome=YES
SkipProductKey=YES
SkipComputerBackup=YES
SkipBitLocker=YES
SkipUserData=YES
SkipSummary=YES
SkipComputerName=YES
SkipDomainMembership=YES
DeploymentType=NEWCOMPUTER
SkipLocaleSelection=YES
KeyboardLocale=0809:00000809
UserLocale=en-GB
UILanguage=en-GB
SkipTimeZone=YES
TimeZoneName=GMT Standard Time
UserID=setup
UserDomain=dinopc.local
UserPassword=Dinopc2013x
EventService=http://DINO-SRV-00:9800
maybe it's something to do with msg.vbs
Do I include my vbs in function?
Function UserExit(sType, sWhen, sDetail, bSkip)
UserExit = Success
End Function
Function SystemInfo()
My custom vbs End Function
Similar Messages
-
Run HP SSM in OSD Task Sequence
I am trying to get the HP SSM tool to run during OSD. If i run the command from within windows or use a batch file it works no problem but i cant seem to get it to work during the TS.
Any ideas?
Thanks!Ah HA! the .\ did it! yes, all is working now! I have the logs going to a separate logs share hence why the two connections. The reason I was confused why this didn't work is because in my old MDT task sequence before we were using
sccm I created a standard application called hp ssm with the quiet install command below which worked great.
cmd /c "\\sccm.legislature.intranet\sources$\ssm\SSM.EXE ./updates /Install /Accept /NOREBOOT /LOG:\\sccm.legislature.intranet\sources$\logs\ssm"
It's interesting that the way it works now in sccm is much more similar to my offline usb ssm installer where i have a bat file that i run in which it's contents are the following.
cmd /c "\ssm\SSM.EXE ./updates /Install /Accept /RB /LOG:..\logs"
Thanks! -
Running a SQL Script during task sequence
We are about to roll out new workstations to our entire enterprise. With that rollout comes updated software. The primary application that our end users work with on a daily basis uses SQL Express 2008 R2. A challenge that we've come across
is with a SQL script that we need to run, after the workstation has joined our domain. I have created a batch file, and copied it to the same directory as the AddADGroup.sql script. I have created an application in SCCM to run the batch file and
SQL script. The following is the batch file:
@echo off
Set Path=%path%;C:\Program Files\Microsoft SQL Server\110\Tools\Binn
echo.
SQLCMD -S .\SQLEXPRESS -U sausername -P xxxxxxxxxxxxxxxxx -i AddADGroup.sql
echo.
What I need to know is how to get this batch file to run, and be successful (about 4000 times). Is running this batch file the best practice? If not, what is the alternative?
Thanks! NateHi,
The following blog describes that how to deploy bat and script by Packages.
SCCM 2012 – deploying bat files and scripts
(Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice.
Microsoft does not guarantee the accuracy of this third-party contact information.)
Best Regards,
Joyce Li
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Download content locally when needed by running task sequence functionality with Windows PE.
I am trying to understand what happens when the "Download content locally when needed by running task sequence" option in chosen on a task sequence deployment. My assumption is that any needed packages would not be identified
and downloaded until task sequence is kicked off.
Using task sequence boot media, it looks likes a package has been obtained before any task sequence has been selected. I am assuming the package was acquired during the WinPE boot process. Can anyone confirm that this is
the correct behavior when using the "Download content locally when needed by running task sequence" option? If not, how would WinPE be obtaining the PS100292 SCCM package?
This specific package contains and HTA file. Only one of several task sequences deployed to the All Unknown Computers make a call to the HTA file. The one that does, the HTA call is the very first step of the task sequence.
--TonyHi everyone! I figured what was going on here. I was using an ESX VM and the package was stored on the c:\ from previous attempts and troubleshooting. Long story short, I had to rip the HDD from the VM and add a new one to set every thing back.
-
Running powershell at the end of a task sequence
I have a standard task sequence (non-MDT). I've added nothing to the task sequence except to join the domain. I created a powershell package to run a simple script to install Server 2012 R2 roles and features. Here is the script
import-module servermanager
Install-WindowsFeature -Name Web-Server, Web-WebServer, Web-Security, Web-ISAPI-Ext, Web-Windows-Auth, Web-Metabase, Web-WMI, Web-Scripting-Tools, rdc, BITS, NET-Framework-Features, Web-Asp-Net, Web-Asp-Net45, NET-HTTP-Activation
The script runs fine if I run it manually in an elevated prompt.
The program in the package has a command line of
powershell.exe -ExecutionPolicy bypass -File FileName.PS1
The behavior of running the package after the task sequence is:
1. Nothing in the CCMCache folder (although the client is fully installed)
2. In ExecMgr.log I see that the client has prepared the command line (as stated above), and tried to run the command line. I get a return code of 0 (even though the script file hasn't been downloaded
3. I noticed in ExecMge that the command line expands to ...\windows\system32\powershell\v1.0\powershell.exe. I only mention this because I read that powershell 1.0 doesn't support executionPolicy -bypass
Lastly, if I deploy the package to an already existing server, I see the script in the CCMCache, I see execMgr.log runs the command line, return code 0, nothing happens.
Any ideas?Can you test your script with psexec -s to emulate running as the SYSTEM account? This may be a limitation of the SYSTEM account.
Daniel Ratliff | http://www.PotentEngineer.com -
Mdt 2012 sp1 command line does not run from task sequence
Hi,
I am hoping I can explain this correctly. I am using MDT 2012 and having an issue with running command lines, powershell and batch files that I setup.
The task sequence is set to use an account called "MDTService". it has rights to join the domain but is not in the local admin group of the reference image. a domain GPO renames the local admin account CoAdmin.
when running a command line to, for example, run xcopy a folder and subdirectories to the "program Files x86" directory, it does not copy.
When I log on to the system and use an admin account to manually run the command I do not have an issue. if I log onto the system with the MDTService user and run it, it fails.
How do I get the commands to run from the MDT task sequence? I do not want to make the MDTService user an admin. I have tried the run as option in the task sequence but that did not work. maybe is set it wrong. I used a domain\Admin
account which did not work.
what can I clarify or logs can I post to provide more details.
Thanks in advance.Any account that needs to add files under %ProgramFilesx86% must be granted administrative privileges.
Keith Garner - keithga.wordpress.com -
PXE OSD Task Sequence fails to run on new laptop
We are trying to run a working PXE OSD task sequence on a new HP laptop. It's a Elitebook 840 G2. We've downloaded the provided driver package & created a new driver package in SCCM. We inserted the driver into the boot image &
updated the DPs. When we PXE boot the laptop it flashes the splash screen & reboots. Other laptops & desktops boot properly. This looks like a driver issue but we wanted to run it past the forum to see if anyone had any other suggestions.
The SMSTS log file is copied below.
LOGGING: Finalize process ID set to 728
TSBootShell
4/23/2015 4:20:40 PM
732 (0x02DC)
==============================[ TSBootShell.exe ]==============================
TSBootShell 4/23/2015 4:20:40 PM
732 (0x02DC)
Succeeded loading resource DLL 'X:\sms\bin\i386\1033\TSRES.DLL'
TSBootShell 4/23/2015 4:20:40 PM
732 (0x02DC)
Debug shell is enabled TSBootShell
4/23/2015 4:20:40 PM 732 (0x02DC)
Waiting for PNP initialization... TSBootShell
4/23/2015 4:20:40 PM 736 (0x02E0)
RAM Disk Boot Path: NET(0)\SMSIMAGES\ALN00001\BOOT.ALN00001.WIM
TSBootShell 4/23/2015 4:20:40 PM
736 (0x02E0)
Booted from network (PXE) TSBootShell
4/23/2015 4:20:40 PM 736 (0x02E0)
Network(PXE) path: X:\sms\data\ TSBootShell
4/23/2015 4:20:40 PM 736 (0x02E0)
Found config path X:\sms\data\ TSBootShell
4/23/2015 4:20:40 PM 736 (0x02E0)
Booting from removable media, not restoring bootloaders on hard drive
TSBootShell 4/23/2015 4:20:40 PM
736 (0x02E0)
X:\sms\data\WinPE does not exist. TSBootShell
4/23/2015 4:20:40 PM 736 (0x02E0)
X:\_SmsTsWinPE\WinPE does not exist. TSBootShell
4/23/2015 4:20:40 PM 736 (0x02E0)
Executing command line: wpeinit.exe -winpe TSBootShell
4/23/2015 4:20:40 PM 736 (0x02E0)
Executing command line: X:\WINDOWS\system32\cmd.exe /k
TSBootShell 4/23/2015 4:20:40 PM
732 (0x02DC)
The command completed successfully. TSBootShell
4/23/2015 4:20:40 PM 732 (0x02DC)
Successfully launched command shell. TSBootShell
4/23/2015 4:20:40 PM 732 (0x02DC)
Executing command line: X:\WINDOWS\system32\cmd.exe /k
TSBootShell 4/23/2015 4:20:41 PM
732 (0x02DC)
The command completed successfully. TSBootShell
4/23/2015 4:20:41 PM 732 (0x02DC)
Successfully launched command shell. TSBootShell
4/23/2015 4:20:41 PM 732 (0x02DC)
Executing command line: X:\WINDOWS\system32\cmd.exe /k
TSBootShell 4/23/2015 4:20:41 PM
732 (0x02DC)
The command completed successfully. TSBootShell
4/23/2015 4:20:41 PM 732 (0x02DC)
Successfully launched command shell. TSBootShell
4/23/2015 4:20:41 PM 732 (0x02DC)
The command completed successfully. TSBootShell
4/23/2015 4:20:43 PM 736 (0x02E0)
Starting DNS client service. TSBootShell
4/23/2015 4:20:43 PM 736 (0x02E0)
Executing command line: X:\sms\bin\i386\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\
TSBootShell 4/23/2015 4:20:44 PM
736 (0x02E0)
The command completed successfully. TSBootShell
4/23/2015 4:20:44 PM 736 (0x02E0)
==============================[ TSMBootStrap.exe ]==============================
TSMBootstrap 4/23/2015 4:20:44 PM
1124 (0x0464)
Command line: X:\sms\bin\i386\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\
TSMBootstrap 4/23/2015 4:20:44 PM
1124 (0x0464)
Succeeded loading resource DLL 'X:\sms\bin\i386\1033\TSRES.DLL'
TSMBootstrap 4/23/2015 4:20:44 PM
1124 (0x0464)
Succeeded loading resource DLL 'X:\sms\bin\i386\TSRESNLC.DLL'
TSMBootstrap 4/23/2015 4:20:44 PM
1124 (0x0464)
Current OS version is 6.2.9200.0 TSMBootstrap
4/23/2015 4:20:44 PM 1124 (0x0464)
Adding SMS bin folder "X:\sms\bin\i386" to the system environment PATH
TSMBootstrap 4/23/2015 4:20:44 PM
1124 (0x0464)
PXE Boot with Root = X:\ TSMBootstrap
4/23/2015 4:20:44 PM 1124 (0x0464)
Executing from PXE in WinPE TSMBootstrap
4/23/2015 4:20:44 PM 1124 (0x0464)
Loading TsPxe.dll from X:\sms\bin\i386\TsPxe.dll
TSMBootstrap 4/23/2015 4:20:44 PM
1124 (0x0464)
TsPxe.dll loaded TSPxe
4/23/2015 4:20:44 PM 1124 (0x0464)
Device has PXE booted TSPxe
4/23/2015 4:20:44 PM 1124 (0x0464)
Variable Path: \SMSTemp\2015.04.22.16.21.10.0001.{8EBA05A2-1AB7-4CBB-9DDD-497DFE8E5E07}.boot.var
TSPxe 4/23/2015 4:20:44 PM
1124 (0x0464)
Succesfully added firewall rule for Tftp TSPxe
4/23/2015 4:20:44 PM 1124 (0x0464)
Executing: X:\sms\bin\i386\smstftp.exe -i 172.20.100.51 get \SMSTemp\2015.04.22.16.21.10.0001.{8EBA05A2-1AB7-4CBB-9DDD-497DFE8E5E07}.boot.var X:\sms\data\variables.dat
TSPxe 4/23/2015 4:20:44 PM
1124 (0x0464)
Command line for extension .exe is "%1" %*
TSPxe 4/23/2015 4:20:44 PM
1124 (0x0464)
Set command line: "X:\sms\bin\i386\smstftp.exe" -i 172.20.100.51 get \SMSTemp\2015.04.22.16.21.10.0001.{8EBA05A2-1AB7-4CBB-9DDD-497DFE8E5E07}.boot.var X:\sms\data\variables.dat
TSPxe 4/23/2015 4:20:44 PM
1124 (0x0464)
Executing command line: "X:\sms\bin\i386\smstftp.exe" -i 172.20.100.51 get \SMSTemp\2015.04.22.16.21.10.0001.{8EBA05A2-1AB7-4CBB-9DDD-497DFE8E5E07}.boot.var X:\sms\data\variables.dat
TSPxe 4/23/2015 4:20:44 PM
1124 (0x0464)
Process completed with exit code 1 TSPxe
4/23/2015 4:21:31 PM 1124 (0x0464)
Succesfully removed firewall rule for Tftp TSPxe
4/23/2015 4:21:31 PM 1124 (0x0464)
uExitCode == 0, HRESULT=80004005 (e:\nts_sccm_release\sms\server\pxe\tspxe\tspxe.cpp,185)
TSPxe 4/23/2015 4:21:31 PM
1124 (0x0464)
Failed to download pxe variable file. Code(0x00000001)
TSPxe 4/23/2015 4:21:31 PM
1124 (0x0464)
PxeGetPxeData failed with 0x80004005
TSPxe 4/23/2015 4:21:31 PM
1124 (0x0464)
HRESULT_FROM_WIN32(dwError), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmbootstraputil.cpp,1459)
TSPxe 4/23/2015 4:21:31 PM
1124 (0x0464)
TSMBootstrapUtil::PxeGetPxeData(&bPxeBooted, sVariablesFile, sPxePasswd), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,2667)
TSPxe 4/23/2015 4:21:31 PM
1124 (0x0464)
oTSMediaWizardControl.Run( sMediaRoot, true, sTSLaunchMode ), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmbootstrap.cpp,1078)
TSPxe 4/23/2015 4:21:31 PM
1124 (0x0464)
Execute( eExecutionEnv, sConfigPath, sTSXMLFile, uBootCount, &uExitCode ), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmbootstrap.cpp,1226)
TSPxe 4/23/2015 4:21:31 PM
1124 (0x0464)
Exiting with return code 0x80004005 TSPxe
4/23/2015 4:21:31 PM 1124 (0x0464)
hMap != 0, HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentscope.cpp,493)
TSPxe 4/23/2015 4:21:31 PM
1124 (0x0464)
m_pGlobalScope->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,335)
TSPxe 4/23/2015 4:21:31 PM
1124 (0x0464)
this->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,553)
TSPxe 4/23/2015 4:21:31 PM
1124 (0x0464)
Execution complete. TSBootShell
4/23/2015 4:21:31 PM 736 (0x02E0)
hMap != 0, HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentscope.cpp,493)
TSBootShell 4/23/2015 4:21:31 PM
736 (0x02E0)
m_pGlobalScope->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,335)
TSBootShell 4/23/2015 4:21:31 PM
736 (0x02E0)
this->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,553)
TSBootShell 4/23/2015 4:21:31 PM
736 (0x02E0)
::RegOpenKeyExW (HKEY_LOCAL_MACHINE, sKey.c_str(), 0, KEY_READ, &hSubKey), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,809)
TSBootShell 4/23/2015 4:21:31 PM
736 (0x02E0)
RegOpenKeyExW is unsuccessful for Software\Microsoft\SMS\Task Sequence
TSBootShell 4/23/2015 4:21:31 PM
736 (0x02E0)
GetTsRegValue() is unsuccessful. 0x80070002.
TSBootShell 4/23/2015 4:21:31 PM
736 (0x02E0)
End program: TSBootShell
4/23/2015 4:21:31 PM 736 (0x02E0)
Finalizing logging from process 728 TSBootShell
4/23/2015 4:21:31 PM 736 (0x02E0)
Finalizing logs to root of first available drive
TSBootShell 4/23/2015 4:21:31 PM
736 (0x02E0)
LOGGING: Setting log directory to "D:\SMSTSLog".
TSBootShell 4/23/2015 4:21:31 PM
736 (0x02E0)Press F8 in order to get a cmd window and see if the client got an IP address.
Torsten Meringer |
There's no IP Address when trying to the command prompt. It doesn't even show a MAC Address. -
Maximum allowed run time for a task sequence
I found if i left the maximum allowed run time for a task sequence with a defualt value of "0" in configuration manager 2012 r2 cu2,the required task sequence would never run without a maintenance window larger than
12H.
At client side,the servicewindowmanager.log always said this required task sequence had a maximum runtime of 43200 seconds(12h).
servicewindowmanager.log:
OnIsServiceWindowAvailable called with: Runtime:43200, Type:5
Program cannot Run! Setting *canProgramRun to FALSE
There does not exist a Service Window of this Type, for this duration. The Program will not run.
If i set maximum allowed run time to 120 minutes,task sequence would run under a 3h mainenance window.
So if you leave the maximum allowed run time for a task sequence with a value of "0" then client agent will evaluate it as 43200(12h) for a required deployment,is it true? have i missed something?Hi,
That is correct it will default to the same value as a program with a "Unknown" maximum runtime value, Unknown is also evaluated to 0 = 12h so that is correct behaviour.
Regards,
Jörgen
-- My System Center blog ccmexec.com -- Twitter
@ccmexec -
Changing the Task Sequence Deployment Options via script
Hi all,
I am fairly new to SCCM 2012 scripting/SDK and couldn't find any helpful examples how to change the deployment options of task sequences by using a script.
The problem is: we have got a significant number of TS that have the deployments set to "Download content locally when needed by running task sequence".
I have to change this setting to "Download all content locally before starting task sequence".
Afterwards I need to create a list of all changed TS Deployment options and also a list of current settings of all TS Deployment options.
Therefore I would need a script that can read and set this particular option of the TS.
Does anybody have a script that can do such tasks? Any help is highly appreciated.
Btw, I am not picky, I can handle WMI, SQL, VBS, PowerShell, .Net Code (vb.net or c#). Whatever you have handy would be quite helpful.
Many thanks
AmirHi,
The Set-CMTaskSequence -DeploymentOption could help you change this setting.
Set-CMTaskSequence
Best Regards,
Joyce Li
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Post Upgrade to R2: Task Sequence Fails with 0x80070057
one SCCM 2012 server for a while now (June/July of 2013) and have had no issues with OSD's and software deployments. Today I decided to upgrade to R2 from CU3 and I thought the upgrade process went really well. But after the upgrade
I attempted to perform an OSD & it failed with error 0x80070057 before the Task Sequence selection.
I had that problem ages ago when I first started using SCCM, but that was due to a missing boundary group. I got that straightened out in June/July of 2013 and, OSD's & software deployments have been working fine since.
All the boundary groups are still defined
All the boundaries are still defined
The specific boundary this machine is in has a site system defined
The specific boundary group this machine is in has both an assigned site as well as a site system server defined
Verified server has full control over System Management
Verified server has been published in AD
Relevant section of %temp%\smsts\smsts.log in boot environment
Root CA Public Certs= TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
Missing root CA environment variable from variables file TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
Support Unknown Machines: 1 TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
Custom hook from X:\\TSConfig.INI is TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
No hook is found to be executed before downloading policy TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
Authenticator from the environment is empty. TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
Need to create Authenticator Info using PFX TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
Initialized CStringStream object with string: 171D4480-4E88-4DA5-B047-C4DC4E8EF947;2014-03-11T00:55:46Z. TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
Using user-defined MP locations: http://SCCMSERVER.F.Q.D.N TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
Set authenticator in transport TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
Set media certificates in transport TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
IP: 10.1.18.11 10.1.18.0 TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
CLibSMSMessageWinHttpTransport::Send: URL: SCCMSERVER.F.Q.D.N:80 GET /SMS_MP/.sms_aut?MPLOCATION&ir=10.1.18.11&ip=10.1.18.0 TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
Error. Status code 500 returned TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
isSuccessful, HRESULT=80004005 (e:\qfe\nts\sms\framework\osdmessaging\libsmsmessaging.cpp,5581) TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
CCM::SMSMessaging::CLibSMSMPLocation::RequestMPLocation failed; 0x80004005 TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
MPLocation.RequestMPLocation (szTrustedRootKey, sIPSubnets.c_str(), sIPAddresses.c_str(), sSiteCode, sAssignedSiteCode, sMP, sMPCertificates, sX86UnknownMachineGUID, sX64UnknownMachineGUID), HRESULT=80004005 (e:\qfe\nts\sms\framework\osdmessaging\libsmsmessaging.cpp,9583) TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
CCM::SMSMessaging::GetMPLocation failed; 0x80004005 TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
Failed to query http://SCCMSERVER.F.Q.D.N for MP location TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
New settings: TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
site=,, MP=, ports: http=80,https=443 TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
Set authenticator in transport TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
pszSiteCode && pszSiteCode[0], HRESULT=80070057 (e:\qfe\nts\sms\framework\tscore\tspolicy.cpp,580) TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
TS::Policy::GetClientIdentity (&httpTransport, sSiteCode.c_str(), sMediaGuid.c_str(), sClientGUID, sNetbiosName, bUnknown, sServerName, sServerRemoteName, sImportedClientIdentity), HRESULT=80070057 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,965) TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
Exiting TSMediaWizardControl::GetPolicy. TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
pWelcomePage->m_pTSMediaWizardControl->GetPolicy(), HRESULT=80070057 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawelcomepage.cpp,303) TSMBootstrap 3/10/2014 4:55:46 PM 1124 (0x0464)
Setting wizard error: An error occurred while retrieving policy for this computer (0x80070057). For more information, contact your system administrator or helpdesk operator. TSMBootstrap 3/10/2014 4:55:46 PM 1112 (0x0458)
WelcomePage::OnWizardNext() TSMBootstrap 3/10/2014 4:55:46 PM 1112 (0x0458)
Skipping Confirmation Page. TSMBootstrap 3/10/2014 4:55:46 PM 1112 (0x0458)
Skipping Task Sequence Selection Page. TSMBootstrap 3/10/2014 4:55:46 PM 1112 (0x0458)
Skipping Variables Selection Page. TSMBootstrap 3/10/2014 4:55:46 PM 1112 (0x0458)
Skipping Resolve Progress Page. TSMBootstrap 3/10/2014 4:55:46 PM 1112 (0x0458)
Activating Finish Page. TSMBootstrap 3/10/2014 4:55:46 PM 1112 (0x0458)
Loading bitmap TSMBootstrap 3/10/2014 4:55:46 PM 1112 (0x0458)
Executing command line: X:\windows\system32\cmd.exe /k TSBootShell 3/10/2014 4:55:59 PM 840 (0x0348)
The command completed successfully. TSBootShell 3/10/2014 4:55:59 PM 840 (0x0348)
<![LOG[Root CA Public Certs=]LOG]!><time="16:55:46.225+480" date="03-10-2014" component="TSMBootstrap" context="" type="1" thread="1124" file="tsmediawizardcontrol.cpp:615">
<![LOG[Missing root CA environment variable from variables file]LOG]!><time="16:55:46.225+480" date="03-10-2014" component="TSMBootstrap" context="" type="1" thread="1124" file="tsmediawizardcontrol.cpp:621">
<![LOG[Support Unknown Machines: 1]LOG]!><time="16:55:46.225+480" date="03-10-2014" component="TSMBootstrap" context="" type="1" thread="1124" file="tsmediawizardcontrol.cpp:632">
<![LOG[Custom hook from X:\\TSConfig.INI is ]LOG]!><time="16:55:46.225+480" date="03-10-2014" component="TSMBootstrap" context="" type="1" thread="1124" file="tsmediawizardcontrol.cpp:675">
<![LOG[No hook is found to be executed before downloading policy]LOG]!><time="16:55:46.225+480" date="03-10-2014" component="TSMBootstrap" context="" type="1" thread="1124" file="tsmediawizardcontrol.cpp:699">
<![LOG[Authenticator from the environment is empty.]LOG]!><time="16:55:46.240+480" date="03-10-2014" component="TSMBootstrap" context="" type="1" thread="1124" file="tsmediawizardcontrol.cpp:838">
<![LOG[Need to create Authenticator Info using PFX]LOG]!><time="16:55:46.240+480" date="03-10-2014" component="TSMBootstrap" context="" type="1" thread="1124" file="tsmediawizardcontrol.cpp:850">
<![LOG[Initialized CStringStream object with string: 171D4480-4E88-4DA5-B047-C4DC4E8EF947;2014-03-11T00:55:46Z.]LOG]!><time="16:55:46.256+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1124" file="stringstream.cpp:101">
<![LOG[Using user-defined MP locations: http://SCCMSERVER.F.Q.D.N]LOG]!><time="16:55:46.256+480" date="03-10-2014" component="TSMBootstrap" context="" type="1" thread="1124" file="tsmediawizardcontrol.cpp:911">
<![LOG[Set authenticator in transport]LOG]!><time="16:55:46.256+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1124" file="libsmsmessaging.cpp:7751">
<![LOG[Set media certificates in transport]LOG]!><time="16:55:46.271+480" date="03-10-2014" component="TSMBootstrap" context="" type="1" thread="1124" file="libsmsmessaging.cpp:9558">
<![LOG[IP: 10.1.18.11 10.1.18.0]LOG]!><time="16:55:46.271+480" date="03-10-2014" component="TSMBootstrap" context="" type="1" thread="1124" file="libsmsmessaging.cpp:9579">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: SCCMSERVER.F.Q.D.N:80 GET /SMS_MP/.sms_aut?MPLOCATION&ir=10.1.18.11&ip=10.1.18.0]LOG]!><time="16:55:46.287+480" date="03-10-2014" component="TSMBootstrap" context="" type="1" thread="1124" file="libsmsmessaging.cpp:8621">
<![LOG[Error. Status code 500 returned]LOG]!><time="16:55:46.349+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1124" file="libsmsmessaging.cpp:8984">
<![LOG[isSuccessful, HRESULT=80004005 (e:\qfe\nts\sms\framework\osdmessaging\libsmsmessaging.cpp,5581)]LOG]!><time="16:55:46.365+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1124" file="libsmsmessaging.cpp:5581">
<![LOG[CCM::SMSMessaging::CLibSMSMPLocation::RequestMPLocation failed; 0x80004005]LOG]!><time="16:55:46.365+480" date="03-10-2014" component="TSMBootstrap" context="" type="3" thread="1124" file="libsmsmessaging.cpp:5688">
<![LOG[MPLocation.RequestMPLocation (szTrustedRootKey, sIPSubnets.c_str(), sIPAddresses.c_str(), sSiteCode, sAssignedSiteCode, sMP, sMPCertificates, sX86UnknownMachineGUID, sX64UnknownMachineGUID), HRESULT=80004005 (e:\qfe\nts\sms\framework\osdmessaging\libsmsmessaging.cpp,9583)]LOG]!><time="16:55:46.365+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1124" file="libsmsmessaging.cpp:9583">
<![LOG[CCM::SMSMessaging::GetMPLocation failed; 0x80004005]LOG]!><time="16:55:46.365+480" date="03-10-2014" component="TSMBootstrap" context="" type="3" thread="1124" file="libsmsmessaging.cpp:9587">
<![LOG[Failed to query http://SCCMSERVER.F.Q.D.N for MP location]LOG]!><time="16:55:46.365+480" date="03-10-2014" component="TSMBootstrap" context="" type="3" thread="1124" file="tsmbootstraputil.cpp:1544">
<![LOG[New settings:]LOG]!><time="16:55:46.365+480" date="03-10-2014" component="TSMBootstrap" context="" type="1" thread="1124" file="tsmediawizardcontrol.cpp:925">
<![LOG[ site=,, MP=, ports: http=80,https=443]LOG]!><time="16:55:46.365+480" date="03-10-2014" component="TSMBootstrap" context="" type="1" thread="1124" file="tsmediawizardcontrol.cpp:927">
<![LOG[Set authenticator in transport]LOG]!><time="16:55:46.365+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1124" file="libsmsmessaging.cpp:7751">
<![LOG[pszSiteCode && pszSiteCode[0], HRESULT=80070057 (e:\qfe\nts\sms\framework\tscore\tspolicy.cpp,580)]LOG]!><time="16:55:46.381+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1124" file="tspolicy.cpp:580">
<![LOG[TS::Policy::GetClientIdentity (&httpTransport, sSiteCode.c_str(), sMediaGuid.c_str(), sClientGUID, sNetbiosName, bUnknown, sServerName, sServerRemoteName, sImportedClientIdentity), HRESULT=80070057 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,965)]LOG]!><time="16:55:46.381+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1124" file="tsmediawizardcontrol.cpp:965">
<![LOG[Exiting TSMediaWizardControl::GetPolicy.]LOG]!><time="16:55:46.381+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1124" file="tsmediawizardcontrol.cpp:1378">
<![LOG[pWelcomePage->m_pTSMediaWizardControl->GetPolicy(), HRESULT=80070057 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawelcomepage.cpp,303)]LOG]!><time="16:55:46.381+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1124" file="tsmediawelcomepage.cpp:303">
<![LOG[Setting wizard error: An error occurred while retrieving policy for this computer (0x80070057). For more information, contact your system administrator or helpdesk operator.]LOG]!><time="16:55:46.381+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1112" file="tsmediawizardcontrol.cpp:1547">
<![LOG[WelcomePage::OnWizardNext()]LOG]!><time="16:55:46.381+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1112" file="tsmediawelcomepage.cpp:340">
<![LOG[Skipping Confirmation Page.]LOG]!><time="16:55:46.381+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1112" file="tsmediaconfirmationpage.cpp:170">
<![LOG[Skipping Task Sequence Selection Page.]LOG]!><time="16:55:46.396+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1112" file="tsmediataskselectionpage.cpp:118">
<![LOG[Skipping Variables Selection Page.]LOG]!><time="16:55:46.396+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1112" file="tsmediavariablesselectionpage.cpp:155">
<![LOG[Skipping Resolve Progress Page.]LOG]!><time="16:55:46.396+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1112" file="tsmediaresolveprogresspage.cpp:96">
<![LOG[Activating Finish Page.]LOG]!><time="16:55:46.396+480" date="03-10-2014" component="TSMBootstrap" context="" type="0" thread="1112" file="tsmediafinishpage.cpp:107">
<![LOG[Loading bitmap]LOG]!><time="16:55:46.396+480" date="03-10-2014" component="TSMBootstrap" context="" type="1" thread="1112" file="tsmbootstrap.cpp:1228">
<![LOG[Executing command line: X:\windows\system32\cmd.exe /k]LOG]!><time="16:55:59.048+480" date="03-10-2014" component="TSBootShell" context="" type="1" thread="840" file="bootshell.cpp:857">
<![LOG[The command completed successfully.]LOG]!><time="16:55:59.048+480" date="03-10-2014" component="TSBootShell" context="" type="1" thread="840" file="bootshell.cpp:939">
Could this be an IIS problem?I've had problems after the R2 upgrade and had to reinstall PXE/WDS on Distribution Point to resolve.
Also ensure that you apply this hotfix after R2:
http://www.deploymentresearch.com/Research/tabid/62/EntryId/156/Do-not-do-OSD-in-ConfigMgr-2012-R2-without-this-hotfix.aspx
Gerry Hampson | Blog:
www.gerryhampsoncm.blogspot.ie | LinkedIn:
Gerry Hampson | Twitter:
@gerryhampson -
How can I stop a task sequence if a custom HTA preflight check fails?
In our currently deployment method, we launch an HTA program before initiating the OSD process. This is only when run from the RAP menu, not via PXE. When a user initiates OSD through that menu, they get a message prompting them to close Outlook, and
a countdown of 5 mins, then OSD starts. They also have the ability to click on an 'OK' button to proceed on their own.
I've created a new script which checks WMI if Outlook and/or OCS are open, and if the machine is running on battery, spit out a "Failed" response and stop the HTA. I've also added a "recheck" button to re-do the check, and an 'OK
button if people jsut want to continue.
I'm curious if there is a way to prevent the task sequence from continuing if any of those conditions arent met. Currently it just pops up and says "Failed, Cannot conitue", but if they close the window, the task sequence thinks the program
has run, and the OSD migration starts. I'd like to be able and get the script to cancel the OSD process if a check fails.
Has anyone had success with this, using WINXP? I'd use the MS pre-flight check but it's only for WIN7.Interesting. Thanks for the response. Is there anybody out there that can assist with VBS part of the solution?
Here's the code I'm working with. Currently the battery piece isnt working as it should but I can figure that our, eventually. I'd like to get Jason's proposed solution in the code. If this isn't the right place, I'll take this somewhere
else.
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>OSD Preflight checks</title>
<HTA:APPLICATION
APPLICATIONNAME="OSD Preflight checks"
ID="objOSDPreReqChecks"
SCROLL="no"
CONTEXTMENU="no"
SINGLEINSTANCE="no"
MAXIMIZEBUTTON="no"
MINIMIZEBUTTON="no"
WINDOWSTATE="normal"/>
<!-- #region STYLEs-->
<style type="text/css">
H1{color:Black;text-align:center;font-family: Arial, Helvetica, sans-serif;font-size: 26px;}
p{font-family:"Arial";font-size:10px;}
fail{color:Red;text-align:center;}
.Version {float:left; font-size:1.0em;font-style:italic;color:#888888;font-weight:bold;}
.Header1 {width: 180px; text-align: right;font-weight:bold;}<!-- '1st column heading -->
H2 {font-family: Arial, Helvetica, sans-serif; text-align: center;}
H3 {font-style: italic;}
.style2 {width: 180px; text-align: left;}
.Header2 {width: 150px; text-align: right;font-weight:bold;}<!-- '2nd column heading -->
.style4 {width: 410px; text-align: left;}
.StatusBar
font-family: Arial, Helvetica, sans-serif;
text-align: center;
.hidden {display: none; visibility: hidden;}
</style><!-- #endregion -->
</head>
<script language="VBScript" type="text/vbscript">
'======================================================================================
' Script
' Version
' Purpose To check a machine is suitable for taking an OS deployment
'======================================================================================
'Features
' Modular design
' Verbose "Debug Mode"
' In-built data validation
' Custom error handling
' Custom error codes - 90x0
' Generic WMI handler
'BUGfix: Change CLng to CDbl to avoid overflow (in GetRAM)
'fixed - moved head section to top to become head > script > body
'fixed - fCheckModel display with leading ,
'fixed - fgetmodels dictionary list
Option Explicit
' #region GLOBAL DECLARATIONS: Persistent fold region
'======================================================================================
'GLOBAL Vars
'Things to just display (in GUI)
Dim strRAM
Dim strCPUInfo
Dim strCPUName
Dim strCPUDesc
Dim iCPUCount
Dim iCPUCoreCount
Dim iRAM
Dim strBIOSver, strBIOSDate, strBIOSInfo
'Time related
Dim TimerInterval 'timer to refresh HTA at start
Dim iTimer 'abort timer
Const iAbortTimeout=300000 'delay before window closes (in milliseconds)
Dim pbTimerID
Dim pbHTML
Dim pbWaitTime
Dim pbHeight
Dim pbWidth
Dim pbBorder
Dim pbUnloadedColor
Dim pbLoadedColor
Dim pbStartTime
'Dictionary
Dim objModelsDict,colKeys,strKey 'models
Dim objApprovedMakesDict
'Misc GLOBAL vars
Dim blnDebug 'set TRUE to trigger debug mode
Dim bAbortBuild 'Boolean flag to abort or not abort
Dim strTemp 'throwaway/scratch
Dim strNamespace 'wmi default namespace for ANY machine
Dim strComputer 'wmi reference to current machine, just .
Dim strService 'WMI service
Dim strQuery 'custom WQL
Dim ErrMsg 'custom error messages
Dim iErrMode 'State machine for error mode
Dim lFlags 'WMI flag
Dim strDisks
'Pre-requisites - things that will cause build to abort if values do not meet spec
Dim strHTAVendor 'Make of hardware
Dim strHTAVendorState
Dim strHTAModel 'Model of hardware
Dim strHTAModelState 'Model state
Dim strHTARAM 'RAM
Dim strHTARAMState 'RAM state
Dim strHTACPUSpeed 'Processor speed
Dim strHTACPUCores 'Number of cores
Dim strHTACPUFullInfo 'CPU + cores
Dim strHTAHDD 'Disk info
Dim strHTAHDDState 'Disk state
Dim strHTACheckRAW 'NTFS check
Dim strHTAArchitecture 'Processor support
Dim strHTAProduct 'Product ID
Dim strHTAOutlook 'Outlook running
Dim strHTAOutlookState 'Outlook state
Dim strHTABattery 'Battery check
Dim strHTABatteryState 'Battery state
'for WQL filters
Dim strWQLPCInfo 'Pre-req - (1) for various inc. domain role (servers)
Dim strWQLRAM 'Pre-req - (2) RAM
Dim strWQLCPU 'Pre-req - CPU speed string (not int)
Dim strWQLBootOrder 'Pre-req - Boot order string
Dim strWQLSATAMode 'Pre-req - HDD mode
Dim strWQLGenericBIOS
Dim strWQLCPUCount 'Pre-req - how many CPUs
Dim strWQLCPUInfo
Dim strWQLFSType 'Pre-req - Check HDD not RAW (i.e. is NTFS)
Dim strWQLDisks 'Disks
Dim strWQLChassis 'Machine type
Dim strWQLID 'Unique code from OEM
Dim strWQLProc 'is Outlook running = False
Dim strWQLBattery 'is on Battery = False
'State
Const cProblem = " Problem!"
Const cRunAgain =" RunCheck: Run System Check Again"
Const cSuccess = " Success!"
Const cPassed=" Pass"
Const cFail=" Fail"
'Pre-requisite to check: SET VALUES HERE vvvvvvvvvvvvvvvv
Const cApprovedOEM="Hewlett-Packard"
Const LegacyOEM1="Dell Inc."
Const LegacyOEM2="IBM"
Const cMinimumMemoryMB = 1000 'RAM in MB
'Const cMinimumMemoryMB = 1000000 'force fail test data RAM in MB
Const cMinFS="NTFS"
' Const cMinFS="HPFS" 'force fail test data
Const iMinCores=1
'Const iMinCores=10099 'force fail cores test data
Const iMinCPUSpeed=2 '20 'in GHz
'Const iMinCPUSpeed=90000 'in GHz
Const iMinCPUArch=32
'Const iMinCPUArch=64
' #endregion
' To hide anything use ID.className = "hidden", to show set to "", e.g. NotFoundArea.className = "hidden"
Sub Window_Onload
Err.Clear
VersionSpan.InnerText = objOSDPreReqChecks.Version 'Get version
self.focus
self.moveTo 100,100 'Move window top left
StatusBar.InnerText="Validating machine..."
document.body.style.cursor = "wait" 'hourglass cursor
'Call PreflightChecks 'use for testing as a VBS only, otherwise HTA timer will call below
TimerInterval = window.setInterval("PreflightChecks",10)
End Sub
Function PreflightChecks
' #region HEADER NOTES: Persistent fold region
'Version history
'ver 5 OCTOBER 2011 - added error handler
'ver 3rd Nov - removed HPonly queries
'// Solution: Custom Script for use with MDT - Adapted from hardwareinfo.vbs Mikael Nystrom – http://deploymentbunny.com
'Typical BIOS content
'Processor Speed = 2133/1066 MHz
'Boot Order = Network Controller,ATAPI CD-ROM Drive,USB device,Hard Drive,Diskette Drive,PnP Device #2,PnP Device #3,PnP Device #4,PnP Device #5,PnP Device #6,PnP Device #7,PnPe #8,PnP Device #9,PnP Device #10,PnP Device #11
'SATA (disk) mode: *IDE,--,RAID,-- or IDE,*AHCI,RAID
'On Error Resume Next
' #endregion
' #region CONSTANTS: Persistent fold region
'======================================================================================
'Fields available in HP BIOS
Const sAsset = "Notebook Asset Tag"
Const sOwner = "Notebook Ownership Tag"
Const sMan = "Manufacturer"
Const sNoteModel = "Notebook Model"
Const sCPU = "Processor Type"
Const sCPUSpeed = "Processor Speed"
Const sRAM = "Memory Size"
Const sModel = "Product Name"
Const sBIOSName ="System BIOS"
Const sBIOSVer = "BIOS Version"
Const sBIOSDate = "BIOS Date"
'Other BIOS stuff you could use too
'Const sOwnerTag = "Enter Ownership Tag"
'Const sBIOS = "PCID"
'Const sBIOS = "Define Custom URL"
'Const sBIOS = "Set Alarm Time"
'Const sBIOS = "PCID Version"
Const TextMode="1" 'text case sensitive for dict obj
'WMI core constants
Const wbemFlagReturnImmediately = 16 'wmi - Causes the call to return immediately.
Const wbemFlagForwardOnly = 32 'wmi - Causes a forward-only enumerator to be returned.
'Forward-only enumerators are generally much faster and
'use less memory than conventional enumerators, but don't allow calls to SWbemObject.Clone_
'Advisory config values - as in "you want to the change these"
Dim strHTABootOrder
Dim strHTASATAMode
'Dim strHTACPU
' #endregion
'======================================================================================
' #region WQL: Persistent fold region
lFlags = wbemFlagReturnImmediately + wbemFlagForwardOnly
'Queries of things to check (HP)
strWQLBootOrder = "select Name, value from HP_BIOSSetting where Name='Boot order'"
strWQLSATAMode = "select Name, value from HP_BIOSSetting where (Name='SATA emulation' or name='SATA device mode')"
strWQLDisks ="SELECT * FROM Win32_DiskDrive where mediatype like 'Fixed%hard disk%'" 'win32_disk only avail after W7
strWQLFSType ="SELECT * from Win32_LogicalDisk where DriveType='3'" 'only bother with HDDs
'Generic WMI query strings
strWQLGenericBIOS="SELECT Manufacturer,SMBIOSBIOSVersion,ReleaseDate FROM Win32_BIOS WHERE PrimaryBIOS = True"
strWQLCPUCount= "SELECT NumberOfProcessors,NumberOfLogicalProcessors from Win32_ComputerSystem"
strWQLCPUInfo="SELECT Name,DataWidth,description,MaxClockSpeed,NumberofCores,NumberOfLogicalProcessors from Win32_Processor"
strWQLPCInfo="SELECT Domain,DomainRole,SystemType,Manufacturer,Model,TotalPhysicalMemory FROM Win32_ComputerSystem"
' strWQLPCInfo="SELECT Domain,DomainRole,SystemType,Manufacturer FROM Win32_ComputerSystem"
strWQLChassis="SELECT ChassisTypes from Win32_SystemEnclosure"
strWQLID="SELECT IdentifyingNumber,UUID from Win32_ComputerSystemProduct"
strWQLRAM="SELECT * FROM Win32_PhysicalMemory"
strWQLProc="SELECT * FROM Win32_Process"
strWQLBattery="SELECT * FROM BatteryStatus Where Voltage > 0"
' #endregion
' #region MAIN algorithm
'=====================================================================================================
' MAIN
'Algorithm
'1) Check make (vendor)
'2) Check model (in list)
'3) Check RAM >x
'4) Check HDD TYPE (HDD is not RAW)
'5) Check CPU architecture
'6) Check outlook
'7) Check battery
'=====================================================================================================
'Initialise
window.clearInterval(TimerInterval) 'Reset timer to 0
' blnDebug=True
blnDebug=False
bAbortBuild=False 'default to DON'T abort
' bAbortBuild=True
'Build list of approved vendors
Set objApprovedMakesDict = CreateObject("Scripting.Dictionary")
objApprovedMakesDict.comparemode=VBTextCompare
objApprovedMakesDict.add cApprovedOEM,"OK"
objApprovedMakesDict.add LegacyOEM1,"OK"
objApprovedMakesDict.add LegacyOEM2,"OK"
objApprovedMakesDict.add "Lenovo","Testdata"
If blnDebug Then Stop
'1) all machines check make
strHTAVendor=fCheckVendor(strWQLGenericBIOS) 'check vendor in BIOS - if vendor not approved ABORT without proceeding
If bAbortBuild=True Then
StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "FATAL ERROR - goodbye cruel world"
iTimer = window.setTimeout("Abort", iAbortTimeout, "VBScript")
Else
StatusBar.InnerText="Vendor: " & strHTAVendor & vbTab & " " & strHTAVendorState
'2) Discover current Model
strHTAModel=fGetModelName(strWQLPCInfo) 'get model name from WMI
strHTAModel=fUniversalCheckData(strHTAModel,"'Discover Model - fGetModelName'") 'validate
Call fGetModels 'get list of all valid models (from text file)
strHTAModel=fCheckModel(strHTAModel)
'2a) Model number (optional)
strHTAProduct=fGetComputerSystemProdIDNumber(strWQLID) 'manufacturer's product ID
strHTAProduct=fUniversalCheckData(strHTAProduct,"'Discover ID - fGetComputerSystemProdIDNumber'")
' StatusBar.InnerText=StatusBar.InnerText & VbCrLf & vbTab & "Product Code: " & vbTab & strHTAProduct
'3) Check installed Memory
strHTARAM=fGetRAM(strWQLRAM) 'find RAM size
strHTARAM=fUniversalCheckData(strHTARAM,"'Detect RAM - fCheckRAM'")
strHTARAM=fCheckRAM(strHTARAM) 'check RAM meets req
If strHTARAMState=cFail Then Exit Function
'4) Disk format IS NTFS
strDisks=fGetDrives(strWQLFSType) 'Get formatting info for all drives
strHTACheckRAW=fUniversalCheckData(strDisks,"'Detect filesystem - fCheckNTFS'") 'Validate data
strHTACheckRAW=fCheckNTFS(strDisks) 'Check FS format is acceptable (not RAW)
If strHTACheckRAW=cFail Then Exit Function
'Generic CPU calls
strHTACPUFullInfo="CPUs:" & fGetCPUInfo(strWQLCPUInfo) & " with CPU cores:" & iCPUCoreCount
strBIOSInfo="BIOS version: " & strBIOSver & ", dated " & strBIOSDate
'5a) CPU Speed check (info from http://www.robvanderwoude.com/wmiexamples.php)
strCPUInfo=WMI(strWQLCPUInfo,strNamespace) 'Get CPU details
strTemp=split(strCPUInfo,"@"): strHTACPUSpeed=strTemp(1)
strHTACPUSpeed=fUniversalCheckData(strHTACPUSpeed,"'Check processor - fCheckCPUSpeed'") 'Validate data
strHTACPUSpeed=fCheckCPUSpeed(strHTACPUSpeed) 'Check CPU clock speed
'5b) cores check
strHTACPUCores=fUniversalCheckData(iCPUCoreCount,"Check core count - fCheckCores") 'Validate data
iCPUCoreCount=fCheckCores(iCPUCoreCount) 'pass or fail?
'5c) CPU address width
strHTAArchitecture=fUniversalCheckData(strHTAArchitecture,"Check core count - fCheckCores") 'Validate data
strHTAArchitecture=fCheckCPUArch(strHTAArchitecture)
'6) Check outlook
strHTAOutlook=fCheckProcess(strWQLProc)
'7) Check Battery
strHTABattery=fCheckBattery(strWQLBattery)
'end checkss
document.body.style.cursor = "default"
'Display hardware values in GUI (in table)
Vendor.innerhtml = strHTAVendor 'Use str...var..STATE if you want Pass/fail text instead
Model.innerhtml = strHTAModel
Product.innerhtml = strHTAProduct
RAM.innerhtml = strHTARAM
CPUspeed.innerhtml = strHTACPUSpeed
CPUInfo.innerhtml = strHTACPUFullInfo
HDDFS.innerhtml = strHTACheckRAW
CapableArchitecture.innerhtml=strHTAArchitecture
BIOSversion.innerhtml = strBIOSver
BIOSDate.innerhtml = strBIOSDate' CPUName.innerhtml = strCPUDesc 'GetCPUName
End If
'======================================================================================
' #endregion
End Function
'generic WMI queries, by field and namespace
Function WMI(strQuery,strNameSpace)
'Aim: generic WMI calls
'return value of BIOS
On Error Resume Next
Dim colItems,objItem
Dim objWMI
Const strService = "winmgmts:{impersonationlevel=impersonate}//" 'binding to WMI
Const strComputer = "." 'this machine
Set objWMI = GetObject(strService & strComputer & strNamespace) 'GLOBAL wmi
Set colItems = objWMI.ExecQuery(strQuery,,lFlags)
For Each objItem In colItems
If Err Then
StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "WMI query: " & strQuery & " in " & strNamespace & objItem.Name
Call ErrHandler("WMI error " & strQuery,1)
Else
WMI=objItem.Name 'Return value
End If
Next
End Function
Function fGetModelName(strWQLPCInfo)
'Aim: Get model name from BIOS - WMI field sometimes varies if laptop, so try two
'Return STRING: Model string from BIOS or "UNKNOWN" if null
On Error Resume Next
Dim colPCInfo,objPCItem
Dim strModel
Set colPCInfo = GetObject("winmgmts:").ExecQuery(strWQLPCInfo,"WQL",lFlags)
If Err Then
Call ErrHandler("fGetModelName: Error querying WMI " & strWQLPCInfo,2)
Else
For Each objPCItem In colPCInfo
If Not IsNull(objPCItem.Model) Then
strModel=objPCItem.Model
' iRAM=objPCItem.TotalPhysicalMemory
Else
If (strHTAVendor=cApprovedOEM And IsLaptop = True) Then ' resort to HP specific query for older laptops
'Notebook
strModel=QueryHPBIOS(sNoteModel)
if strModel="" then strModel=QueryHPBIOS(sModel) 'try alt value
Else
strModel=QueryHPBIOS(sModel)
End If
End If
Next
End If
If strModel = "" Then
fGetModelName = "UNKNOWN"
Model.style.visibility="hidden"
Else
fGetModelName=strModel
End If
End Function
'====================================================
'====================================================
Function fGetRAM(strQuery)
'Aim: get RAM installed. NB Win32_ComputerSystem::TotalPhysicalMemory may not be accurate
'Return integer
On Error Resume Next 'equiv to Err.Clear
Dim colItems, item
Dim iTotalMemory
Set colItems = GetObject("winmgmts:").ExecQuery(strQuery,"WQL",lFlags)
If Err Then
Call ErrHandler("fGetRAM: Error querying " & strQuery,2)
Else
iTotalMemory = 0
For Each item In colItems
iTotalMemory = iTotalMemory + CDBL(item.Capacity)/(1024^2)
Next
End If
If iTotalMemory = "" Then
fGetRAM = "RAM UNKNOWN"
RAM.style.visibility="hidden"
Else
fGetRAM=iTotalMemory
End If
End Function
'====================================================
'====================================================
Function fGetCPUInfo(strQuery)
'Aim: query WMI for CPU info - number and number of cores
'Return: function=CPU count, var for the cores: iCPUCoreCount, strHTAArchitecture, strCPUDesc
On Error Resume Next
Dim colItems, objItem
Dim NumberOfProcessors
Set colItems = GetObject("winmgmts:").ExecQuery(strQuery,"WQL",lFlags)
If Err Then
Call ErrHandler("GetCPUInfo: Error querying " & strQuery,2)
Else
For Each objItem In colItems
If Err Then
Else
If Not IsNull(objItem.NumberOfCores) Then
NumberOfProcessors = Trim(objItem.NumberOfCores) 'NumberOfProcessors
End If
If Not IsNull(objItem.NumberOfLogicalProcessors) Then
iCPUCoreCount = Int(Trim(objItem.NumberOfLogicalProcessors))
End If
If Not IsNull(objItem.DataWidth) Then
strHTAArchitecture=Trim(objItem.DataWidth) & "-bit"
End If
If Not IsNull(objItem.description) Then
strCPUDesc = Trim(objItem.description) 'cpu name
End If
End If
Next
If NumberOfProcessors = "" Then
NumberOfProcessors = "UNKNOWN"
End If
fGetCPUInfo = Int(NumberOfProcessors)
' iCPUCoreCount = Int(NumberOfLogicalProcessors)
End If
End Function
'====================================================
'====================================================
Function fGetComputerSystemProdIDNumber(strWQLID)
'Aim: Get UUID from Win32_ComputerSystemProduct
'Return: great big integer
Dim colSys,objSys
Dim strUUID
On Error resume next
Set colSys = GetObject("winmgmts:").ExecQuery(strWQLID,"WQL",lFlags)
If Err then
Call ErrHandler("fGetComputerSystemProdIDNumber: Error querying " & strWQLID,2)
Else
For Each objSys In colSys
If Not IsNull(objSys.IdentifyingNumber) Then
strUUID = Trim(objSys.IdentifyingNumber)
End If
Next
If strUUID = "" Then
fGetComputerSystemProdIDNumber = "UNKNOWN"
Else
fGetComputerSystemProdIDNumber = strUUID
End If
End If
End Function
'=================================================================================
'=================================================================================
Function fGetDrives(strQuery)
Dim colDisks,objHDD
Dim strDriveType, strDiskSize, strDisk
Dim strDiskFSType
Dim iGBUnits
On Error Resume Next
iGBUnits=1073741824
Dim iRAW
iRAW=0
Set colDisks = GetObject("winmgmts:").ExecQuery(strQuery)
For Each objHDD In colDisks
Select Case objHDD.DriveType
Case 1 strDriveType = "Drive could not be determined."
Case 2 strDriveType = "Removable Drive"
Case 3 strDriveType = "Local hard disk."
Case 4 strDriveType = "Network disk."
Case 5 strDriveType = "Compact disk (CD)"
Case 6 strDriveType = "RAM disk."
Case Else strDriveType = "Drive type Problem."
End Select
strDiskFSType = objHDD.FileSystem
'Find C
If objHDD.Name="C:" Then
If isNull(objHDD.FreeSpace) Then
If blnDebug=True then Call ErrHandler("ALERT!! Volume " & objHDD.Name & "is RAW",1) 'Abort/clean
fCheckDrives="ALERT!! Volume " & objHDD.Name & "is RAW"
End If
End If
strDiskSize = Int(objHDD.Size /iGBUnits) & "GB" 'calc size of disk
strDisk = strDisk & VbCrLf & "Vol " & objHDD.Name & " (" & strDriveType & ") size: " & strDiskSize & " (free: " & Int(objHDD.FreeSpace /iGBUnits) & "GB), " & strDiskFSType
fGetDrives=strDisk
Next
If (Err.Number <>0) Then
Call ErrHandler("WMI Property Query Error: [" & Err.Number & "]",2)
fGetDrives = -1
Exit Function
End If
End Function
'=================================================================================
'=================================================================================
Function fUniversalCheckData(varData,strStage) 'template
'Aim: Check value passed...
'is not blank
'is in range x..y
'spelt OK
'is in a list
'format is text, numeric
'return: string: the original value
On Error Resume Next
Dim Err
if blnDebug Then StatusBar.InnerText = StatusBar.InnerText & VbCrLf & "Validating " & strStage & " data..."
If Err Then
Call ErrHandler("WARNING: Error discovering value in " & strStage,2) '1=Quit,2=Warn
strHTAModel="Unknown"
Else
Select Case varData
Case IsEmpty(varData) Or IsNull(varData)
Call ErrHandler("WARNING: Error in "& strStage,2) '1=Quit,2=Warn
fUniversalCheckData="Unknown"
Case IsNumeric(varData)
If varData<0 Then
Call ErrHandler("WARNING: Value negative"& strStage,2) '1=Quit,2=Warn
fUniversalCheckData="Unknown"
End if
' & varData &
Case IsDate(varData)
Case Else
fUniversalCheckData=varData 'Data OK - return value unchanged
End Select
End If
End Function
'=================================================================================
'Checks - follow if true DO, if false warn/abort
'=================================================================================
Function fCheckBattery(strQuery)
'Aim: Find if battery is running
'Return pass/fail
On Error Resume Next 'equiv to Err.Clear
Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20
Dim colItems, item
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\WMI")
Set colItems = objWMIService.ExecQuery("SELECT * FROM BatteryStatus Where Voltage > 0", "WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)
For Each item In colItems
if objItem.PowerOnline = True Then
strHTABattery=objItem.PowerOnline
strHTABatteryState = cFail
Err.Raise 9010,"fCheckBattery",strHTABattery & " Laptop running on battery. OSD Cannot continue."
Call ErrHandler(ucase(strHTABatteryState) & ": " & Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",1)
StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "FATAL ERROR - Laptop on Battery. Please plug into an outlet before proceeding."
iTimer = window.setTimeout("Abort", iAbortTimeout, "VBScript")
Else
strHTABatteryState = cPassed
End if
Next
fCheckBattery=strHTABattery
End Function
'====================================================
Function fCheckProcess(strQuery)
'Aim: Find if outlook is running
'Return pass/fail
On Error Resume Next 'equiv to Err.Clear
Dim colItems, item
Set colItems = GetObject("winmgmts:").ExecQuery(strQuery,"WQL",lFlags)
For Each item In colItems
if item.Name = "OUTLOOK.EXE" Then
strHTAOutlook=item.Name
strHTAOutlookState = cFail
Err.Raise 9010,"fCheckOutlook",strHTAOutlook & " running. OSD Cannot continue."
Call ErrHandler(ucase(strHTAOutlookState) & ": " & Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",1)
StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "FATAL ERROR - Outlook Running, please close outlook before proceeding."
iTimer = window.setTimeout("Abort", iAbortTimeout, "VBScript")
Elseif item.Name = "communicator.exe" Then
strHTAOutlook=item.Name
strHTAOutlookState = cFail
Err.Raise 9010,"fCheckOutlook",strHTAOutlook & " running. OSD Cannot continue."
Call ErrHandler(ucase(strHTAOutlookState) & ": " & Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",1)
StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "FATAL ERROR - Communicator Running, please close OCS before proceeding."
iTimer = window.setTimeout("Abort", iAbortTimeout, "VBScript")
Else
strHTAOutlookState = cPassed
End if
Next
fCheckProcess=strHTAOutlook
End Function
'====================================================
'1 - Make
Function fCheckVendor(strVendor)
'Aim: Check make is one the OS/build is designed For
'Return: STRINGS for "Make", BIOS version and BIOS date (generic): strHTAVendorState pass or fail
On Error Resume Next
Dim colItems,objItem
Set colItems = GetObject("winmgmts:").ExecQuery(strVendor, "WQL", lFlags)
For Each objItem In colItems
strHTAVendor=objItem.Manufacturer
if objApprovedMakesDict.exists(strHTAVendor) then
strBIOSver=objItem.SMBIOSBIOSVersion
strBIOSDate=Mid( objItem.ReleaseDate, 5, 2 ) & "/" & Mid( objItem.ReleaseDate, 7, 2 ) & "/" & Left( objItem.ReleaseDate, 4 )
strHTAVendorState=cPassed
Else
strHTAVendorState=cFail
Err.Raise 9010,"fCheckVendor",strHTAVendor & " found. The build will not work on this make of hardware"
Call ErrHandler(ucase(strHTAVendorState) & ": " & Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",1)
bAbortBuild=True
end if
Next
fCheckVendor=strHTAVendor
End Function
'=================================================================================
'=================================================================================
'2 - Models check
Function fCheckModel(strThisModel)
'Aim Check target machine is in list of models
'Return string
On Error Resume Next
StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "Checking model..." & VbCrLf
If objModelsDict.exists(trim(strThisModel)) then ' if current model in objDict then huzzah
strHTAModelState=cPassed
StatusBar.InnerText=StatusBar.InnerText & vbTab & "Model detected: " & vbTab & strHTAModelState
Else
strHTAModelState=cFail
Err.Raise 9010,"fCheckModel",strThisModel & " found. The build will not work on this model of hardware"
Call ErrHandler(ucase(strHTAModelState) & ": " & Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",1)
end if
fCheckModel=strHTAModel
End Function
'=================================================================================
'=================================================================================
'3 - RAM
Function fCheckRAM(strRAM)
'Aim: Check installed RAM > x
'Return string digits with units, e.g. 4GB
'use strHTARAM for value
'==================================================================
' Memory Preflight Check (from MDT2012)
'==================================================================
On Error Resume Next
StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "Checking RAM..."
If Err.Number <> 0 Then
Call ErrHandler("Error occurred while calculating computer's memory.",2)
End If
fCheckRAM = Int(strRAM/1024) & "GB" 'format in GB
If Int(strRAM) > cMinimumMemoryMB Then
strHTARAMState=cPassed 'Sufficient memory - show whole number in GB"
StatusBar.InnerText=StatusBar.InnerText & vbTab & "RAM installed: " & vbTab & strHTARAMState
Else
strHTARAMState=cFail
Err.Raise 9030 ,"fCheckRAM","Not enough memory in this machine!" & " Required physical memory is: " & cMinimumMemoryMB & " MB."
Call ErrHandler(ucase(strHTARAMState) & ": " & Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",1) 'abort build
End If
End Function
'=================================================================================
'=================================================================================
'4 - NTFS disk
Function fCheckNTFS(strDiskFS)
'Aim: Check HDD is NTFS
'Return string
On Error Resume Next
StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "Checking file system is not RAW..."
If Instr(1,strDiskFS,cMinFS,VBTextCompare)<>0 Then
fCheckNTFS=cMinFS 'disk format is OK (NTFS)
StatusBar.InnerText=StatusBar.InnerText & vbTab & " File system: " & cPassed
Else
fCheckNTFS=cFail
Err.Raise 9040 ,"fCheckNTFS","WARNING: Disk not correct file-system. Type required is: " & cMinFS & "." & VbCrLf & _
"The deployment will fail unless you reformat the target disk immediately."
Call ErrHandler(Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",2) 'halt build
End If
End Function
'====================================================
'=================================================================================
'5 - CPU checks
'=================================================================================
Function fCheckCPUSpeed(strCPU) 'any HW
'Aim: Check CPU speed
'Return string = number + appropriate units, e.g. 5HGz (strCPU)
On Error Resume Next
StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "Checking CPU spec..."
Select Case Right(strCPU,3) 'check units
Case "MHz"
strCPU=Left(strCPU,4)/1000 'reformat to GHz
Case "GHz"
strCPU=strCPU 'unit already OK
Case Else
Call ErrHandler("CPU units are unknown",2)
End Select
'Check clock speed
If Int(Left(trim(strCPU),1))>=iMinCPUSpeed Then
fCheckCPUSpeed=strHTACPUSpeed 'CPU is fine i.e don't change value
StatusBar.InnerText=StatusBar.InnerText & vbTab & "CPU Speed: " & cPassed
Else
fCheckCPUSpeed=cFail 'already in GHz
Err.Raise 9050,"fCheckCPUSpeed","CPU speed pre-requisite failed. Minimum processor clock speed is: " & iMinCPUSpeed
Call ErrHandler(Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",1) 'halt build
End If
End Function
'=================================================================================
'=================================================================================
Function fCheckCPUArch(strCPUArch) 'any HW
'Aim: Check CPU width
'Return string
On Error Resume Next
StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "Checking CPU bus width..."
'Check clock speed
If Int(Left(trim(strCPUArch),2))>=iMinCPUArch Then
fCheckCPUArch=strHTAArchitecture 'CPU is fine i.e don't change value
StatusBar.InnerText=StatusBar.InnerText & vbTab & "CPU width: " & cPassed
Else
fCheckCPUArch=cFail 'already in GHz
Err.Raise 9052,"fCheckCPUArch","CPU width pre-requisite failed. Minimum processor width required is: " & iMinCPUArch
Call ErrHandler(Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",1) 'abort build
End If
End Function
'=================================================================================
Function fCheckCores(iCores)
'Aim: Check hardware (CPU) has a minimum number of cores
'Return Integer
On Error Resume Next
StatusBar.InnerText=StatusBar.InnerText & VbCrLf & "Checking CPU cores..."
If iCores>=iMinCores Then
fCheckCores=iCores
StatusBar.InnerText=StatusBar.InnerText & vbTab & "Core count: " & vbTab & cPassed
'StatusBar.InnerText=StatusBar.InnerText & vbTab & "CPU cores: " & cPassed
Else
fCheckCores=cFail
Err.Raise 9051,"fCheckCores","WARNING: Not enough cores on the CPU to support the build. Minimum CPU cores is: " & iMinCores
Call ErrHandler(Err.Description & " (Code: " & Err.Number & " - " & Err.Source & ")",2) 'halt build
End If
End Function
'=================================================================================
'=================================================================================
Function fCheckHPCPUSpeed 'HP ONLY
'Aim: Check CPU speed
'return: string
'Check CPU speed
On Error Resume Next
strWQLCPU = "processor speed"
strTemp=QueryHPBIOS(strWQLCPU,"")
Select Case Right(strTemp,3)
Case "MHz"
strTemp=Left(strTemp,4)/1000 'reformat to GHz
Case "GHz"
strTemp 'is OK
Case Else
Call ErrHandler("CPU is unknown",2)
End Select
'Check clock speed
If strTemp>=iMinCPUSpeed Then
fCheckCPUSpeed= strTemp & "GHz"
Else
Err.Raise 9050,,"CPU speed pre-requisite failed"
Call ErrHandler("CPU is too slow",1)
fCheckCPUSpeed=cFail 'already in GHz
End If
End Function
'=================================================================================
'=================================================================================
Function fGetModels
'Aim: Read external text file
'return: dictionary object - models as key, integer as value e.g. Dell Optiplex,12
'On Error Resume Next
Dim objFSO
Dim objFile
Dim strFile
Dim strEntry
Dim n
Dim strfilepath
Dim iLineCount 'count lines to avoid listing first item with ,.
Set objModelsDict = CreateObject("Scripting.Dictionary")
set objFSO=CreateObject("Scripting.FileSystemObject")
Const ForReading=1
strfilepath = Left(window.location.pathname,InStrRev(window.location.pathname,"\"))
strFile=strfilepath & "Models.txt"
set objFile=objFSO.OpenTextFile(strFile,ForReading)
iLineCount=0
'read in each line of data until you reach the end of the file
do While objFile.AtEndOfStream<>True
strEntry=objFile.ReadLine
'you can now do what ever you want with the line as referenced with the strEntry variable such as
'echoing it back (e.g. wscript.Echo strEntry) or passing it as a variable to a function of subroutine (e.g. MyFunction strEntry)
objModelsDict.comparemode=VBTextCompare
objModelsDict.Add strEntry,iLineCount
iLineCount=iLineCount+1
If blnDebug then
If iLineCount=1 Then
StatusBar.InnerText=trim(strEntry)
Else
StatusBar.InnerText=StatusBar.InnerText & ", " & trim(strEntry) 'list models
End If
End If
Loop
objFile.Close
End Function
'=================================================================================
'=================================================================================
'====================================================
Function ErrHandler(strErrorMsg,iErrMode)
'Aim: to handle error states
' 1 = Abort
' 2 = Warn
'Return 'Appropriate text message explaining the error
'====================================================
Const msgTitle="SCCM Deployment Preflight Checklist"
'On Error Resume Next '< don't use that as we want to KEEP the error properties
'Abort=1
If iErrMode=1 Then
StatusBar.InnerText=strErrorMsg 'overwrite status with Error message
' StatusBar.InnerText=StatusBar.InnerText & VbCrLf & " " & strHTAOutlook & " " & strHTAVendor & " " & strHTAVendorState & _
' VbCrLf & " " & strHTAModel & strHTAModelState & _
' VbCrLf & " " & strHTARAM & strHTARAMState & _
' VbCrLf & " " & strHTAHDD & strHTAHDDState
iTimer = window.setTimeout("Abort", iAbortTimeout, "VBScript") 'Abort (close) after n seconds
'MsgBox strErrorMsg,vbExclamation,msgTitle
'ErrBar.class=""
ElseIf iErrMode=2 Then
'Warning
StatusBar.InnerText=StatusBar.InnerText & VbCrLf & strErrorMsg & " " '& "(" & Err.Description & " :" & Err.Number & ")"',vbExclamation,msgTitle
Err.Clear
End If
End Function
'====================================================
Sub Abort
'Aim: Quit gracefully
window.close()
End Sub
</script>
<!-- #region BODY -->
<body>
<br />
<div>
<span style="version"> <span id="VersionSpan"></span></div>
<div style="text-align: center;">
<H1 style="font-family: Arial, Helvetica, sans-serif; font-size: large; text-align: center; color: #000000; text-transform: capitalize">System information</H1>
<span>
<table border="1" cellspacing="0" cellpadding="0" style="width: 912px"
id="SysInfoTable">
<tr class="h1">
<td align="right" class="Header1" style="width: 76px; height: 18px">
</td>
<td align="right" class="Header1" style="height: 18px"><em id="VendorCaption">Vendor</em></td>
<td align="left" class="style2" style="height: 18px"><span id="Vendor"></span></td>
<td align="right" class="Header2" style="height: 18px"><em id="ModelCaption">Model</em></td>
<td align="center" class="style4" style="width: 400px; height: 18px"><span id="Model"></span></td>
</tr>
<tr>
<td align="right" class="Header1" style="width: 76px">
</td>
<td align="right" class="Header1"><em id="ProductCaption">Product ID</em></td>
<td align="left" class="style2"><span id="Product"></span></td>
<td align="right" class="Header2"><em id="RAMCaption">Memory(in MB)</em></td>
<td align="left" class="style4" style="width: 400px"><span id="RAM"></span></td>
</tr>`
<tr>
<td align="right" class="Header1" style="width: 76px">
</td>
<td align="right" class="Header1"><em id="CPUCaption">CPU speed (in GHz)</em></td>
<td align="left" class="style2"><span id="CPUspeed"></span></td>
<td align="right" class="Header2"><em id="CPUInfoCaption">No: CPU\Cores</em></td>
<td align="left" class="style4" style="width: 400px"><span id="CPUInfo"></span></td>
</tr>
<tr>
<td align="right" class="Header1" style="width: 76px">
</td>
<td align="right" class="Header1"><em id="DiskFSCaption">Filesystem info</em></td>
<td align="left" class="style2"><span id="HDDFS"></span></td>
<td align="right" class="Header2"><em id="CapableArchCaption">Architecture</em></td>
<td align="left" class="style4" style="width: 400px"><span id="CapableArchitecture"></span></td>
</tr>
<tr>
<td align="right" class="Header1" style="width: 76px">
</td>
<td align="right" class="Header1"><em id="BIOSVerCaption">BIOS version</em></td>
<td align="left" class="style2" ><span id="BIOSVERSION"></span></td>
<td align="right" class="Header2"><em id="BIOSDateCaption">BIOS Date</em></td>
<td align="left" class="style4" style="width: 400px"><span id="BIOSDate"></span></td>
</tr>
</table>
</span>
</div>
<div class="StatusBar">
<br />
<Span id="StatusBar">Loading...please wait.</Span>
</div> <br><br>
<div align="center">
<input type="button" name="btnStop" id="btnStop" value="Continue" onclick="Abort">
<input type="Button" value="Re-Scan Machine" name="button1" onClick="Window_Onload" class="button">
</div>
</body><!-- #endregion -->
</html> -
Getting Access is Denied when Running Script in OSD Task Sequence
I am attempting put in a script that will move the computer account to the proper OU in AD. I have the script but when it launches inside of the TS I get "CScript Error: Loading script "C:\_SMSTaskSequence\WDPackage\Scripts\MoveOU.vbs" failed
(Access is denied. )."
I am using the Run Command Line, and using the "Run this step as the following account" I have verified that the account has access to do what I need it to do in AD. I have attached the logs as well.
PackageID = 'WI10015A' InstallSoftware
3/21/2012 8:46:53 AM 3316 (0x0CF4)
BaseVar = '', ContinueOnError='' InstallSoftware
3/21/2012 8:46:53 AM 3316 (0x0CF4)
SwdAction = '0001' InstallSoftware
3/21/2012 8:46:53 AM 3316 (0x0CF4)
Getting linked token InstallSoftware
3/21/2012 8:46:53 AM 3316 (0x0CF4)
failed to get the token information InstallSoftware
3/21/2012 8:46:53 AM 3316 (0x0CF4)
Get RunAs private desktop SMSTS-169042\SMSTSDesktop
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Run command line under a user account InstallSoftware
3/21/2012 8:46:54 AM 3316 (0x0CF4)
Found the location for the package _SMSTSWI10015A. The location is on \\<SCCMSERVERNAME>\SMSPKGF$\WI10015A\
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
nPos != CCM::Utility::String::npos, HRESULT=80004005 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,253)
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Creating a connection to \\<SCCMSERVERNAME>\SMSPKGF$\WI10015A\ with default account
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Connection request for "\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A"
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
No credentials available for connecting to "\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A". See whether the share has already been connected.
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Connecting to "\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A"
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Successfully connected to "\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A"
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Resolved source to '\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A'
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Command line for extension .exe is "%1" %* InstallSoftware
3/21/2012 8:46:54 AM 3316 (0x0CF4)
Set command line: Run command line InstallSoftware
3/21/2012 8:46:54 AM 3316 (0x0CF4)
Working dir '\\<SCCMSERVERNAME>\SMSPKGF$\WI10015A'
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Executing command line: Run command line InstallSoftware
3/21/2012 8:46:54 AM 3316 (0x0CF4)
Create a process under given user token InstallSoftware
3/21/2012 8:46:54 AM 3316 (0x0CF4)
Process completed with exit code 1 InstallSoftware
3/21/2012 8:46:54 AM 3316 (0x0CF4)
Microsoft (R) Windows Script Host Version 5.8
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Copyright (C) Microsoft Corporation. All rights reserved.
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
CScript Error: Loading script "C:\_SMSTaskSequence\WDPackage\Scripts\MoveOU.vbs" failed (Access is denied. ).
InstallSoftware
3/21/2012 8:46:54 AM 3316 (0x0CF4)
Command line returned 1 InstallSoftware
3/21/2012 8:46:54 AM 3316 (0x0CF4)
Entering ReleaseSource() for \\<SCCMSERVERNAME>\SMSPKGF$\WI10015A\
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
reference count 1 for the source \\<SCCMSERVERNAME>\SMSPKGF$\WI10015A\ before releasing
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Released the resolved source \\<SCCMSERVERNAME>\SMSPKGF$\WI10015A\
InstallSoftware 3/21/2012 8:46:54 AM
3316 (0x0CF4)
Process completed with exit code 1 TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
TSManager 3/21/2012 8:46:54 AM
2520 (0x09D8)
Failed to run the action: Move Computer to Correct OU.
Incorrect function. (Error: 00000001; Source: Windows)
TSManager 3/21/2012 8:46:54 AM
2520 (0x09D8)
Sending status message . . . TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
Send a task execution status message SMS_TSExecution_ActionFailError
TSManager 3/21/2012 8:46:54 AM
2520 (0x09D8)
MP server <SCCMSERVERNAME> and port 80. SSL=false. CRL=false.
TSManager 3/21/2012 8:46:54 AM
2520 (0x09D8)
Site code: WI1 TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
Client machine name: 1J44KQ1 TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
Client Identity: GUID:6ffb32d4-1184-4e40-a1c8-26272a707a72
TSManager 3/21/2012 8:46:54 AM
2520 (0x09D8)
Advertisement ID: WI12029D TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
Package ID: WI1001E7 TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
Sending StatusMessage TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
Formatted header: TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>ABB94CBE-33F4-4EB9-A151-34EE3474A0F9</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2012-03-21T12:46:54Z</SentTime><Protocol>http</Protocol><Body
Type="ByteRange" Offset="0" Length="4174"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg>
TSManager
3/21/2012 8:46:54 AM 2520 (0x09D8)
CLibSMSMessageWinHttpTransport::Send: URL: <SCCMSERVERNAME>:80 CCM_POST /ccm_system/request
TSManager 3/21/2012 8:46:54 AM
2520 (0x09D8)
The request has succeeded. 200 OK TSManager
3/21/2012 8:46:55 AM 2520 (0x09D8)
Set a global environment variable _SMSTSLastActionRetCode=1
TSManager 3/21/2012 8:46:55 AM
2520 (0x09D8)
Set a global environment variable _SMSTSLastActionSucceeded=false
TSManager 3/21/2012 8:46:55 AM
2520 (0x09D8)
Clear local default environment TSManager
3/21/2012 8:46:55 AM 2520 (0x09D8)
Let the parent group (Testing) decides whether to continue execution
TSManager 3/21/2012 8:46:55 AM
2520 (0x09D8)
The execution of the group (Testing) has failed and the execution has been aborted. An action failed.
Operation aborted (Error: 80004004; Source: Windows)
TSManager 3/21/2012 8:46:55 AM
2520 (0x09D8)
Failed to run the last action: Move Computer to Correct OU. Execution of task sequence failed.
Incorrect function. (Error: 00000001; Source: Windows)
TSManager 3/21/2012 8:46:55 AM
2520 (0x09D8)
Any suggestions would be greatly appreciated!
"You can't fix stupid!"I'm having the exact same issue. I'm using AutoIT for my script to move the computer account. I've tried using ADO, LDAP, and LDAP/ADSystemInfo object. They all fail with access denied. In fact the ADO version of my script fails just
trying to create the "ADODB.Connection" object which I know for a fact doesn't require elevation or administrator access. However, all three versions of the script work correctly when run manually outside the TS. They also work correctly on XP
machines during OSD. Only when deploying a Win7 machine do they fail during the TS. I've tried adding the runas user to the local administrators group beforehand but no dice. Did you have to restart the computer after doing the net localgroup
change? There has to be some other security config in Win7 that is set somewhere doing this. I just can't figure out what. I've even started looking at DCOM/COM permissions to see if something isn't right there.
I don't see why but maybe the script needs to be run locally? Any other ideas? -
Failed to run task sequence SCCM 2012 (
Hi wondering if some kind soul can put an end to my torture. Iv been fighting with this issue for about a week now. As far as i know sccm has been setup correctly. (sorry i was not the person who installed it) iv been following the instructions from
the internets but i just cant get the task sequence to fire off i keep getting failed.
here is my log file > (sorry its long) but i would be eternally gratful for any assistance in finding out the root cause of my misery.
<![LOG[LOGGING: Finalize process ID set to 796]LOG]!><time="10:31:04.383+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="800" file="tslogging.cpp:1495">
<![LOG[==============================[ TSBootShell.exe ]==============================]LOG]!><time="10:31:04.383+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="800"
file="bootshell.cpp:1055">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="10:31:04.383+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="800" file="util.cpp:964">
<![LOG[Debug shell is enabled]LOG]!><time="10:31:04.383+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="800" file="bootshell.cpp:1066">
<![LOG[Waiting for PNP initialization...]LOG]!><time="10:31:04.398+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="bootshell.cpp:60">
<![LOG[RAM Disk Boot Path: NET(0)\SMSIMAGES\P0100005\BOOT.P0100005.WIM]LOG]!><time="10:31:04.398+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="configpath.cpp:302">
<![LOG[Booted from network (PXE)]LOG]!><time="10:31:04.398+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="configpath.cpp:317">
<![LOG[Network(PXE) path: X:\sms\data\]LOG]!><time="10:31:04.398+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="configpath.cpp:319">
<![LOG[Found config path X:\sms\data\]LOG]!><time="10:31:04.398+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="bootshell.cpp:548">
<![LOG[This is not a fixed non usb disk]LOG]!><time="10:31:04.398+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="diskutils.cpp:1694">
<![LOG[Booting from removable media, not restoring bootloaders on hard drive]LOG]!><time="10:31:04.398+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="bootshell.cpp:582">
<![LOG[X:\sms\data\WinPE does not exist.]LOG]!><time="10:31:04.398+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="bootshell.cpp:599">
<![LOG[X:\_SmsTsWinPE\WinPE does not exist.]LOG]!><time="10:31:04.398+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="bootshell.cpp:613">
<![LOG[Executing command line: wpeinit.exe -winpe]LOG]!><time="10:31:04.398+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="bootshell.cpp:860">
<![LOG[The command completed successfully.]LOG]!><time="10:31:14.407+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="bootshell.cpp:942">
<![LOG[Starting DNS client service.]LOG]!><time="10:31:14.407+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="bootshell.cpp:666">
<![LOG[Executing command line: X:\sms\bin\x64\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\]LOG]!><time="10:31:14.913+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804"
file="bootshell.cpp:860">
<![LOG[The command completed successfully.]LOG]!><time="10:31:14.913+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="bootshell.cpp:942">
<![LOG[==============================[ TSMBootStrap.exe ]==============================]LOG]!><time="10:31:14.944+480" date="09-17-2014" component="TSMBootstrap" context="" type="1" thread="384"
file="tsmbootstrap.cpp:1165">
<![LOG[Command line: X:\sms\bin\x64\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\]LOG]!><time="10:31:14.959+480" date="09-17-2014" component="TSMBootstrap" context="" type="0" thread="384"
file="tsmbootstrap.cpp:1166">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="10:31:14.959+480" date="09-17-2014" component="TSMBootstrap" context="" type="1" thread="384" file="util.cpp:964">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\TSRESNLC.DLL']LOG]!><time="10:31:14.959+480" date="09-17-2014" component="TSMBootstrap" context="" type="1" thread="384" file="resourceutils.cpp:169">
<![LOG[Current OS version is 6.2.9200.0]LOG]!><time="10:31:14.959+480" date="09-17-2014" component="TSMBootstrap" context="" type="1" thread="384" file="util.cpp:3094">
<![LOG[Adding SMS bin folder "X:\sms\bin\x64" to the system environment PATH]LOG]!><time="10:31:14.959+480" date="09-17-2014" component="TSMBootstrap" context="" type="0" thread="384"
file="tsmbootstrap.cpp:963">
<![LOG[PXE Boot with Root = X:\]LOG]!><time="10:31:14.959+480" date="09-17-2014" component="TSMBootstrap" context="" type="1" thread="384" file="tsmbootstrap.cpp:1062">
<![LOG[Executing from PXE in WinPE]LOG]!><time="10:31:14.959+480" date="09-17-2014" component="TSMBootstrap" context="" type="1" thread="384" file="tsmbootstrap.cpp:1077">
<![LOG[Loading TsPxe.dll from X:\sms\bin\x64\TsPxe.dll]LOG]!><time="10:31:14.959+480" date="09-17-2014" component="TSMBootstrap" context="" type="0" thread="384" file="tsmbootstraputil.cpp:1363">
<![LOG[TsPxe.dll loaded]LOG]!><time="10:31:14.959+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="tsmbootstraputil.cpp:1373">
<![LOG[Device has PXE booted]LOG]!><time="10:31:14.959+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="tspxe.cpp:122">
<![LOG[Variable Path: \SMSTemp\2014.09.16.16.58.31.0003.{27332866-351E-413C-8E1B-0468085C592E}.boot.var]LOG]!><time="10:31:14.959+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="384"
file="tspxe.cpp:134">
<![LOG[Succesfully added firewall rule for Tftp]LOG]!><time="10:31:14.959+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="fwopen.cpp:123">
<![LOG[Executing: X:\sms\bin\x64\smstftp.exe -i 192.168.50.20 get \SMSTemp\2014.09.16.16.58.31.0003.{27332866-351E-413C-8E1B-0468085C592E}.boot.var X:\sms\data\variables.dat]LOG]!><time="10:31:14.959+480" date="09-17-2014" component="TSPxe"
context="" type="0" thread="384" file="tspxe.cpp:177">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="10:31:15.006+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="commandline.cpp:228">
<![LOG[Set command line: "X:\sms\bin\x64\smstftp.exe" -i 192.168.50.20 get \SMSTemp\2014.09.16.16.58.31.0003.{27332866-351E-413C-8E1B-0468085C592E}.boot.var X:\sms\data\variables.dat]LOG]!><time="10:31:15.006+480" date="09-17-2014"
component="TSPxe" context="" type="0" thread="384" file="commandline.cpp:731">
<![LOG[Executing command line: "X:\sms\bin\x64\smstftp.exe" -i 192.168.50.20 get \SMSTemp\2014.09.16.16.58.31.0003.{27332866-351E-413C-8E1B-0468085C592E}.boot.var X:\sms\data\variables.dat]LOG]!><time="10:31:15.006+480" date="09-17-2014"
component="TSPxe" context="" type="1" thread="384" file="commandline.cpp:827">
<![LOG[Process completed with exit code 0]LOG]!><time="10:31:15.067+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="384" file="commandline.cpp:1123">
<![LOG[Succesfully removed firewall rule for Tftp]LOG]!><time="10:31:15.067+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="fwopen.cpp:146">
<![LOG[Successfully downloaded pxe variable file.]LOG]!><time="10:31:15.067+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="384" file="tspxe.cpp:187">
<![LOG[we are booted using PXE]LOG]!><time="10:31:15.067+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="384" file="tsmediawizardcontrol.cpp:2671">
<![LOG[we are booted using PXE and we don't use a password or the password is provided by the user]LOG]!><time="10:31:15.067+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="384"
file="tsmediawizardcontrol.cpp:2687">
<![LOG[Found network adapter "Intel(R) Ethernet Connection I217-LM" with IP Address 169.254.147.22.]LOG]!><time="10:31:15.067+480" date="09-17-2014" component="TSPxe" context="" type="0"
thread="384" file="tsmbootstraputil.cpp:517">
<![LOG[Run PXE Interactive]LOG]!><time="10:31:15.067+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="tsmediawizardcontrol.cpp:2822">
<![LOG[Running Wizard in Interactive mode]LOG]!><time="10:31:15.067+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="384" file="tsmediawizardcontrol.cpp:2824">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="10:31:15.086+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="384" file="tsremovablemedia.cpp:322">
<![LOG[CryptDecrypt (hKey, 0, 1, 0, pData, &dwDecryptedLen), HRESULT=80090005 (e:\qfe\nts\sms\framework\smscrypt\windes.cpp,165)]LOG]!><time="10:31:15.086+480" date="09-17-2014" component="TSPxe" context=""
type="0" thread="384" file="windes.cpp:165">
<![LOG[SMS::Crypto::DES::DecryptBuffer( (BYTE*)pszPassword, (DWORD)(wcslen(pszPassword)*sizeof(WCHAR)), encryptedBuffer.getBuffer(), (DWORD)encryptedBuffer.size(), pbDecryptedBuffer, dwDecryptedBufferSize ), HRESULT=80090005 (e:\qfe\nts\sms\framework\tscore\tsremovablemedia.cpp,387)]LOG]!><time="10:31:15.086+480"
date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="tsremovablemedia.cpp:387">
<![LOG[Activating Welcome Page.]LOG]!><time="10:31:15.086+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="tsmediawelcomepage.cpp:131">
<![LOG[Loading bitmap]LOG]!><time="10:31:15.092+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="384" file="tsmbootstrap.cpp:1271">
<![LOG[WelcomePage::OnWizardNext()]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="tsmediawelcomepage.cpp:340">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="384" file="tsremovablemedia.cpp:322">
<![LOG[CryptDecrypt (hKey, 0, 1, 0, pData, &dwDecryptedLen), HRESULT=80090005 (e:\qfe\nts\sms\framework\smscrypt\windes.cpp,165)]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context=""
type="0" thread="384" file="windes.cpp:165">
<![LOG[SMS::Crypto::DES::DecryptBuffer( (BYTE*)pszPassword, (DWORD)(wcslen(pszPassword)*sizeof(WCHAR)), encryptedBuffer.getBuffer(), (DWORD)encryptedBuffer.size(), pbDecryptedBuffer, dwDecryptedBufferSize ), HRESULT=80090005 (e:\qfe\nts\sms\framework\tscore\tsremovablemedia.cpp,387)]LOG]!><time="10:31:19.412+480"
date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="tsremovablemedia.cpp:387">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="384" file="tsremovablemedia.cpp:322">
<![LOG[CryptDecrypt (hKey, 0, 1, 0, pData, &dwDecryptedLen), HRESULT=80090005 (e:\qfe\nts\sms\framework\smscrypt\windes.cpp,165)]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context=""
type="0" thread="384" file="windes.cpp:165">
<![LOG[SMS::Crypto::DES::DecryptBuffer( (BYTE*)pszPassword, (DWORD)(wcslen(pszPassword)*sizeof(WCHAR)), encryptedBuffer.getBuffer(), (DWORD)encryptedBuffer.size(), pbDecryptedBuffer, dwDecryptedBufferSize ), HRESULT=80090005 (e:\qfe\nts\sms\framework\tscore\tsremovablemedia.cpp,387)]LOG]!><time="10:31:19.412+480"
date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="tsremovablemedia.cpp:387">
<![LOG[Verifying media password.]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="384" file="tsmediawizardcontrol.cpp:271">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="384" file="tsremovablemedia.cpp:322">
<![LOG[Spawned thread 752 to download policy.]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="384" file="tsmediawelcomepage.cpp:405">
<![LOG[Entering TSMediaWizardControl::GetPolicy.]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="752" file="tsmediawizardcontrol.cpp:527">
<![LOG[Creating key 'Software\Microsoft\SMS\47006C006F00620061006C005C007B00350031004100300031003600420036002D0046003000440045002D0034003700350032002D0042003900370043002D003500340045003600460033003800360041003900310032007D00']LOG]!><time="10:31:19.412+480"
date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="environmentscope.cpp:263">
<![LOG[Environment scope successfully created: Global\{51A016B6-F0DE-4752-B97C-54E6F386A912}]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752"
file="environmentscope.cpp:623">
<![LOG[Creating key 'Software\Microsoft\SMS\47006C006F00620061006C005C007B00420041003300410033003900300030002D0043004100360044002D0034006100630031002D0038004300320038002D003500300037003300410046004300320032004200300033007D00']LOG]!><time="10:31:19.412+480"
date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="environmentscope.cpp:263">
<![LOG[Environment scope successfully created: Global\{BA3A3900-CA6D-4ac1-8C28-5073AFC22B03}]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752"
file="environmentscope.cpp:623">
<![LOG[Setting LogMaxSize to 1000000]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:555">
<![LOG[Setting LogMaxHistory to 1]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:556">
<![LOG[Setting LogLevel to 0]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:557">
<![LOG[Setting LogEnabled to 1]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:558">
<![LOG[Setting LogDebug to 1]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:559">
<![LOG[UEFI: false]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:569">
<![LOG[Loading variables from the Task Sequencing Removable Media.]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:584">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsremovablemedia.cpp:322">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="10:31:19.412+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="util.cpp:964">
<![LOG[Setting SMSTSMP TS environment variable]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSMediaGuid TS environment variable]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSBootMediaPackageID TS environment variable]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSHTTPPort TS environment variable]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSHTTPSPort TS environment variable]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSIISSSLState TS environment variable]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSLaunchMode TS environment variable]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSMediaPFX TS environment variable]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSPublicRootKey TS environment variable]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSSiteCode TS environment variable]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSSiteSigningCertificate TS environment variable]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSUseFirstCert TS environment variable]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSx64UnknownMachineGUID TS environment variable]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSx86UnknownMachineGUID TS environment variable]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:604">
<![LOG[Root CA Public Certs=]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:615">
<![LOG[Missing root CA environment variable from variables file]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:621">
<![LOG[Support Unknown Machines: 0]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:632">
<![LOG[Custom hook from X:\\TSConfig.INI is ]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:675">
<![LOG[No hook is found to be executed before downloading policy]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:699">
<![LOG[Authenticator from the environment is empty.]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:838">
<![LOG[Need to create Authenticator Info using PFX]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="tsmediawizardcontrol.cpp:850">
<![LOG[Initialized CStringStream object with string: {E5007C1C-45FC-448B-AB67-0726B2CD03B6};2014-09-17T18:31:19Z.]LOG]!><time="10:31:19.427+480" date="09-17-2014" component="TSPxe" context="" type="0"
thread="752" file="stringstream.cpp:101">
<![LOG[Set media certificate in transport]LOG]!><time="10:31:19.443+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="752" file="libsmsmessaging.cpp:9401">
<![LOG[Set authenticator in transport]LOG]!><time="10:31:19.443+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="752" file="libsmsmessaging.cpp:7734">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: JP-CM-01.enworld.com:80 GET /SMS_MP/.sms_aut?MPKEYINFORMATIONMEDIA]LOG]!><time="10:31:19.443+480" date="09-17-2014" component="TSPxe" context="" type="1"
thread="752" file="libsmsmessaging.cpp:8604">
<![LOG[Error. Received 0x80072ee7 from WinHttpSendRequest.]LOG]!><time="10:31:19.474+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="752" file="libsmsmessaging.cpp:8870">
<![LOG[unknown host (gethostbyname failed)]LOG]!><time="10:31:19.490+480" date="09-17-2014" component="TSPxe" context="" type="3" thread="752" file="libsmsmessaging.cpp:695">
<![LOG[hr, HRESULT=80072ee7 (e:\qfe\nts\sms\framework\osdmessaging\libsmsmessaging.cpp,8919)]LOG]!><time="10:31:19.490+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="752"
file="libsmsmessaging.cpp:8919">
<![LOG[sending with winhttp failed; 80072ee7]LOG]!><time="10:31:19.490+480" date="09-17-2014" component="TSPxe" context="" type="3" thread="752" file="libsmsmessaging.cpp:8919">
<![LOG[m_pHttpTransport->Send (0, 0, pServerReply, nReplySize), HRESULT=80072ee7 (e:\qfe\nts\sms\framework\osdmessaging\libsmsmessaging.cpp,5159)]LOG]!><time="10:31:19.490+480" date="09-17-2014" component="TSPxe"
context="" type="0" thread="752" file="libsmsmessaging.cpp:5159">
<![LOG[MPKeyInformation.RequestMPKeyInformationForMedia(szTrustedRootKey), HRESULT=80072ee7 (e:\qfe\nts\sms\framework\osdmessaging\libsmsmessaging.cpp,9410)]LOG]!><time="10:31:19.490+480" date="09-17-2014" component="TSPxe"
context="" type="0" thread="752" file="libsmsmessaging.cpp:9410">
<![LOG[Failed to get information for MP: http://JP-CM-01.enworld.com. 80072ee7.]LOG]!><time="10:31:19.490+480" date="09-17-2014" component="TSPxe" context="" type="3" thread="752" file="tsmbootstraputil.cpp:1518">
<![LOG[sMP.length() > 0, HRESULT=80004005 (e:\qfe\nts\sms\client\tasksequence\tsmbootstrap\tsmbootstraputil.cpp,1526)]LOG]!><time="10:31:19.490+480" date="09-17-2014" component="TSPxe" context="" type="0"
thread="752" file="tsmbootstraputil.cpp:1526">
<![LOG[TSMBootstrapUtil::SelectMP ( sSMSTSMP.c_str(), sMediaPfx.c_str(), sMediaGuid.c_str(), sAuthenticator.c_str(), sEnterpriseCert.c_str(), sServerCerts.c_str(), nHttpPort, nHttpsPort, bUseCRL, sSiteCode, sAssignedSiteCode, sMP, sCertificates, sX86UnknownMachineGUID,
sX64UnknownMachineGUID), HRESULT=80004005 (e:\qfe\nts\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,907)]LOG]!><time="10:31:19.490+480" date="09-17-2014" component="TSPxe" context="" type="0"
thread="752" file="tsmediawizardcontrol.cpp:907">
<![LOG[Exiting TSMediaWizardControl::GetPolicy.]LOG]!><time="10:31:19.490+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="752" file="tsmediawizardcontrol.cpp:1420">
<![LOG[pWelcomePage->m_pTSMediaWizardControl->GetPolicy(), HRESULT=80004005 (e:\qfe\nts\sms\client\tasksequence\tsmbootstrap\tsmediawelcomepage.cpp,303)]LOG]!><time="10:31:19.490+480" date="09-17-2014" component="TSPxe"
context="" type="0" thread="752" file="tsmediawelcomepage.cpp:303">
<![LOG[Setting wizard error: An error occurred while retrieving policy for this computer (0x80004005). For more information, contact your system administrator or helpdesk operator.]LOG]!><time="10:31:19.490+480" date="09-17-2014"
component="TSPxe" context="" type="0" thread="384" file="tsmediawizardcontrol.cpp:1589">
<![LOG[WelcomePage::OnWizardNext()]LOG]!><time="10:31:19.490+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="tsmediawelcomepage.cpp:340">
<![LOG[Skipping Confirmation Page.]LOG]!><time="10:31:19.490+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="tsmediaconfirmationpage.cpp:170">
<![LOG[Skipping Task Sequence Selection Page.]LOG]!><time="10:31:19.506+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="tsmediataskselectionpage.cpp:118">
<![LOG[Skipping Variables Selection Page.]LOG]!><time="10:31:19.506+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="tsmediavariablesselectionpage.cpp:155">
<![LOG[Skipping Resolve Progress Page.]LOG]!><time="10:31:19.506+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="tsmediaresolveprogresspage.cpp:96">
<![LOG[Activating Finish Page.]LOG]!><time="10:31:19.506+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="tsmediafinishpage.cpp:107">
<![LOG[Initializing the countdown timer.]LOG]!><time="10:31:19.506+480" date="09-17-2014" component="TSPxe" context="" type="0" thread="384" file="tsmediafinishpage.cpp:197">
<![LOG[Loading bitmap]LOG]!><time="10:31:19.506+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="384" file="tsmbootstrap.cpp:1271">
<![LOG[Exiting task sequence wizard.]LOG]!><time="10:31:34.535+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="384" file="tsmediawizardcontrol.cpp:2386">
<![LOG[Exiting with return code 0x00000000]LOG]!><time="10:31:34.535+480" date="09-17-2014" component="TSPxe" context="" type="1" thread="384" file="tsmbootstrap.cpp:1238">
<![LOG[Execution complete.]LOG]!><time="10:31:34.535+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="bootshell.cpp:693">
<![LOG[hMap != 0, HRESULT=80070002 (e:\qfe\nts\sms\framework\tscore\environmentscope.cpp,493)]LOG]!><time="10:31:34.535+480" date="09-17-2014" component="TSBootShell" context="" type="0" thread="804"
file="environmentscope.cpp:493">
<![LOG[m_pGlobalScope->open(), HRESULT=80070002 (e:\qfe\nts\sms\framework\tscore\environmentlib.cpp,335)]LOG]!><time="10:31:34.535+480" date="09-17-2014" component="TSBootShell" context="" type="0"
thread="804" file="environmentlib.cpp:335">
<![LOG[this->open(), HRESULT=80070002 (e:\qfe\nts\sms\framework\tscore\environmentlib.cpp,553)]LOG]!><time="10:31:34.535+480" date="09-17-2014" component="TSBootShell" context="" type="0" thread="804"
file="environmentlib.cpp:553">
<![LOG[::RegOpenKeyExW (HKEY_LOCAL_MACHINE, sKey.c_str(), 0, KEY_READ, &hSubKey), HRESULT=80070002 (e:\qfe\nts\sms\framework\tscore\utils.cpp,809)]LOG]!><time="10:31:34.535+480" date="09-17-2014" component="TSBootShell"
context="" type="0" thread="804" file="utils.cpp:809">
<![LOG[RegOpenKeyExW is unsuccessful for Software\Microsoft\SMS\Task Sequence]LOG]!><time="10:31:34.535+480" date="09-17-2014" component="TSBootShell" context="" type="2" thread="804"
file="utils.cpp:809">
<![LOG[GetTsRegValue() is unsuccessful. 0x80070002.]LOG]!><time="10:31:34.535+480" date="09-17-2014" component="TSBootShell" context="" type="2" thread="804" file="utils.cpp:842">
<![LOG[End program: ]LOG]!><time="10:31:34.535+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="bootshell.cpp:725">
<![LOG[Finalizing logging from process 796]LOG]!><time="10:31:34.535+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="tslogging.cpp:1741">
<![LOG[Finalizing logs to root of first available drive]LOG]!><time="10:31:34.535+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="tslogging.cpp:1583">
<![LOG[Successfully finalized logs to D:\SMSTSLog]LOG]!><time="10:31:34.891+480" date="09-17-2014" component="TSBootShell" context="" type="1" thread="804" file="tslogging.cpp:1640">
<![LOG[Cleaning up task sequencing logging configuration.]LOG]!><time="10:31:34.891+480" date="09-17-2014" component="TSBootShell" context="" type="0" thread="804" file="tslogging.cpp:584">i can access command prompt and i can ping the server from client.
when you say resolve are you talking about pinging servername.domainname.com?
this dosnt work
Hi,
Yes, the client need to be able to ping MP server using FQDN(servername.domainname.com).
Best Regards,
Joyce
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Failed to Run Task Sequence 0x80040154
I have been looking all over for some help with this one.
I am pretty new to SCCM, but I setup a SCCM 2012 SP1 CU4 server. I am using it for Endpoint Protection and Windows Updates.
I have been reading on how to use PXE and have followed several guides to get this working. Right now my workstation will successfully boot using PXE. My problem is that the machine reboots immediately after "Preparing Network Connections."
I do get an IP address when I push F8 so it is not a network driver issue. I can ping other devices on my network by name and by IP address so it is not a DNS problem either.
There are 4 error lines in red, but I cannot figure out how to fix this.
Coult not create WMI locator class (80040154)
Failed to connect to WMI namespace \\.\ROOT\CIMV2 (Code 0x80040154)
RegOpenKeyExW failed for Software\Microsoft\SMS\Task Sequence
GetTsRegValue() failed. 0x80070002.
Screen-shot:
Here is the full log:
<![LOG[LOGGING: Finalize process ID set to 752]LOG]!><time="12:00:59.369+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="756" file="tslogging.cpp:1495">
<![LOG[==============================[ TSBootShell.exe ]==============================]LOG]!><time="12:00:59.369+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="756"
file="bootshell.cpp:1052">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="12:00:59.369+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="756" file="util.cpp:963">
<![LOG[Debug shell is enabled]LOG]!><time="12:00:59.369+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="756" file="bootshell.cpp:1063">
<![LOG[Waiting for PNP initialization...]LOG]!><time="12:00:59.416+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="bootshell.cpp:60">
<![LOG[RAM Disk Boot Path: NET(0)\SMSIMAGES\PDC00019\BOOT.PDC00019.WIM]LOG]!><time="12:00:59.416+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="configpath.cpp:186">
<![LOG[Booted from network (PXE)]LOG]!><time="12:00:59.416+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="configpath.cpp:201">
<![LOG[Network(PXE) path: X:\sms\data\]LOG]!><time="12:00:59.416+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="configpath.cpp:203">
<![LOG[Found config path X:\sms\data\]LOG]!><time="12:00:59.416+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="bootshell.cpp:545">
<![LOG[Booting from removable media, not restoring bootloaders on hard drive]LOG]!><time="12:00:59.416+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="bootshell.cpp:579">
<![LOG[X:\sms\data\WinPE does not exist.]LOG]!><time="12:00:59.416+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="bootshell.cpp:596">
<![LOG[X:\_SmsTsWinPE\WinPE does not exist.]LOG]!><time="12:00:59.416+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="bootshell.cpp:610">
<![LOG[Executing command line: wpeinit.exe -winpe]LOG]!><time="12:00:59.447+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="bootshell.cpp:857">
<![LOG[Executing command line: X:\WINDOWS\system32\cmd.exe /k]LOG]!><time="12:01:01.583+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="756" file="bootshell.cpp:857">
<![LOG[The command completed successfully.]LOG]!><time="12:01:01.583+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="756" file="bootshell.cpp:939">
<![LOG[Successfully launched command shell.]LOG]!><time="12:01:01.583+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="756" file="bootshell.cpp:430">
<![LOG[The command completed successfully.]LOG]!><time="12:01:09.466+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="bootshell.cpp:939">
<![LOG[Starting DNS client service.]LOG]!><time="12:01:09.466+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="bootshell.cpp:663">
<![LOG[Executing command line: X:\sms\bin\x64\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\]LOG]!><time="12:01:09.988+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760"
file="bootshell.cpp:857">
<![LOG[The command completed successfully.]LOG]!><time="12:01:09.988+480" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="bootshell.cpp:939">
<![LOG[==============================[ TSMBootStrap.exe ]==============================]LOG]!><time="12:01:10.066+480" date="04-14-2014" component="TSMBootstrap" context="" type="1" thread="848"
file="tsmbootstrap.cpp:1129">
<![LOG[Command line: X:\sms\bin\x64\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\]LOG]!><time="12:01:10.066+480" date="04-14-2014" component="TSMBootstrap" context="" type="0" thread="848"
file="tsmbootstrap.cpp:1130">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="12:01:10.066+480" date="04-14-2014" component="TSMBootstrap" context="" type="1" thread="848" file="util.cpp:963">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\TSRESNLC.DLL']LOG]!><time="12:01:10.066+480" date="04-14-2014" component="TSMBootstrap" context="" type="1" thread="848" file="resourceutils.cpp:169">
<![LOG[Adding SMS bin folder "X:\sms\bin\x64" to the system environment PATH]LOG]!><time="12:01:10.066+480" date="04-14-2014" component="TSMBootstrap" context="" type="0" thread="848"
file="tsmbootstrap.cpp:963">
<![LOG[PXE Boot with Root = X:\]LOG]!><time="12:01:10.066+480" date="04-14-2014" component="TSMBootstrap" context="" type="1" thread="848" file="tsmbootstrap.cpp:1062">
<![LOG[Executing from PXE in WinPE]LOG]!><time="12:01:10.066+480" date="04-14-2014" component="TSMBootstrap" context="" type="1" thread="848" file="tsmbootstrap.cpp:1077">
<![LOG[Loading TsPxe.dll from X:\sms\bin\x64\TsPxe.dll]LOG]!><time="12:01:10.066+480" date="04-14-2014" component="TSMBootstrap" context="" type="0" thread="848" file="tsmbootstraputil.cpp:1320">
<![LOG[TsPxe.dll loaded]LOG]!><time="12:01:10.082+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tsmbootstraputil.cpp:1330">
<![LOG[Device has PXE booted]LOG]!><time="12:01:10.082+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tspxe.cpp:122">
<![LOG[Variable Path: \SMSTemp\2014.04.14.11.56.52.0001.{003FC085-A2AB-4BDA-84A6-11CF9C5CDC95}.boot.var]LOG]!><time="12:01:10.082+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848"
file="tspxe.cpp:134">
<![LOG[Variable Key Len: 69]LOG]!><time="12:01:10.082+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tspxe.cpp:141">
<![LOG[Succesfully added firewall rule for Tftp]LOG]!><time="12:01:10.082+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="fwopen.cpp:123">
<![LOG[Executing: X:\sms\bin\x64\smstftp.exe -i 10.1.1.216 get \SMSTemp\2014.04.14.11.56.52.0001.{003FC085-A2AB-4BDA-84A6-11CF9C5CDC95}.boot.var X:\sms\data\variables.dat]LOG]!><time="12:01:10.082+480" date="04-14-2014" component="TSPxe"
context="" type="0" thread="848" file="tspxe.cpp:177">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="12:01:10.145+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="commandline.cpp:228">
<![LOG[Set command line: "X:\sms\bin\x64\smstftp.exe" -i 10.1.1.216 get \SMSTemp\2014.04.14.11.56.52.0001.{003FC085-A2AB-4BDA-84A6-11CF9C5CDC95}.boot.var X:\sms\data\variables.dat]LOG]!><time="12:01:10.145+480" date="04-14-2014"
component="TSPxe" context="" type="0" thread="848" file="commandline.cpp:731">
<![LOG[Executing command line: "X:\sms\bin\x64\smstftp.exe" -i 10.1.1.216 get \SMSTemp\2014.04.14.11.56.52.0001.{003FC085-A2AB-4BDA-84A6-11CF9C5CDC95}.boot.var X:\sms\data\variables.dat]LOG]!><time="12:01:10.145+480" date="04-14-2014"
component="TSPxe" context="" type="1" thread="848" file="commandline.cpp:827">
<![LOG[Process completed with exit code 0]LOG]!><time="12:01:10.176+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="commandline.cpp:1123">
<![LOG[Succesfully removed firewall rule for Tftp]LOG]!><time="12:01:10.176+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="fwopen.cpp:146">
<![LOG[Successfully downloaded pxe variable file.]LOG]!><time="12:01:10.176+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tspxe.cpp:187">
<![LOG[we are booted using PXE]LOG]!><time="12:01:10.176+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:2629">
<![LOG[we are booted using PXE and we use a generated password]LOG]!><time="12:01:10.176+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:2634">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="12:01:10.176+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsremovablemedia.cpp:322">
<![LOG[CryptDecrypt (hKey, 0, 1, 0, pData, &dwDecryptedLen), HRESULT=80090005 (e:\qfe\nts\sms\framework\smscrypt\windes.cpp,165)]LOG]!><time="12:01:10.176+480" date="04-14-2014" component="TSPxe" context=""
type="0" thread="848" file="windes.cpp:165">
<![LOG[SMS::Crypto::DES::DecryptBuffer( (BYTE*)pszPassword, (DWORD)(wcslen(pszPassword)*sizeof(WCHAR)), encryptedBuffer.getBuffer(), (DWORD)encryptedBuffer.size(), pbDecryptedBuffer, dwDecryptedBufferSize ), HRESULT=80090005 (e:\qfe\nts\sms\framework\tscore\tsremovablemedia.cpp,387)]LOG]!><time="12:01:10.176+480"
date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tsremovablemedia.cpp:387">
<![LOG[Verifying media password.]LOG]!><time="12:01:10.176+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:271">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="12:01:10.176+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsremovablemedia.cpp:322">
<![LOG[Found network adapter "Intel(R) 82567LM-3 Gigabit Network Connection" with IP Address 10.1.1.63.]LOG]!><time="12:01:10.191+480" date="04-14-2014" component="TSPxe" context="" type="0"
thread="848" file="tsmbootstraputil.cpp:474">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="12:01:10.191+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsremovablemedia.cpp:322">
<![LOG[CryptDecrypt (hKey, 0, 1, 0, pData, &dwDecryptedLen), HRESULT=80090005 (e:\qfe\nts\sms\framework\smscrypt\windes.cpp,165)]LOG]!><time="12:01:10.191+480" date="04-14-2014" component="TSPxe" context=""
type="0" thread="848" file="windes.cpp:165">
<![LOG[SMS::Crypto::DES::DecryptBuffer( (BYTE*)pszPassword, (DWORD)(wcslen(pszPassword)*sizeof(WCHAR)), encryptedBuffer.getBuffer(), (DWORD)encryptedBuffer.size(), pbDecryptedBuffer, dwDecryptedBufferSize ), HRESULT=80090005 (e:\qfe\nts\sms\framework\tscore\tsremovablemedia.cpp,387)]LOG]!><time="12:01:10.191+480"
date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tsremovablemedia.cpp:387">
<![LOG[Entering TSMediaWizardControl::GetPolicy.]LOG]!><time="12:01:10.191+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tsmediawizardcontrol.cpp:527">
<![LOG[Creating key 'Software\Microsoft\SMS\47006C006F00620061006C005C007B00350031004100300031003600420036002D0046003000440045002D0034003700350032002D0042003900370043002D003500340045003600460033003800360041003900310032007D00']LOG]!><time="12:01:10.191+480"
date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="environmentscope.cpp:284">
<![LOG[Environment scope successfully created: Global\{51A016B6-F0DE-4752-B97C-54E6F386A912}]LOG]!><time="12:01:10.191+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848"
file="environmentscope.cpp:659">
<![LOG[Creating key 'Software\Microsoft\SMS\47006C006F00620061006C005C007B00420041003300410033003900300030002D0043004100360044002D0034006100630031002D0038004300320038002D003500300037003300410046004300320032004200300033007D00']LOG]!><time="12:01:10.191+480"
date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="environmentscope.cpp:284">
<![LOG[Environment scope successfully created: Global\{BA3A3900-CA6D-4ac1-8C28-5073AFC22B03}]LOG]!><time="12:01:10.191+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848"
file="environmentscope.cpp:659">
<![LOG[Setting LogMaxSize to 1000000]LOG]!><time="12:01:10.191+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:555">
<![LOG[Setting LogMaxHistory to 1]LOG]!><time="12:01:10.191+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:556">
<![LOG[Setting LogLevel to 0]LOG]!><time="12:01:10.191+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:557">
<![LOG[Setting LogEnabled to 1]LOG]!><time="12:01:10.191+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:558">
<![LOG[Setting LogDebug to 1]LOG]!><time="12:01:10.191+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:559">
<![LOG[UEFI: false]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:569">
<![LOG[Loading variables from the Task Sequencing Removable Media.]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:584">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsremovablemedia.cpp:322">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="util.cpp:963">
<![LOG[Setting SMSTSMP TS environment variable]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSMediaGuid TS environment variable]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSBootMediaPackageID TS environment variable]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSHTTPPort TS environment variable]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSHTTPSPort TS environment variable]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSIISSSLState TS environment variable]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSLaunchMode TS environment variable]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSMediaPFX TS environment variable]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSPublicRootKey TS environment variable]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSSiteCode TS environment variable]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSSiteSigningCertificate TS environment variable]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSUseFirstCert TS environment variable]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSx64UnknownMachineGUID TS environment variable]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSx86UnknownMachineGUID TS environment variable]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:604">
<![LOG[Root CA Public Certs=]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:615">
<![LOG[Missing root CA environment variable from variables file]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:621">
<![LOG[Support Unknown Machines: 0]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:632">
<![LOG[Custom hook from X:\\TSConfig.INI is ]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:675">
<![LOG[No hook is found to be executed before downloading policy]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:699">
<![LOG[Authenticator from the environment is empty.]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:838">
<![LOG[Need to create Authenticator Info using PFX]LOG]!><time="12:01:10.207+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:850">
<![LOG[Initialized CStringStream object with string: {16863E43-476B-4EE9-8E12-00F504776669};2014-04-14T20:01:10Z.]LOG]!><time="12:01:10.238+480" date="04-14-2014" component="TSPxe" context="" type="0"
thread="848" file="stringstream.cpp:101">
<![LOG[Set media certificate in transport]LOG]!><time="12:01:10.238+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="libsmsmessaging.cpp:9418">
<![LOG[Set authenticator in transport]LOG]!><time="12:01:10.238+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="libsmsmessaging.cpp:7751">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: SCCM-Corp.pdcarea.lcl:80 GET /SMS_MP/.sms_aut?MPKEYINFORMATIONMEDIA]LOG]!><time="12:01:10.254+480" date="04-14-2014" component="TSPxe" context="" type="1"
thread="848" file="libsmsmessaging.cpp:8621">
<![LOG[Request was succesful.]LOG]!><time="12:01:10.270+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="libsmsmessaging.cpp:8956">
<![LOG[Default CSP is Microsoft Enhanced RSA and AES Cryptographic Provider]LOG]!><time="12:01:10.270+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="libcrypt.cpp:1914">
<![LOG[Default CSP Type is 24]LOG]!><time="12:01:10.270+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="libcrypt.cpp:1915">
<![LOG[New settings:]LOG]!><time="12:01:10.270+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:925">
<![LOG[ site=PDC,PDC, MP=http://SCCM-Corp.pdcarea.lcl, ports: http=80,https=443]LOG]!><time="12:01:10.270+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848"
file="tsmediawizardcontrol.cpp:927">
<![LOG[ certificates are received from MP.]LOG]!><time="12:01:10.270+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:931">
<![LOG[Unknown machine GUIDs: 99572c96-584f-4c19-bd8b-fc4409608be6 29a3e6d5-a627-4e52-b02c-f09c8acaba5c]LOG]!><time="12:01:10.270+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848"
file="tsmediawizardcontrol.cpp:986">
<![LOG[Getting MP time information]LOG]!><time="12:01:10.270+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:1021">
<![LOG[Set authenticator in transport]LOG]!><time="12:01:10.270+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="libsmsmessaging.cpp:7751">
<![LOG[Requesting client identity]LOG]!><time="12:01:10.285+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="libsmsmessaging.cpp:5760">
<![LOG[Setting message signatures.]LOG]!><time="12:01:10.285+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="libsmsmessaging.cpp:1297">
<![LOG[Setting the authenticator.]LOG]!><time="12:01:10.285+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="libsmsmessaging.cpp:1327">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: SCCM-Corp.pdcarea.lcl:80 CCM_POST /ccm_system/request]LOG]!><time="12:01:10.301+480" date="04-14-2014" component="TSPxe" context="" type="1"
thread="848" file="libsmsmessaging.cpp:8621">
<![LOG[Request was succesful.]LOG]!><time="12:01:10.301+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="libsmsmessaging.cpp:8956">
<![LOG[::DecompressBuffer(65536)]LOG]!><time="12:01:10.301+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="ccmzlib.cpp:739">
<![LOG[Decompression (zlib) succeeded: original size 432, uncompressed size 2540.]LOG]!><time="12:01:10.316+480" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="ccmzlib.cpp:651">
<![LOG[-60 -60]LOG]!><time="12:01:10.316+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="libsmsmessaging.cpp:5956">
<![LOG[Server time zone info: 360, , [0 11 0 1 2 0 0 0], 0, , [0 3 0 2 2 0 0 0], -60]LOG]!><time="12:01:10.316+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848"
file="libsmsmessaging.cpp:6055">
<![LOG[Client Identity: ]LOG]!><time="12:01:10.316+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="libsmsmessaging.cpp:6140">
<![LOG[Netbios name: ]LOG]!><time="12:01:10.316+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="libsmsmessaging.cpp:6156">
<![LOG[Current time: 2014-04-14 20:01:10.316 TZ:Pacific Standard Time Bias:0480]LOG]!><time="12:01:10.316+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:1090">
<![LOG[Current time zone info: 480, Pacific Standard Time, [0 0 0 0 0 0 0 0], 0, , [0 0 0 0 0 0 0 0], 0]LOG]!><time="12:01:10.316+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848"
file="tsmediawizardcontrol.cpp:1118">
<![LOG[Adjusting the system time: -10800.340 seconds]LOG]!><time="12:01:10.316+480" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:1120">
<![LOG[Time zone info set to: 360, , [0 11 0 1 2 0 0 0], 0, , [0 3 0 2 2 0 0 0], -60]LOG]!><time="15:01:10.316+300" date="04-14-2014" component="TSPxe" context="" type="1" thread="848"
file="tsmediawizardcontrol.cpp:1156">
<![LOG[New time: 2014-04-14 17:01:09.975]LOG]!><time="12:01:09.973+300" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:1172">
<![LOG[Current time: 2014-04-14 17:01:09.973 TZ: Bias:0360]LOG]!><time="12:01:09.973+300" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:1178">
<![LOG[Downloading policy from http://SCCM-Corp.pdcarea.lcl.]LOG]!><time="12:01:09.973+300" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmediawizardcontrol.cpp:1185">
<![LOG[Initializing HTTP transport.]LOG]!><time="12:01:09.973+300" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tspolicy.cpp:817">
<![LOG[ Setting URL = http://SCCM-Corp.pdcarea.lcl.]LOG]!><time="12:01:09.973+300" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tspolicy.cpp:818">
<![LOG[ Setting Ports = 80,443.]LOG]!><time="12:01:09.973+300" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tspolicy.cpp:821">
<![LOG[ Setting CRL = false.]LOG]!><time="12:01:09.973+300" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tspolicy.cpp:824">
<![LOG[ Setting Server Certificates.]LOG]!><time="12:01:09.973+300" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tspolicy.cpp:841">
<![LOG[Set authenticator in transport]LOG]!><time="12:01:09.973+300" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="libsmsmessaging.cpp:7751">
<![LOG[ Setting Media Certificate.]LOG]!><time="12:01:09.973+300" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tspolicy.cpp:849">
<![LOG[Preparing Client Identity Request.]LOG]!><time="12:01:09.987+300" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tspolicy.cpp:583">
<![LOG[ Setting transport.]LOG]!><time="12:01:09.987+300" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tspolicy.cpp:586">
<![LOG[ Setting SourceID = {16863E43-476B-4EE9-8E12-00F504776669}.]LOG]!><time="12:01:09.987+300" date="04-14-2014" component="TSPxe" context="" type="0" thread="848"
file="tspolicy.cpp:590">
<![LOG[ Setting site code = PDC.]LOG]!><time="12:01:09.987+300" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tspolicy.cpp:595">
<![LOG[Can not find DeploymentType in file TsmBootstrap.ini or the file doesn't exist. This is not running on Windows To Go.]LOG]!><time="12:01:09.987+300" date="04-14-2014" component="TSPxe" context="" type="1"
thread="848" file="utils.cpp:1314">
<![LOG[spLocator.createInstance( ((bUseAdminLocator == true) ? CLSID_WbemAdministrativeLocator : CLSID_WbemLocator ) ), HRESULT=80040154 (e:\qfe\nts\sms\framework\core\ccmcore\wminamespace.cpp,260)]LOG]!><time="12:01:09.987+300" date="04-14-2014"
component="TSPxe" context="" type="0" thread="848" file="wminamespace.cpp:260">
<![LOG[Could not create WMI locator class (80040154)]LOG]!><time="12:01:09.987+300" date="04-14-2014" component="TSPxe" context="" type="3" thread="848" file="wminamespace.cpp:260">
<![LOG[spNamespace.Open(c_szCIMv2Namespace), HRESULT=80040154 (e:\qfe\nts\sms\framework\tscore\tspolicy.cpp,605)]LOG]!><time="12:01:09.987+300" date="04-14-2014" component="TSPxe" context="" type="0"
thread="848" file="tspolicy.cpp:605">
<![LOG[Failed to connect to WMI namespace \\.\ROOT\CIMV2 (Code 0x80040154)]LOG]!><time="12:01:09.987+300" date="04-14-2014" component="TSPxe" context="" type="3" thread="848" file="tspolicy.cpp:605">
<![LOG[TS::Policy::GetClientIdentity (&m_oHttpTransport, m_sSiteCode, sMediaGuid.c_str(), m_sClientGUID, m_sNetbiosName, bUnknown, sServerName, sServerRemoteName, sImportedClientIdentity), HRESULT=80040154 (e:\qfe\nts\sms\framework\tscore\tspolicy.cpp,868)]LOG]!><time="12:01:09.987+300"
date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tspolicy.cpp:868">
<![LOG[m_pPolicyManager->init( sMP, nHttpPort, nHttpsPort, sSiteCode, bUseCRL, L"", sMediaPfx, sMediaGuid, sEnterpriseCert, sServerCerts, sSiteSigningCert, sAuthenticator), HRESULT=80040154 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,1198)]LOG]!><time="12:01:10.002+300"
date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tsmediawizardcontrol.cpp:1198">
<![LOG[Exiting TSMediaWizardControl::GetPolicy.]LOG]!><time="12:01:10.002+300" date="04-14-2014" component="TSPxe" context="" type="0" thread="848" file="tsmediawizardcontrol.cpp:1378">
<![LOG[GetPolicy(), HRESULT=80040154 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,2448)]LOG]!><time="12:01:10.002+300" date="04-14-2014" component="TSPxe" context=""
type="0" thread="848" file="tsmediawizardcontrol.cpp:2448">
<![LOG[RunWizardForPXE(), HRESULT=80040154 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,2790)]LOG]!><time="12:01:10.002+300" date="04-14-2014" component="TSPxe" context=""
type="0" thread="848" file="tsmediawizardcontrol.cpp:2790">
<![LOG[oTSMediaWizardControl.Run( sMediaRoot, true, sTSLaunchMode ), HRESULT=80040154 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmbootstrap.cpp,1078)]LOG]!><time="12:01:10.002+300" date="04-14-2014" component="TSPxe"
context="" type="0" thread="848" file="tsmbootstrap.cpp:1078">
<![LOG[Execute( eExecutionEnv, sConfigPath, sTSXMLFile, uBootCount, &uExitCode ), HRESULT=80040154 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmbootstrap.cpp,1183)]LOG]!><time="12:01:10.002+300" date="04-14-2014"
component="TSPxe" context="" type="0" thread="848" file="tsmbootstrap.cpp:1183">
<![LOG[Exiting with return code 0x80040154]LOG]!><time="12:01:10.002+300" date="04-14-2014" component="TSPxe" context="" type="1" thread="848" file="tsmbootstrap.cpp:1195">
<![LOG[Execution complete.]LOG]!><time="12:01:10.002+300" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="bootshell.cpp:690">
<![LOG[hMap != 0, HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentscope.cpp,515)]LOG]!><time="12:01:10.002+300" date="04-14-2014" component="TSBootShell" context="" type="0"
thread="760" file="environmentscope.cpp:515">
<![LOG[m_pGlobalScope->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,337)]LOG]!><time="12:01:10.002+300" date="04-14-2014" component="TSBootShell" context="" type="0"
thread="760" file="environmentlib.cpp:337">
<![LOG[this->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,549)]LOG]!><time="12:01:10.002+300" date="04-14-2014" component="TSBootShell" context="" type="0"
thread="760" file="environmentlib.cpp:549">
<![LOG[::RegOpenKeyExW (HKEY_LOCAL_MACHINE, c_szSMSTSKey, 0, KEY_READ, &hSubKey), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,258)]LOG]!><time="12:01:10.002+300" date="04-14-2014" component="TSBootShell"
context="" type="0" thread="760" file="utils.cpp:258">
<![LOG[RegOpenKeyExW failed for Software\Microsoft\SMS\Task Sequence]LOG]!><time="12:01:10.002+300" date="04-14-2014" component="TSBootShell" context="" type="2" thread="760" file="utils.cpp:258">
<![LOG[GetTsRegValue() failed. 0x80070002.]LOG]!><time="12:01:10.002+300" date="04-14-2014" component="TSBootShell" context="" type="2" thread="760" file="utils.cpp:279">
<![LOG[End program: ]LOG]!><time="12:01:10.002+300" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="bootshell.cpp:722">
<![LOG[Finalizing logging from process 752]LOG]!><time="12:01:10.002+300" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="tslogging.cpp:1741">
<![LOG[Finalizing logs to root of first available drive]LOG]!><time="12:01:10.002+300" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="tslogging.cpp:1583">
<![LOG[LOGGING: Setting log directory to "D:\SMSTSLog".]LOG]!><time="12:01:10.067+300" date="04-14-2014" component="TSBootShell" context="" type="1" thread="760" file="tslogging.cpp:1808">
Any help would be great!
Thanks in advance!Hi,
Please try to update the boot image.
For more information:http://social.technet.microsoft.com/Forums/en-US/d2806294-97c7-4aa3-849b-3c176d9a9ce1/pxe-fails-to-boot?forum=configmanagerdeployment
Best Regards,
Joyce
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Failed to Run Task Sequence Failed to Run Task Sequence 0x80004005
Please help me with this error. i tried everything with the forums and internet blogs non of work for me. Pls find out the Trace below and help me to sought out this problem.
Failed to Run Task Sequence 0x80004005
<![LOG[LOGGING: Finalize process ID set to 780]LOG]!><time="11:50:44.583+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="784" file="tslogging.cpp:1495">
<![LOG[==============================[ TSBootShell.exe ]==============================]LOG]!><time="11:50:44.583+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="784"
file="bootshell.cpp:1052">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="11:50:44.583+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="784" file="util.cpp:963">
<![LOG[Debug shell is enabled]LOG]!><time="11:50:44.583+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="784" file="bootshell.cpp:1063">
<![LOG[Waiting for PNP initialization...]LOG]!><time="11:50:44.676+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:60">
<![LOG[RAM Disk Boot Path: NET(0)\SMSIMAGES\LCS00005\BOOT.LCS00005.WIM]LOG]!><time="11:50:44.676+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="796" file="configpath.cpp:186">
<![LOG[Booted from network (PXE)]LOG]!><time="11:50:44.676+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="796" file="configpath.cpp:201">
<![LOG[Network(PXE) path: X:\sms\data\]LOG]!><time="11:50:44.676+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="796" file="configpath.cpp:203">
<![LOG[Found config path X:\sms\data\]LOG]!><time="11:50:44.676+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:545">
<![LOG[Booting from removable media, not restoring bootloaders on hard drive]LOG]!><time="11:50:44.676+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:579">
<![LOG[X:\sms\data\WinPE does not exist.]LOG]!><time="11:50:44.676+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:596">
<![LOG[X:\_SmsTsWinPE\WinPE does not exist.]LOG]!><time="11:50:44.676+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:610">
<![LOG[Executing command line: wpeinit.exe -winpe]LOG]!><time="11:50:44.676+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:857">
<![LOG[The command completed successfully.]LOG]!><time="11:50:58.592+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:939">
<![LOG[Starting DNS client service.]LOG]!><time="11:50:58.592+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:663">
<![LOG[Executing command line: X:\sms\bin\x64\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\]LOG]!><time="11:50:59.106+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="796"
file="bootshell.cpp:857">
<![LOG[The command completed successfully.]LOG]!><time="11:50:59.106+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:939">
<![LOG[==============================[ TSMBootStrap.exe ]==============================]LOG]!><time="11:50:59.184+480" date="03-07-2014" component="TSMBootstrap" context="" type="1" thread="244"
file="tsmbootstrap.cpp:1129">
<![LOG[Command line: X:\sms\bin\x64\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\]LOG]!><time="11:50:59.184+480" date="03-07-2014" component="TSMBootstrap" context="" type="0" thread="244"
file="tsmbootstrap.cpp:1130">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="11:50:59.184+480" date="03-07-2014" component="TSMBootstrap" context="" type="1" thread="244" file="util.cpp:963">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\TSRESNLC.DLL']LOG]!><time="11:50:59.184+480" date="03-07-2014" component="TSMBootstrap" context="" type="1" thread="244" file="resourceutils.cpp:169">
<![LOG[Adding SMS bin folder "X:\sms\bin\x64" to the system environment PATH]LOG]!><time="11:50:59.200+480" date="03-07-2014" component="TSMBootstrap" context="" type="0" thread="244"
file="tsmbootstrap.cpp:963">
<![LOG[PXE Boot with Root = X:\]LOG]!><time="11:50:59.200+480" date="03-07-2014" component="TSMBootstrap" context="" type="1" thread="244" file="tsmbootstrap.cpp:1062">
<![LOG[Executing from PXE in WinPE]LOG]!><time="11:50:59.200+480" date="03-07-2014" component="TSMBootstrap" context="" type="1" thread="244" file="tsmbootstrap.cpp:1077">
<![LOG[Loading TsPxe.dll from X:\sms\bin\x64\TsPxe.dll]LOG]!><time="11:50:59.200+480" date="03-07-2014" component="TSMBootstrap" context="" type="0" thread="244" file="tsmbootstraputil.cpp:1320">
<![LOG[TsPxe.dll loaded]LOG]!><time="11:50:59.200+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="tsmbootstraputil.cpp:1330">
<![LOG[Device has PXE booted]LOG]!><time="11:50:59.200+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="tspxe.cpp:122">
<![LOG[Variable Path: \SMSTemp\2014.03.07.10.07.05.0001.{A1AEE046-70ED-4ACB-BCBC-7DF72AEBD6B2}.boot.var]LOG]!><time="11:50:59.200+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244"
file="tspxe.cpp:134">
<![LOG[Succesfully added firewall rule for Tftp]LOG]!><time="11:50:59.216+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="fwopen.cpp:123">
<![LOG[Executing: X:\sms\bin\x64\smstftp.exe -i 192.168.0.18 get \SMSTemp\2014.03.07.10.07.05.0001.{A1AEE046-70ED-4ACB-BCBC-7DF72AEBD6B2}.boot.var X:\sms\data\variables.dat]LOG]!><time="11:50:59.216+480" date="03-07-2014" component="TSPxe"
context="" type="0" thread="244" file="tspxe.cpp:177">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="11:50:59.278+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="commandline.cpp:228">
<![LOG[Set command line: "X:\sms\bin\x64\smstftp.exe" -i 192.168.0.18 get \SMSTemp\2014.03.07.10.07.05.0001.{A1AEE046-70ED-4ACB-BCBC-7DF72AEBD6B2}.boot.var X:\sms\data\variables.dat]LOG]!><time="11:50:59.278+480" date="03-07-2014"
component="TSPxe" context="" type="0" thread="244" file="commandline.cpp:731">
<![LOG[Executing command line: "X:\sms\bin\x64\smstftp.exe" -i 192.168.0.18 get \SMSTemp\2014.03.07.10.07.05.0001.{A1AEE046-70ED-4ACB-BCBC-7DF72AEBD6B2}.boot.var X:\sms\data\variables.dat]LOG]!><time="11:50:59.278+480" date="03-07-2014"
component="TSPxe" context="" type="1" thread="244" file="commandline.cpp:827">
<![LOG[Process completed with exit code 0]LOG]!><time="11:50:59.372+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="244" file="commandline.cpp:1123">
<![LOG[Succesfully removed firewall rule for Tftp]LOG]!><time="11:50:59.372+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="fwopen.cpp:146">
<![LOG[Successfully downloaded pxe variable file.]LOG]!><time="11:50:59.372+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="244" file="tspxe.cpp:187">
<![LOG[we are booted using PXE]LOG]!><time="11:50:59.372+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="244" file="tsmediawizardcontrol.cpp:2629">
<![LOG[we are booted using PXE and we don't use a password or the password is provided by the user]LOG]!><time="11:50:59.372+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="244"
file="tsmediawizardcontrol.cpp:2645">
<![LOG[Found network adapter "D-Link DFE-520TX PCI Fast Ethernet Adapter" with IP Address 0.0.0.0.]LOG]!><time="11:50:59.372+480" date="03-07-2014" component="TSPxe" context="" type="0"
thread="244" file="tsmbootstraputil.cpp:474">
<![LOG[Found network adapter "Realtek PCIe GBE Family Controller" with IP Address 192.168.2.195.]LOG]!><time="11:50:59.372+480" date="03-07-2014" component="TSPxe" context="" type="0"
thread="244" file="tsmbootstraputil.cpp:474">
<![LOG[Run PXE Interactive]LOG]!><time="11:50:59.372+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="tsmediawizardcontrol.cpp:2780">
<![LOG[Running Wizard in Interactive mode]LOG]!><time="11:50:59.372+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="244" file="tsmediawizardcontrol.cpp:2782">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="11:50:59.387+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="244" file="tsremovablemedia.cpp:322">
<![LOG[CryptDecrypt (hKey, 0, 1, 0, pData, &dwDecryptedLen), HRESULT=80090005 (e:\nts_sccm_release\sms\framework\smscrypt\windes.cpp,165)]LOG]!><time="11:50:59.387+480" date="03-07-2014" component="TSPxe" context=""
type="0" thread="244" file="windes.cpp:165">
<![LOG[SMS::Crypto::DES::DecryptBuffer( (BYTE*)pszPassword, (DWORD)(wcslen(pszPassword)*sizeof(WCHAR)), encryptedBuffer.getBuffer(), (DWORD)encryptedBuffer.size(), pbDecryptedBuffer, dwDecryptedBufferSize ), HRESULT=80090005 (e:\nts_sccm_release\sms\framework\tscore\tsremovablemedia.cpp,387)]LOG]!><time="11:50:59.387+480"
date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="tsremovablemedia.cpp:387">
<![LOG[Activating Welcome Page.]LOG]!><time="11:50:59.387+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="tsmediawelcomepage.cpp:131">
<![LOG[Loading bitmap]LOG]!><time="11:50:59.387+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="244" file="tsmbootstrap.cpp:1228">
<![LOG[Executing command line: X:\WINDOWS\system32\cmd.exe /k]LOG]!><time="11:55:20.456+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="784" file="bootshell.cpp:857">
<![LOG[The command completed successfully.]LOG]!><time="11:55:20.472+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="784" file="bootshell.cpp:939">
<![LOG[Successfully launched command shell.]LOG]!><time="11:55:20.472+480" date="03-07-2014" component="TSBootShell" context="" type="1" thread="784" file="bootshell.cpp:430">
<![LOG[WelcomePage::OnWizardNext()]LOG]!><time="12:43:26.237+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="tsmediawelcomepage.cpp:340">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="12:43:26.237+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="244" file="tsremovablemedia.cpp:322">
<![LOG[CryptDecrypt (hKey, 0, 1, 0, pData, &dwDecryptedLen), HRESULT=80090005 (e:\nts_sccm_release\sms\framework\smscrypt\windes.cpp,165)]LOG]!><time="12:43:26.237+480" date="03-07-2014" component="TSPxe" context=""
type="0" thread="244" file="windes.cpp:165">
<![LOG[SMS::Crypto::DES::DecryptBuffer( (BYTE*)pszPassword, (DWORD)(wcslen(pszPassword)*sizeof(WCHAR)), encryptedBuffer.getBuffer(), (DWORD)encryptedBuffer.size(), pbDecryptedBuffer, dwDecryptedBufferSize ), HRESULT=80090005 (e:\nts_sccm_release\sms\framework\tscore\tsremovablemedia.cpp,387)]LOG]!><time="12:43:26.237+480"
date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="tsremovablemedia.cpp:387">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="12:43:26.237+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="244" file="tsremovablemedia.cpp:322">
<![LOG[CryptDecrypt (hKey, 0, 1, 0, pData, &dwDecryptedLen), HRESULT=80090005 (e:\nts_sccm_release\sms\framework\smscrypt\windes.cpp,165)]LOG]!><time="12:43:26.237+480" date="03-07-2014" component="TSPxe" context=""
type="0" thread="244" file="windes.cpp:165">
<![LOG[SMS::Crypto::DES::DecryptBuffer( (BYTE*)pszPassword, (DWORD)(wcslen(pszPassword)*sizeof(WCHAR)), encryptedBuffer.getBuffer(), (DWORD)encryptedBuffer.size(), pbDecryptedBuffer, dwDecryptedBufferSize ), HRESULT=80090005 (e:\nts_sccm_release\sms\framework\tscore\tsremovablemedia.cpp,387)]LOG]!><time="12:43:26.237+480"
date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="tsremovablemedia.cpp:387">
<![LOG[Verifying media password.]LOG]!><time="12:43:26.237+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="244" file="tsmediawizardcontrol.cpp:271">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="12:43:26.237+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="244" file="tsremovablemedia.cpp:322">
<![LOG[Spawned thread 960 to download policy.]LOG]!><time="12:43:26.252+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="244" file="tsmediawelcomepage.cpp:405">
<![LOG[Entering TSMediaWizardControl::GetPolicy.]LOG]!><time="12:43:26.252+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="960" file="tsmediawizardcontrol.cpp:527">
<![LOG[Creating key 'Software\Microsoft\SMS\47006C006F00620061006C005C007B00350031004100300031003600420036002D0046003000440045002D0034003700350032002D0042003900370043002D003500340045003600460033003800360041003900310032007D00']LOG]!><time="12:43:26.252+480"
date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="environmentscope.cpp:284">
<![LOG[Environment scope successfully created: Global\{51A016B6-F0DE-4752-B97C-54E6F386A912}]LOG]!><time="12:43:26.252+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960"
file="environmentscope.cpp:659">
<![LOG[Creating key 'Software\Microsoft\SMS\47006C006F00620061006C005C007B00420041003300410033003900300030002D0043004100360044002D0034006100630031002D0038004300320038002D003500300037003300410046004300320032004200300033007D00']LOG]!><time="12:43:26.252+480"
date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="environmentscope.cpp:284">
<![LOG[Environment scope successfully created: Global\{BA3A3900-CA6D-4ac1-8C28-5073AFC22B03}]LOG]!><time="12:43:26.252+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960"
file="environmentscope.cpp:659">
<![LOG[Setting LogMaxSize to 1000000]LOG]!><time="12:43:26.252+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:555">
<![LOG[Setting LogMaxHistory to 1]LOG]!><time="12:43:26.252+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:556">
<![LOG[Setting LogLevel to 0]LOG]!><time="12:43:26.252+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:557">
<![LOG[Setting LogEnabled to 1]LOG]!><time="12:43:26.252+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:558">
<![LOG[Setting LogDebug to 1]LOG]!><time="12:43:26.252+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:559">
<![LOG[UEFI: false]LOG]!><time="12:43:26.252+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:569">
<![LOG[Loading variables from the Task Sequencing Removable Media.]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:584">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsremovablemedia.cpp:322">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="util.cpp:963">
<![LOG[Setting SMSTSMP TS environment variable]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSMediaGuid TS environment variable]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSBootMediaPackageID TS environment variable]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSHTTPPort TS environment variable]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSHTTPSPort TS environment variable]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSIISSSLState TS environment variable]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSLaunchMode TS environment variable]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSMediaPFX TS environment variable]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSPublicRootKey TS environment variable]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSSiteCode TS environment variable]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSSiteSigningCertificate TS environment variable]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSUseFirstCert TS environment variable]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSx64UnknownMachineGUID TS environment variable]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSx86UnknownMachineGUID TS environment variable]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:604">
<![LOG[Root CA Public Certs=]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:615">
<![LOG[Missing root CA environment variable from variables file]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:621">
<![LOG[Support Unknown Machines: 0]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:632">
<![LOG[Custom hook from X:\\TSConfig.INI is ]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:675">
<![LOG[No hook is found to be executed before downloading policy]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:699">
<![LOG[Authenticator from the environment is empty.]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:838">
<![LOG[Need to create Authenticator Info using PFX]LOG]!><time="12:43:26.268+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="960" file="tsmediawizardcontrol.cpp:850">
<![LOG[Initialized CStringStream object with string: {293EDF76-D3BA-4366-B956-6BADCC3E6B71};2014-03-07T20:43:26Z.]LOG]!><time="12:43:26.299+480" date="03-07-2014" component="TSPxe" context="" type="0"
thread="960" file="stringstream.cpp:101">
<![LOG[Set media certificate in transport]LOG]!><time="12:43:26.315+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="960" file="libsmsmessaging.cpp:9418">
<![LOG[Set authenticator in transport]LOG]!><time="12:43:26.315+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="960" file="libsmsmessaging.cpp:7751">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: sccm.lan.lankacom.lk:80 GET /SMS_MP/.sms_aut?MPKEYINFORMATIONMEDIA]LOG]!><time="12:43:26.315+480" date="03-07-2014" component="TSPxe" context="" type="1"
thread="960" file="libsmsmessaging.cpp:8621">
<![LOG[Error. Status code 503 returned]LOG]!><time="12:43:26.346+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="960" file="libsmsmessaging.cpp:8984">
<![LOG[dwResultCode == 200, HRESULT=80004005 (e:\nts_sccm_release\sms\framework\osdmessaging\libsmsmessaging.cpp,5165)]LOG]!><time="12:43:26.346+480" date="03-07-2014" component="TSPxe" context="" type="0"
thread="960" file="libsmsmessaging.cpp:5165">
<![LOG[RequestMPKeyInformation: Send() failed.]LOG]!><time="12:43:26.346+480" date="03-07-2014" component="TSPxe" context="" type="3" thread="960" file="libsmsmessaging.cpp:5165">
<![LOG[MPKeyInformation.RequestMPKeyInformationForMedia(szTrustedRootKey), HRESULT=80004005 (e:\nts_sccm_release\sms\framework\osdmessaging\libsmsmessaging.cpp,9427)]LOG]!><time="12:43:26.346+480" date="03-07-2014" component="TSPxe"
context="" type="0" thread="960" file="libsmsmessaging.cpp:9427">
<![LOG[Failed to get information for MP: http://sccm.lan.lankacom.lk. 80004005.]LOG]!><time="12:43:26.346+480" date="03-07-2014" component="TSPxe" context="" type="3" thread="960" file="tsmbootstraputil.cpp:1475">
<![LOG[sMP.length() > 0, HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmbootstraputil.cpp,1483)]LOG]!><time="12:43:26.346+480" date="03-07-2014" component="TSPxe" context=""
type="0" thread="960" file="tsmbootstraputil.cpp:1483">
<![LOG[TSMBootstrapUtil::SelectMP ( sSMSTSMP.c_str(), sMediaPfx.c_str(), sMediaGuid.c_str(), sAuthenticator.c_str(), sEnterpriseCert.c_str(), sServerCerts.c_str(), nHttpPort, nHttpsPort, bUseCRL, sSiteCode, sAssignedSiteCode, sMP, sCertificates, sX86UnknownMachineGUID,
sX64UnknownMachineGUID), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,904)]LOG]!><time="12:43:26.346+480" date="03-07-2014" component="TSPxe" context=""
type="0" thread="960" file="tsmediawizardcontrol.cpp:904">
<![LOG[Exiting TSMediaWizardControl::GetPolicy.]LOG]!><time="12:43:26.346+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="960" file="tsmediawizardcontrol.cpp:1378">
<![LOG[pWelcomePage->m_pTSMediaWizardControl->GetPolicy(), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawelcomepage.cpp,303)]LOG]!><time="12:43:26.346+480" date="03-07-2014" component="TSPxe"
context="" type="0" thread="960" file="tsmediawelcomepage.cpp:303">
<![LOG[Setting wizard error: An error occurred while retrieving policy for this computer (0x80004005). For more information, contact your system administrator or helpdesk operator.]LOG]!><time="12:43:26.346+480" date="03-07-2014"
component="TSPxe" context="" type="0" thread="244" file="tsmediawizardcontrol.cpp:1547">
<![LOG[WelcomePage::OnWizardNext()]LOG]!><time="12:43:26.346+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="tsmediawelcomepage.cpp:340">
<![LOG[Skipping Confirmation Page.]LOG]!><time="12:43:26.346+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="tsmediaconfirmationpage.cpp:170">
<![LOG[Skipping Task Sequence Selection Page.]LOG]!><time="12:43:26.346+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="tsmediataskselectionpage.cpp:118">
<![LOG[Skipping Variables Selection Page.]LOG]!><time="12:43:26.346+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="tsmediavariablesselectionpage.cpp:155">
<![LOG[Skipping Resolve Progress Page.]LOG]!><time="12:43:26.346+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="tsmediaresolveprogresspage.cpp:96">
<![LOG[Activating Finish Page.]LOG]!><time="12:43:26.346+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="tsmediafinishpage.cpp:107">
<![LOG[Initializing the countdown timer.]LOG]!><time="12:43:26.362+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="tsmediafinishpage.cpp:197">
<![LOG[Loading bitmap]LOG]!><time="12:43:26.362+480" date="03-07-2014" component="TSPxe" context="" type="1" thread="244" file="tsmbootstrap.cpp:1228">
<![LOG[Suspending the countdown timer.]LOG]!><time="12:43:27.968+480" date="03-07-2014" component="TSPxe" context="" type="0" thread="244" file="tsmediafinishpage.cpp:384">CLibSMSMessageWinHttpTransport::Send: URL: sccm.lan.lankacom.lk:80 GET /SMS_MP/.sms_aut?MPKEYINFORMATIONMEDIA
Error. Status code 503 returned
That's from the log above. When the client is trying to communicate with the MP, it is getting a 503 which is an HTTP error code for service unavailable. Thus, you need to troubleshoot your MP which is most likely unhealthy.
Jason | http://blog.configmgrftw.com
Maybe you are looking for
-
Shockwave Won't Install (Windows 8, PC, Google Chrome)
Hello, I am on a PC running Windows 8. My browser is Google Chrome. I am trying to install the newest shockwave player, and I have downloaded the installer multiple times, and the installation window finished loading and then only gave me the option
-
I am building a P6NGM with 2 Gig and a E2200 Intel I am giving up on the old gateway and want to move the Gateway hard drive with programs and data to the new machine it will not start but still starts in the old machine. I have done this with Win 20
-
Application background color change
I pressed some command key in error and got a bright blue background in the application frame around the image I've got open in photoshop cs6. How do I get it back to the neutral gray?
-
Dear All, We are facing one problem that few PR are deleted. We want to get the list on the base of user id such that we input the user id & get to know which PR are deleted by this particular user id. Please give me some report or table name from wh
-
Access var on main timeline from class
Hello, Currently working on some expanding media that has class files for all of the various action functions, then a separate class file for all of the var that sets the graphics, tracking, copy / content and whatnot. The final part that's driving m