Quantcast
Channel: Symantec Connect - Endpoint Management
Viewing all articles
Browse latest Browse all 7217

How to create a WinPe4.0 with default.bdc, to have Powershell3 and NetFX4

$
0
0
I need a solution

Hello,

I am trying to create a WinPe 4.0 in the Symantec Management Console before I create, or recreate, the WinPE I modified the default.bdc in the directory: C:\Program Files\Altiris\Deployment\BDC\bootwiz\oem\DS\winpe\default.bdc.

I use 7.5 SP1 HF5

It is important for me that I only modify the default.bdc once to have an automation.

The modified default.bdc looks like:

[PACKAGES]

ADO=TRUE

HTA=TRUE

WMI=Required

WSH=Required

XML=Required

NETFX4=Required

PowerShell3=True

JA_JP=Hide

KO_KR=Hide

ZH_CN=Hide

ZH_HK=Hide

ZH_TW=Hide

[Platforms]

OS=WINPE

OS_SUBTYPE=WINPE4

OS_SUBSUBTYPE=WINPE40

[Application]

Compress=True

RamDriveSize=512

That I can write NETFX4 and Powershell3 I mapped that in the WinPEX64.ini / WinPEX86.ini (directory: C:\Program Files\Altiris\Deployment\BDC\bootwiz\Platforms).

It looks like this in the .ini-file:

[PACKAGE_MAPPING]

WINPE-HTA=HTA

WINPE-MDAC=ADO

WINPE-SCRIPTING=WSH

WINPE-WMI=WMI

WINPE-NETFX4=NETFX4

WINPE-PowerShell3=Powershell3

WINPE-XML=XML

WINPE-FONTSUPPORT-JA-JP=JA_JP

WINPE-FONTSUPPORT-KO-KR=KO_KR

WINPE-FONTSUPPORT-ZH-CN=ZH_CN

WINPE-FONTSUPPORT-ZH-HK=ZH_HK

WINPE-FONTSUPPORT-ZH-TW=ZH_TW

Package_for_KB*=KB*

Now my outputs:

I tried to create / recreate my WinPE 4.0 in the Symantec Management Console but it did not work. I have checked that in the bootwiz.log (C:\Program Files\Altiris\Deployment\Logs\bootwiz.log)

Here the lines from the logs where you cann see it passed with WMI and WSH but NETFX4 and POWERSHELL3 did not:

2015/01/09 11:13:10 I: .........>misc::RunCommand (sCmdLine='"C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\SBS\Bootwiz\{374E1C49-4F58-4f5c-8D51-07A30F0D44AD}\Cache\waik\Tools\amd64\servicing\dism" /image="C:\Windows\Temp\~bootwiz\00001958\image" /Add-Package /PackagePath:"C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\SBS\Bootwiz\{374E1C49-4F58-4f5c-8D51-07A30F0D44AD}\Cache\waik\Tools\PETools\amd64\WinPE_FPs\NETFX4.cab"', bShow=0, bUsePIF=0, pProg, sDesc='NETFX4', pdwExitCode)

2015/01/09 11:13:12 I: .........<misc::RunCommand - returning 0 (BDC_SUCCESS)

2015/01/09 11:13:12 I: ........-CPlatformWinPe2::WimInsertPackage - command '"C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\SBS\Bootwiz\{374E1C49-4F58-4f5c-8D51-07A30F0D44AD}\Cache\waik\Tools\amd64\servicing\dism" /image="C:\Windows\Temp\~bootwiz\00001958\image" /Add-Package /PackagePath:"C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\SBS\Bootwiz\{374E1C49-4F58-4f5c-8D51-07A30F0D44AD}\Cache\waik\Tools\PETools\amd64\WinPE_FPs\NETFX4.cab"' returned 0 (BDC_SUCCESS) with exitcode 3

2015/01/09 11:13:12 I: ........<CPlatformWinPe2::WimInsertPackage - returning 601 (BDC_ERR_WIM_INSERT_PACKAGE)

2015/01/09 11:13:12 I: .......     error 601 (BDC_ERR_WIM_INSERT_PACKAGE) inserting 'NETFX4'

2015/01/09 11:13:12 I: .......     package 'POWERSHELL3' = True (1)

2015/01/09 11:13:12 I: ........>CPlatformWinPe2::WimInsertPackage [Platform='WINPE4_X64'] (sPkgLongName='WINPE-POWERSHELL3', sMountPath='C:\Windows\TEMP\~bootwiz\00001958\image', sWorkingDir='', pProg)

2015/01/09 11:13:12 I: .........>misc::RunCommand (sCmdLine='"C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\SBS\Bootwiz\{374E1C49-4F58-4f5c-8D51-07A30F0D44AD}\Cache\waik\Tools\amd64\servicing\dism" /image="C:\Windows\Temp\~bootwiz\00001958\image" /Add-Package /PackagePath:"C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\SBS\Bootwiz\{374E1C49-4F58-4f5c-8D51-07A30F0D44AD}\Cache\waik\Tools\PETools\amd64\WinPE_FPs\WINPE-POWERSHELL3.cab"', bShow=0, bUsePIF=0, pProg, sDesc='WINPE-POWERSHELL3', pdwExitCode)

2015/01/09 11:13:14 I: .........<misc::RunCommand - returning 0 (BDC_SUCCESS)

2015/01/09 11:13:14 I: ........-CPlatformWinPe2::WimInsertPackage - command '"C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\SBS\Bootwiz\{374E1C49-4F58-4f5c-8D51-07A30F0D44AD}\Cache\waik\Tools\amd64\servicing\dism" /image="C:\Windows\Temp\~bootwiz\00001958\image" /Add-Package /PackagePath:"C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\SBS\Bootwiz\{374E1C49-4F58-4f5c-8D51-07A30F0D44AD}\Cache\waik\Tools\PETools\amd64\WinPE_FPs\WINPE-POWERSHELL3.cab"' returned 0 (BDC_SUCCESS) with exitcode -2146498530

2015/01/09 11:13:14 I: ........<CPlatformWinPe2::WimInsertPackage - returning 601 (BDC_ERR_WIM_INSERT_PACKAGE)

2015/01/09 11:13:14 I: .......     error 601 (BDC_ERR_WIM_INSERT_PACKAGE) inserting 'POWERSHELL3'

2015/01/09 11:13:14 I: .......     package 'WMI' = Required (1)

2015/01/09 11:13:14 I: ........>CPlatformWinPe2::WimInsertPackage [Platform='WINPE4_X64'] (sPkgLongName='WINPE-WMI', sMountPath='C:\Windows\TEMP\~bootwiz\00001958\image', sWorkingDir='', pProg)

2015/01/09 11:13:14 I: .........>misc::RunCommand (sCmdLine='"C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\SBS\Bootwiz\{374E1C49-4F58-4f5c-8D51-07A30F0D44AD}\Cache\waik\Tools\amd64\servicing\dism" /image="C:\Windows\Temp\~bootwiz\00001958\image" /Add-Package /PackagePath:"C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\SBS\Bootwiz\{374E1C49-4F58-4f5c-8D51-07A30F0D44AD}\Cache\waik\Tools\PETools\amd64\WinPE_FPs\WINPE-WMI.cab"', bShow=0, bUsePIF=0, pProg, sDesc='WINPE-WMI', pdwExitCode)

2015/01/09 11:13:17 I: .........<misc::RunCommand - returning 0 (BDC_SUCCESS)

2015/01/09 11:13:17 I: ........-CPlatformWinPe2::WimInsertPackage - command '"C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\SBS\Bootwiz\{374E1C49-4F58-4f5c-8D51-07A30F0D44AD}\Cache\waik\Tools\amd64\servicing\dism" /image="C:\Windows\Temp\~bootwiz\00001958\image" /Add-Package /PackagePath:"C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\SBS\Bootwiz\{374E1C49-4F58-4f5c-8D51-07A30F0D44AD}\Cache\waik\Tools\PETools\amd64\WinPE_FPs\WINPE-WMI.cab"' returned 0 (BDC_SUCCESS) with exitcode 0

2015/01/09 11:13:17 I: ........<CPlatformWinPe2::WimInsertPackage - returning 0 (BDC_SUCCESS)

2015/01/09 11:13:17 I: .......     package 'WSH' = True (1)

2015/01/09 11:13:17 I: ........>CPlatformWinPe2::WimInsertPackage [Platform='WINPE4_X64'] (sPkgLongName='WINPE-SCRIPTING', sMountPath='C:\Windows\TEMP\~bootwiz\00001958\image', sWorkingDir='', pProg)

2015/01/09 11:13:17 I: .........>misc::RunCommand (sCmdLine='"C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\SBS\Bootwiz\{374E1C49-4F58-4f5c-8D51-07A30F0D44AD}\Cache\waik\Tools\amd64\servicing\dism" /image="C:\Windows\Temp\~bootwiz\00001958\image" /Add-Package /PackagePath:"C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\SBS\Bootwiz\{374E1C49-4F58-4f5c-8D51-07A30F0D44AD}\Cache\waik\Tools\PETools\amd64\WinPE_FPs\WINPE-SCRIPTING.cab"', bShow=0, bUsePIF=0, pProg, sDesc='WINPE-SCRIPTING', pdwExitCode)

2015/01/09 11:13:19 I: .........<misc::RunCommand - returning 0 (BDC_SUCCESS)

2015/01/09 11:13:19 I: ........-CPlatformWinPe2::WimInsertPackage - command '"C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\SBS\Bootwiz\{374E1C49-4F58-4f5c-8D51-07A30F0D44AD}\Cache\waik\Tools\amd64\servicing\dism" /image="C:\Windows\Temp\~bootwiz\00001958\image" /Add-Package /PackagePath:"C:\Program Files\Altiris\Altiris Agent\Agents\Deployment\SBS\Bootwiz\{374E1C49-4F58-4f5c-8D51-07A30F0D44AD}\Cache\waik\Tools\PETools\amd64\WinPE_FPs\WINPE-SCRIPTING.cab"' returned 0 (BDC_SUCCESS) with exitcode 0

2015/01/09 11:13:19 I: ........<CPlatformWinPe2::WimInsertPackage - returning 0 (BDC_SUCCESS)

2015/01/09 11:13:19 I: .......     package 'XML' = Required (1)

I have also checked the boot.wim which was created with dism. First I mounted the.wim-file and then I used /get-features and I also saw that NETFX4 and POWERSHELL is not installed.

To recheck if it makes any change I started the bootwiz.exe and create an .iso WinPE4.0. There I saw that bootwiz.exe uses the modified default.bdc:

bootwiz.jpg

You can see that NETFX4 is set on Required like WMI and POWERSHELL3 is set on True.

The bootwiz.log lokks like this after the WinPE was created:

2015/01/09 11:35:54 I: ..............>CPlatformWinPe2::WimInsertPackage [Platform='WINPE4_X64'] (sPkgLongName='WINPE-NETFX4', sMountPath='C:\Users\ADMINI~1\AppData\Local\Temp\3\~bootwiz\00001838\image', sWorkingDir='', pProg)

2015/01/09 11:35:54 I: ...............>misc::RunCommand (sCmdLine='"C:\Program Files\Altiris\Deployment\BDC\waik\Tools\amd64\servicing\dism" /image="C:\Users\Administrator\AppData\Local\Temp\3\~bootwiz\00001838\image" /Add-Package /PackagePath:"C:\Program Files\Altiris\Deployment\BDC\waik\Tools\PETools\amd64\WinPE_FPs\WINPE-NETFX4.cab"', bShow=0, bUsePIF=0, pProg, sDesc='WINPE-NETFX4', pdwExitCode)

2015/01/09 11:36:49 I: ...............<misc::RunCommand - returning 0 (BDC_SUCCESS)

2015/01/09 11:36:49 I: ..............-CPlatformWinPe2::WimInsertPackage - command '"C:\Program Files\Altiris\Deployment\BDC\waik\Tools\amd64\servicing\dism" /image="C:\Users\Administrator\AppData\Local\Temp\3\~bootwiz\00001838\image" /Add-Package /PackagePath:"C:\Program Files\Altiris\Deployment\BDC\waik\Tools\PETools\amd64\WinPE_FPs\WINPE-NETFX4.cab"' returned 0 (BDC_SUCCESS) with exitcode 0

2015/01/09 11:36:49 I: ..............<CPlatformWinPe2::WimInsertPackage - returning 0 (BDC_SUCCESS)

2015/01/09 11:36:49 I: .............     package 'POWERSHELL3' = True (1)

2015/01/09 11:36:49 I: ..............>CPlatformWinPe2::WimInsertPackage [Platform='WINPE4_X64'] (sPkgLongName='WINPE-POWERSHELL3', sMountPath='C:\Users\ADMINI~1\AppData\Local\Temp\3\~bootwiz\00001838\image', sWorkingDir='', pProg)

2015/01/09 11:36:49 I: ...............>misc::RunCommand (sCmdLine='"C:\Program Files\Altiris\Deployment\BDC\waik\Tools\amd64\servicing\dism" /image="C:\Users\Administrator\AppData\Local\Temp\3\~bootwiz\00001838\image" /Add-Package /PackagePath:"C:\Program Files\Altiris\Deployment\BDC\waik\Tools\PETools\amd64\WinPE_FPs\WINPE-POWERSHELL3.cab"', bShow=0, bUsePIF=0, pProg, sDesc='WINPE-POWERSHELL3', pdwExitCode)

2015/01/09 11:36:58 I: ...............<misc::RunCommand - returning 0 (BDC_SUCCESS)

2015/01/09 11:36:58 I: ..............-CPlatformWinPe2::WimInsertPackage - command '"C:\Program Files\Altiris\Deployment\BDC\waik\Tools\amd64\servicing\dism" /image="C:\Users\Administrator\AppData\Local\Temp\3\~bootwiz\00001838\image" /Add-Package /PackagePath:"C:\Program Files\Altiris\Deployment\BDC\waik\Tools\PETools\amd64\WinPE_FPs\WINPE-POWERSHELL3.cab"' returned 0 (BDC_SUCCESS) with exitcode 0

2015/01/09 11:36:58 I: ..............<CPlatformWinPe2::WimInsertPackage - returning 0 (BDC_SUCCESS)

2015/01/09 11:36:58 I: .............     package 'WMI' = Required (1)

2015/01/09 11:36:58 I: ..............>CPlatformWinPe2::WimInsertPackage [Platform='WINPE4_X64'] (sPkgLongName='WINPE-WMI', sMountPath='C:\Users\ADMINI~1\AppData\Local\Temp\3\~bootwiz\00001838\image', sWorkingDir='', pProg)

2015/01/09 11:36:58 I: ...............>misc::RunCommand (sCmdLine='"C:\Program Files\Altiris\Deployment\BDC\waik\Tools\amd64\servicing\dism" /image="C:\Users\Administrator\AppData\Local\Temp\3\~bootwiz\00001838\image" /Add-Package /PackagePath:"C:\Program Files\Altiris\Deployment\BDC\waik\Tools\PETools\amd64\WinPE_FPs\WINPE-WMI.cab"', bShow=0, bUsePIF=0, pProg, sDesc='WINPE-WMI', pdwExitCode)

2015/01/09 11:37:02 I: ...............<misc::RunCommand - returning 0 (BDC_SUCCESS)

2015/01/09 11:37:02 I: ..............-CPlatformWinPe2::WimInsertPackage - command '"C:\Program Files\Altiris\Deployment\BDC\waik\Tools\amd64\servicing\dism" /image="C:\Users\Administrator\AppData\Local\Temp\3\~bootwiz\00001838\image" /Add-Package /PackagePath:"C:\Program Files\Altiris\Deployment\BDC\waik\Tools\PETools\amd64\WinPE_FPs\WINPE-WMI.cab"' returned 0 (BDC_SUCCESS) with exitcode 0

2015/01/09 11:37:02 I: ..............<CPlatformWinPe2::WimInsertPackage - returning 0 (BDC_SUCCESS)

2015/01/09 11:37:02 I: .............     package 'WSH' = Required (1)

2015/01/09 11:37:02 I: ..............>CPlatformWinPe2::WimInsertPackage [Platform='WINPE4_X64'] (sPkgLongName='WINPE-SCRIPTING', sMountPath='C:\Users\ADMINI~1\AppData\Local\Temp\3\~bootwiz\00001838\image', sWorkingDir='', pProg)

2015/01/09 11:37:02 I: ...............>misc::RunCommand (sCmdLine='"C:\Program Files\Altiris\Deployment\BDC\waik\Tools\amd64\servicing\dism" /image="C:\Users\Administrator\AppData\Local\Temp\3\~bootwiz\00001838\image" /Add-Package /PackagePath:"C:\Program Files\Altiris\Deployment\BDC\waik\Tools\PETools\amd64\WinPE_FPs\WINPE-SCRIPTING.cab"', bShow=0, bUsePIF=0, pProg, sDesc='WINPE-SCRIPTING', pdwExitCode)

2015/01/09 11:37:04 I: ...............<misc::RunCommand - returning 0 (BDC_SUCCESS)

2015/01/09 11:37:04 I: ..............-CPlatformWinPe2::WimInsertPackage - command '"C:\Program Files\Altiris\Deployment\BDC\waik\Tools\amd64\servicing\dism" /image="C:\Users\Administrator\AppData\Local\Temp\3\~bootwiz\00001838\image" /Add-Package /PackagePath:"C:\Program Files\Altiris\Deployment\BDC\waik\Tools\PETools\amd64\WinPE_FPs\WINPE-SCRIPTING.cab"' returned 0 (BDC_SUCCESS) with exitcode 0

2015/01/09 11:37:04 I: ..............<CPlatformWinPe2::WimInsertPackage - returning 0 (BDC_SUCCESS)

Can anyone help me with a best practice guide or with his expirences with the WinPE?

I want to create the WinPE automated. I just want to modify the default.bdc for my use and then I can create the WinPe in the Symantec Management Console.

Thanks

Turl


Viewing all articles
Browse latest Browse all 7217

Trending Articles



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