Quick question :-)
How are the variables defined in UDI applied during an OS installation ?
And does it take precedence over Collection variables ?
Thx
Rgds
Quick question :-)
How are the variables defined in UDI applied during an OS installation ?
And does it take precedence over Collection variables ?
Thx
Rgds
sccm 2012 r2
can someone take a look at this smsts.log and tell me why this OSD failed?
https://onedrive.live.com/?cid=D9560DD121B6BF0F&id=D9560DD121B6BF0F%211055
Thank you
Hello I'm really puzzelled by this issue, I have an application that runs a command line which creates some logs and then calls another cmd which runs .exe. The application installs fine if deployed but if I link it to my Task Sequence it doesn't seem to run. I have checked the logs and there are no errors. All I see is the below. there is no filtering of the task sequence.
Action command line: smsappinstall.exe /app:ScopeId_1E601AB0-2B4F-47BA-A148-84EBD1EC030D/Application_430fad72-a112-4d3d-b2d2-34e0fd57146d /basevar: /continueOnError:False
SCCM Deployment Technician
Hi!!
So my goal here is to set the timezone based on the first two chars in %OSDComputerName%, so if the computer is named CN-COMPUTER01 I want it to take the timezone in [CN] section, if this fails I want it to set it based on the defaultgateway.
This works fine when I debug it with ZTIGather but in a OSD-deployment the %OSDComputerName% does not get resolved. So in BDD.log I see that it's looking for the section [%O], The first two characters in the variable %OSDComputerName%, not the actual value.
[Settings] Priority=Init, ByCountryCode, DefaultGateway, Default Properties=MyCustomProperty, TheCountryCode [Init] TheCountryCode=#Left("%OSDComputerName%",2)# [ByCountryCode] SubSection=%TheCountryCode% [DefaultGateway] <IP>=CN<IP>=BD<IP>=FI<IP>=IN [BD] TimeZone=195 TimeZoneName=Central Asia Standard Time [CN] TimeZone=210 TimeZoneName=China Standard Time [FI] TimeZone=125 TimeZoneName=FLE Standard Time [Default] OSInstall=Y SkipCapture=YES SkipAdminPassword=YES SkipProductKey=YES KeyboardLocale=041d;0000041d InputLocale=sv-SE Language=sv-SE UserLocale=sv-SE SystemLocale=sv-SE UILanguage=en-US TimeZone=110 TimeZoneName=W. Europe Standard Time
Any ideas? Why does it not resolve the variable?
EDIT: btw, I use SCCM 2012 R2 for OSD.BACKGROUND:
I have been working with a new organisation for the last six weeks and am about to introduce a Win 7 new build.
This will include a newly captured WIM containing pre-reqs, updates etc., a completely new deployment task sequence (SCCM replacing MDT). This is specifically targeting issues of the current build of poor performance and poor reliability.
As the authority on SCCM, the expectations of me are obviously to resolve the above issues - the latter is easy to identify improvements through calls to the desk, but performance (or most importantlyperceived performance) is more subjective.
Therefore, I intend to benchmark their existing build and the new one as a comparison which will hopefully document the benefits in the black and white.
DISCUSSION:
I am interested whether anyone else benchmarks new/amended builds as a matter of course? If so how do you do this?
Traditional benchmarks such as CPU, GPU, RAM are not what I would consider perceived performance indicators. They also vary from model and so are not really relevant to benchmarking the build.
Boot up times and logon times are definitely perceived performance indicators. I will look at xperf (which i see has now been superseded by the Windows Performance Recorder whcih is part of the ADK). I am also aware of the Diagnostics-Performance\Boot Performance Monitoring in the event log.
Can anyone recommend any other benchmark tests that I should include?
Thanks for reading!
Usama Arif
Hi there.
Fresh install.
Booting from PXE returns an error: Configuration Manager is looking for policy :(
Done a lot of googlin so far, nothing helps.
SMSPXELOGS:
00:50:56:A8:31:3A, 8D662842-2689-4683-6652-2C8F574F7B8A: No boot action. Rejected.
00:50:56:A8:31:3A, 8D662842-2689-4683-6652-2C8F574F7B8A: Not serviced.
Client lookup reply: <ClientIDReply><Identification Unknown="0" ItemKey="0" ServerName=""><Machine><ClientID/><NetbiosName/></Machine></Identification></ClientIDReply>
00:50:56:A8:31:3A, 8D662842-2689-4683-6652-2C8F574F7B8A: device is not in the database.
Getting boot action for unknown machine: item key: 2046820353
Client boot action reply: <ClientIDReply><Identification Unknown="0" ItemKey="2046820353" ServerName=""><Machine><ClientID/><NetbiosName/></Machine></Identification><PXEBootAction LastPXEAdvertisementID="" LastPXEAdvertisementTime="" OfferID="" OfferIDTime="" PkgID="" PackageVersion="" PackagePath="" BootImageID="" Mandatory=""/></ClientIDReply>
00:50:56:A8:31:3A, 8D662842-2689-4683-6652-2C8F574F7B8A: no advertisements found
bostjanc
Hi,
Can somebody tell me if it actually possible to fully patch a computer via an SCCM 2012 task sequence using the install software updates task? If you have managed this can you shed some light on where I'm going wrong? For me, this behaviour is exactly the same as ConfigMgr07... It simply doesn't work as it should.
I've integrated IE9 into my image and then added in all available updates via offline servicing. My task sequence installs windows, installs Adobe Reader, Office 2010 and Visio Viewer 2010. I then reboot the machine and perform all my patching via the Install Software Updates task (with it set to 'all'), then reboot again. I do this four times in total.
It downloads and installs some 24 updates in the first instance. The second, third and fourth time it doesn't download or install anything.
When the task sequence completes and the OS first starts up there are 10 updates waiting to be installed (including updates for Adobe Reader and Flash that I have published to the WSUS server via SCUP). After installing those and rebooting there is a single hotfix available (KB2533552). After installing that and rebooting, .NET4 Client Profile is waiting for me. After that there another nine more updates are available (mainly .NET4). Reboot, .NET4 Framework, reboot 5x .NET4 framework updates.
Why does the software update task not install 'all' updates when that is what I've selected? I have an automatic deployment rule targeted to my OSD and Unknown Computers collections. The rule is set to include Windows 7, Office 2010 and Adobe products with all update classification types.
Hi,
We got an strange issue with computer model z400 and Z420. With the memory setup 16 GB RAM we get an faild driver injection. But If we have 8 GB RAM, Everything works fine. We have tested the memory, with no error. And It is same for every delivered
HP Z420 with 16 GB (4*4GB RAM).
Strange? Any feed back?
SCCM 2012 R2 CU1, Deploying Windows 7 x64 Enterprise
I found this on the z400 installation I dont know what driver fails on z420
Deploying drivers to down-level operating systems in WinPE 4.0 or a later version fails
https://support.microsoft.com/kb/2853726/en-us?wa=wsignin1.0
Drivers in "D:\_SMSTaskSequence\Packages\PSS0015B\3494DEEA-917A-47BC-80C8-2E6C8B6A8986 is
"TITLE: Broadcom NetXtreme Gigabit Driver for Microsoft Windows 7 (64-bit) VERSION: 14.2.0.5 Rev. A"
smsts.log
Adding "D:\_SMSTaskSequence\Packages\PSS0015B\3494DEEA-917A-47BC-80C8-2E6C8B6A8986" to Windows driver store. OSDDriverClient 2014-11-24 13:50:21 1040 (0x0410)
Setting %SystemRoot% to "D:\WINDOWS" OSDDriverClient 2014-11-24 13:50:21 1040 (0x0410)
Getting namespace "Microsoft-Windows-PnpCustomizationsNonWinPE" for architecture "amd64" OSDDriverClient 2014-11-24 13:50:21 1040 (0x0410)
Added list item with key value '1' OSDDriverClient 2014-11-24 13:50:21 1040 (0x0410)
Writing configuration information to D:\_SMSTaskSequence\PkgMgrTemp\drivers.xml OSDDriverClient 2014-11-24 13:50:21 1040 (0x0410)
Successfully saved configuration information to D:\_SMSTaskSequence\PkgMgrTemp\drivers.xml OSDDriverClient 2014-11-24 13:50:21 1040 (0x0410)
Setting temporary directory to 'D:\_SMSTaskSequence\PkgMgrTemp'. OSDDriverClient 2014-11-24 13:50:21 1040 (0x0410)
Calling Package manager to add drivers to the offline driver store. OSDDriverClient 2014-11-24 13:50:21 1040 (0x0410)
Command line for extension .exe is "%1" %* OSDDriverClient 2014-11-24 13:50:21 1040 (0x0410)
Set command line: "X:\WINDOWS\system32\dism.exe" /image:"D:" /windir:"WINDOWS" /apply-unattend:"D:\_SMSTaskSequence\PkgMgrTemp\drivers.xml" /logpath:"D:\_SMSTaskSequence\PkgMgrTemp\dism.log" OSDDriverClient 2014-11-24
13:50:21 1040 (0x0410)
Executing command line: "X:\WINDOWS\system32\dism.exe" /image:"D:" /windir:"WINDOWS" /apply-unattend:"D:\_SMSTaskSequence\PkgMgrTemp\drivers.xml" /logpath:"D:\_SMSTaskSequence\PkgMgrTemp\dism.log" OSDDriverClient 2014-11-24
13:50:21 1040 (0x0410)
Process completed with exit code 2147500037 OSDDriverClient 2014-11-24 13:50:47 1040 (0x0410)
uExitCode == 0, HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\osddriverclient\sysprepdriverinstaller.cpp,548) OSDDriverClient 2014-11-24 13:50:47 1040 (0x0410)
Dism failed with return code -2147467259 OSDDriverClient 2014-11-24 13:50:47 1040 (0x0410)
AddPnPDriverToStore( pszSource, sTargetSystemDrive, sTargetSystemRoot, wProcessorArchitecture), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\osddriverclient\sysprepdriverinstaller.cpp,658) OSDDriverClient 2014-11-24 13:50:47 1040
(0x0410)
Failed to add driver to driver store. Code 0x80004005 OSDDriverClient 2014-11-24 13:50:47 1040 (0x0410)
InstallDriver( iInstallParams->sContentId, iInstallParams->sSource, iInstallParams->pBootCriticalInfo ), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\osddriverclient\driverinstaller.cpp,557) OSDDriverClient 2014-11-24 13:50:47 1040
(0x0410)
/SaiTech
I can't get a PXE client to boot properly from a distribution point enabled for PXE. I understand a lot of the technical details here, so bear with me.
The client is booting from \SMSBoot\x64\wdsmgfw.efi, as it's a 64bit UEFI machine. This wdsmgfw.efi file is downloading just fine.
The first thing it does is direct the client to download \Boot\x64\wdsmgfw.efi. This is the standard file which is part of WDS. The first thing this file does is attempt to load \Tmp\x64uefi{29BCDCF4-A8D0-4EA9-B197-87ED8FA6F977}.bcd. Immediately after that, I get this error message on the client:
The Windows Boot Configuration Data (BCD) file from the PXE server does not contain a valid operating system entry.
Now, I know the problem here. The BCD file it is downloading has no boot system images in it. And so I get the error. It looks like SCCM generates it's own set of BCD files in \SMSTemp. These files have the SMS boot images configured in them.
So, if I copy one of the SMSTemp files into Tmp, and rename it to x64uefi*, the client successfully boots into the SCCM WinPE image.
This raises some questions. My suspicion here is that the client is supposed to directly load \SMSTemp\ files, and not \Tmp\ files. And yet it is not. I'm guessing this is because \SMSBoot\x64\wdsmgfw.efi is loading \Boot\x64\wdsmgfw.efi, which isn't SCCM related, and is then going along with the normal WDS process.
What's up here? Why would my PXE clients be loading \SMSBoot\x64\wdsmgfw.efi, and then immediately jumping to \Boot\x64\wdsmgfw.efi?
I am having an odd problem with my SCCM 2012 OSD tasks. It appears that not all applications are showing up in the "install applications" task. For instance, I have separate applications for 32-bit and 64-bit Java. The 64-bit application shows up in the list of applications you can choose to install, but the 32-bit version doesn't. I have tried both with and both without the "allow this application to be installed from the install application task sequence action without being deployed" box selected. (It also looks like that box does nothing, I have it unchecked for Acrobat Pro and it still shows up in the list).
Both deployments are working outside of the OSD stuff, but I'd like to be able to have them install as part of an OS deployment. Any ideas?
I have a SCCM 2012 SP1 Cumulative Update 3 environment and I am trying to build a step into my Win7 x64 task sequence that will query registry keys to get username and workstation type (laptop vs. desktop).
The user information is obtained at the beginning of the process, put into n TS variable, and written to the registry. After the OS, drivers, and basic software is installed, I would restart into OS and would like to query the registry, move the computer OU based off user's domain id location, and rename computer via a powershell script.
I have the following steps built into the task sequence.
1. Install .Net Framework 4.5
2. Install WMF 4.0
3. Enable RSAT and Import AD Module
4. Move and Rename Computer
I am running into issues with the powershell script that runs on step 4. The script is running with an ID account that has privileges to query AD and move computers. All steps (1-4) run without any issues if I target the computer that already has an OS installed.
Here is the command that I am running in the step 4:
powershell.exe -ExecutionPolicy Bypass -File SHI_Computer-New.ps1
It fails on the first line that queries the registry with an error that states “Get-ITemProperty is not recognized as a cmdlet, function, operable program, or script file.
$Name = (Get-ItemProperty -Path HKLM:\SYSTEM\Setup\SCCMOSD -Name User).User
Has anyone seen this type of issue?
If I hit F8 and run the script as local system from the Packages folder that contains the script I can run the script without any issues.
Any feedback is greatly appreciated!
Hi All,
I need a advice on duplicate record
While building the machine in OSD, we have given the same asset tags to different machine. I found some duplicate machines physically but wen i checked in SCCM there is only one record.
Is there a way i can find the machine with the same asset tags (same in computer name properties as well). please help
Regards, Pratap
Hi All,
I am in the process of creating an golden Image for Windows 7 SP1 x64 using SCCM 2012R2, installed on Windows Server 2012R2.
To create an image I created a build and Capture TS from scratch using default settings.
The build VM is not joined to the domain, I added the SMSMP = fqdn and DNSSuffix=fqdn to the client settings.
The process goes well until the VM is being captured, It start with scanning and capturing volume 1, which is ok.
Then the process starts scanning Volume 2 (Windows volume) then the VM reboots. The logs do not reveal anything, they go only up until the system reboots after sysprep. After the failed capture, a WIM file is created of 7 MB size.
I read on another forum that the workaround for this is to shutdown the VM after Sysprep phase and then power it up again. That works for me too. Now the VM image is captured properly.
When I use the same TS on a Laptop, the TS finishes correctly, capturing the installation. Dont have to shut it down.
Any ideas what could be wrong here?
Some additional info:
Hyper-V 2012R2 hosts are patched.
The VM in use is Gen-1 with a legacy nic.
AV on the SCCM server is shutdown for testing.
Share permissions for WIM location are ok and accessible for Build and Capture client (used F8 to check)
DHCP settings and DNS are ok, the client get's proper IP and can resolve SCCM MP and shares.
Hi,
I'm experimenting with creating a VHD with our standard desktop build on it. I have created a task sequence to build the VHD, however if I watch the VM be built, SCCM is not connecting a network adapter and so the VM doesn't connect to the domain and download any of the applications.
Any ideas as to how I can create the network connection?
MCP, MCDST, MCTS x 6, MCITP x 3
Please don't forget to mark this post as an answer if it is the solution to your problem!
If you like trance music, please subscribe to my podcast Trancendance Podcast
Hi there,
I have a SCCM 2012 R2 environment running on Windows Server 2012 on VMWare Workstation 10.0.1. My TS is deploying Win7x64 to another VM. I am using MDT integration and the first action after "Setup Winodws and ConfigMgr", and restarting from WinPE to Win7, is "Use Microsoft Deployment Toolkit Package". It always downloads part of the package before it fails on a seemingly random file.
From the F8 prompt i am able to ping the MP/DP. From the MP/DP I am also able to download the file in question using Internet Explorer. From my viewpoint this looks like a transient network error, but I am open to any suggestions at this point. I have also seen the TS run through without a hitch once, so it seems like it's not perfectly consistent.
Does anyone have any idea as to what could cause this? Where should I be looking? Any troubleshooting tips?
External link to smsts.log
Snippet of my TS
Snippet from the smsts.log:
Downloading file /SMS_DP_SMSPKG$/CEN00024/sccm?/Scripts/DeployWiz_Computer.png range 0-6593 InstallSoftware 2014-02-04 12:43:24 2356 (0x0934) Downloaded file from http://CM01.spectre.local:80/SMS_DP_SMSPKG$/CEN00024/sccm?/Scripts/DeployWiz_Computer.png to C:\_SMSTaskSequence\Packages\CEN00024\Scripts/DeployWiz_Computer.png InstallSoftware 2014-02-04 12:43:24 2356 (0x0934) Downloading file /SMS_DP_SMSPKG$/CEN00024/sccm?/Scripts/DeployWiz_ComputerBackup.vbs range 0-2690 InstallSoftware 2014-02-04 12:43:24 2356 (0x0934) Downloaded file from http://CM01.spectre.local:80/SMS_DP_SMSPKG$/CEN00024/sccm?/Scripts/DeployWiz_ComputerBackup.vbs to C:\_SMSTaskSequence\Packages\CEN00024\Scripts/DeployWiz_ComputerBackup.vbs InstallSoftware 2014-02-04 12:43:24 2356 (0x0934) Downloading file /SMS_DP_SMSPKG$/CEN00024/sccm?/Scripts/DeployWiz_ComputerBackup.xml range 0-2999 InstallSoftware 2014-02-04 12:43:24 2356 (0x0934) Downloaded file from http://CM01.spectre.local:80/SMS_DP_SMSPKG$/CEN00024/sccm?/Scripts/DeployWiz_ComputerBackup.xml to C:\_SMSTaskSequence\Packages\CEN00024\Scripts/DeployWiz_ComputerBackup.xml InstallSoftware 2014-02-04 12:43:24 2356 (0x0934) WinHttpSendRequest (hRequest, pszAdditionalHeader != NULL ? pszAdditionalHeader : WINHTTP_NO_ADDITIONAL_HEADERS, (DWORD)-1, NULL, 0, 0, NULL), HRESULT=80072ee2 (e:\qfe\nts\sms\framework\tscore\downloadcontent.cpp,1211) InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) WinHttpSendRequest failed. InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) SendWinHttpRequest failed. 80072ee2. InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) SendWinHttpRequest (hSession, hConnect, hRequest, pszSourcePath, sWinHttpRangeHeader.c_str(), bUseSSL, ullContentLength, LastGoodCredentialsType), HRESULT=80072ee2 (e:\qfe\nts\sms\framework\tscore\downloadcontent.cpp,1424) InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) DownloadFileWithRanges() failed. 80072ee2. InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) DownloadFileWithRanges (hSession, hConnect, sRequest, hFile, pszDestination, ullFileSize, ulPackageSize, ulDownLoaded, LastGoodCredentialsType, bUseSSL), HRESULT=80072ee2 (e:\qfe\nts\sms\framework\tscore\downloadcontent.cpp,1514) InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) DownloadFile() failed for http://CM01.spectre.local:80/SMS_DP_SMSPKG$/CEN00024/sccm?/Scripts/DeployWiz_ComputerName.vbs, C:\_SMSTaskSequence\Packages\CEN00024\Scripts/DeployWiz_ComputerName.vbs. 80072ee2. InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) DownloadFile (hSession, hConnect, sSourceFile.c_str(), sDestinationFile.c_str(), ulPackageSize, ulDownLoaded, LastGoodCredentialsType, bUseSSL), HRESULT=80072ee2 (e:\qfe\nts\sms\framework\tscore\downloadcontent.cpp,1590) InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) Error downloading file from http://CM01.spectre.local:80/SMS_DP_SMSPKG$/CEN00024/sccm?/Scripts/DeployWiz_ComputerName.vbs to C:\_SMSTaskSequence\Packages\CEN00024\Scripts/DeployWiz_ComputerName.vbs InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) DownloadFiles() failed. 80072ee2. InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) DownloadFiles (setDirs, setFiles, sDestination.c_str(), bUseSSL), HRESULT=80072ee2 (e:\qfe\nts\sms\framework\tscore\resolvesource.cpp,2529) InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) Download() failed. 80072ee2. InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) DownloadContentAndVerifyHash() failed. 80070002. InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) DownloadContentAndVerifyHash ( pszPackageID, L"SMSPackage", saHttpContentSources, saSMBContentSources, saMulticastContentSources, sDestination, dwFlags, L"", 0, dwPackageFlags, mapNetworkAccess ), HRESULT=80070002 (e:\qfe\nts\sms\framework\tscore\resolvesource.cpp,3052) InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) DownloadContentLocally (pszSource, sSourceDirectory, dwFlags, hUserToken, mapNetworkAccess), HRESULT=80070002 (e:\qfe\nts\sms\framework\tscore\resolvesource.cpp,3273) InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) TS::Utility::ResolveSource (pszPkgID, sPath, 0, hUserToken, mapNetworkAccess), HRESULT=80070002 (e:\nts_sccm_release\sms\client\osdeployment\installsoftware\runcommandline.cpp,399) InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) Failed to resolve the source for SMS PKGID=CEN00024, hr=0x80070002 InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) cmd.Execute(pszPkgID, sProgramName, dwCmdLineExitCode), HRESULT=80070002 (e:\nts_sccm_release\sms\client\osdeployment\installsoftware\main.cpp,372) InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) Install Software failed to run command line, hr=0x80070002 InstallSoftware 2014-02-04 12:43:45 2356 (0x0934) Process completed with exit code 2147942402 TSManager 2014-02-04 12:43:45 1672 (0x0688) !--------------------------------------------------------------------------------------------! TSManager 2014-02-04 12:43:45 1672 (0x0688) Failed to run the action: Use Toolkit Package. The system cannot find the file specified. (Error: 80070002; Source: Windows) TSManager 2014-02-04 12:43:45 1672 (0x0688) MP server http://CM01.spectre.local. Ports 80,443. CRL=false. TSManager 2014-02-04 12:43:45 1672 (0x0688) Setting authenticator TSManager 2014-02-04 12:43:45 1672 (0x0688)