• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
aviv00

[Guide] Win server 2008

195 posts in this topic

Has anyone had success preinstalling packages to Server 2008 R2, specifically DesktopExperience? Everything seems to work, no errors, but when I install the image to VMWare, Desktop Experience (and the other packages I preinstalled) isn't installed and it isn't even in the list of features. I did a search for wmplayer in the VMWare system and the files are in WinSxS so they are stored in the image. I'm using the new beta WAIK for Win 7 and 2008 Server R2.

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<servicing>
<package action="configure" permanence="permanent">
<assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="6.1.7000.0" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="" />
<selection name="WirelessNetworking" state="true" />
<selection name="InkSupport" state="true" />
<selection name="HandwritingRecognition" state="true" />
<selection name="DesktopExperience" state="true" />
<selection name="SearchEngine-Server-Package" state="true" />
<selection name="WindowsServerBackup" state="true" />
<selection name="WindowsServerBackupCommandlet" state="true" />
<selection name="NetFx3" state="true" />
</package>
</servicing>
<cpi:offlineImage cpi:source="wim:E:/server08/sources/install.wim#Windows 7 SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

0

Share this post


Link to post
Share on other sites

i used dism and preinstall first InkSupport and then desktop xp

0

Share this post


Link to post
Share on other sites
i used dism and preinstall first InkSupport and then desktop xp

I still use the pkgmgr commands which call dism. I assume it works the same way. What do you use to regenerate the catalog? Image manager or dism? I usually get an error when I load the wim into the Image Manager:

7134zp.jpg

and sometimes I don't, but the install still doesn't work. Desktop Experience wasn't installed and it wasn't in the list of available features.

I used the guide by 7bingo7 and the tool by wnuku and everything seemed to work fine with no reported errors. I did notice this in the logs however:

2009-01-14 23:40:10, Info				  CBS	Appl: detect Parent, Package: Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~amd64~en-US~6.1.7000.0, Parent: Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~amd64~~6.1.7000.0, Disposition = Detect, VersionComp: EQ, ServiceComp: GE, BuildComp: GE, DistributionComp: GE, RevisionComp: GE, Exist: present
2009-01-14 23:40:10, Info CBS Appl: detectParent: package: Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~amd64~en-US~6.1.7000.0, parent found: Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~amd64~~6.1.7000.0, state: Absent
2009-01-14 23:40:10, Info CBS Appl: detect Parent, Package: Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~amd64~en-US~6.1.7000.0, disposition state from detectParent: Absent
2009-01-14 23:40:10, Info CBS Appl: Evaluating package applicability for package Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~amd64~en-US~6.1.7000.0, applicable state: Absent
2009-01-14 23:40:10, Info CBS Plan: Skipping package since its start state and target state are both absent for package: Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~amd64~en-US~6.1.7000.0, current: Staged, pending: Staged, start: Absent, applicable: Absent, targeted: Absent, limit: Absent

There were "skipping package" entries for all the features i was trying to preinstall. :unsure:

I just managed to load the WIM into Image Manager again and I can't see any of my "preinstalled" features in the list of features. It's almost as if the "preinstalling" process is actually removing them.

0

Share this post


Link to post
Share on other sites

DISM.exe /Image:C:\work\wimmount /Enable-Feature /FeatureName:%1

echo %ERRORLEVEL% %ERRORLEVEL% %ERRORLEVEL% %ERRORLEVEL% %ERRORLEVEL% %ERRORLEVEL%

replace the %1 with the InkSupport and then desktop xp

dont use the old pkgmgr but u could use the old wimfilter to mount the wim file

Edited by aviv00
0

Share this post


Link to post
Share on other sites

With 2008 Server R2, I've noticed that if I use the Registry Tweak app posted by Wnuku, I can't install any features, and it appears to remove the features I'm trying to install.

eg. I run the tweak: install_wim_tweak.exe (with or without the /m option) on a fresh WIM

I run the install command: dism.exe /Image:e:\mount /Enable-Feature:WirelessNetworking /LogPath:install-log.txt

It gives me an error:

Deployment Image Servicing and Management tool
Version: 6.1.7000.0

Image Version: 6.1.7000.0

Enabling feature(s)
[==========================100.0%==========================]

Error: 0x800f080c

DISM failed. No operation was performed.For more information, review the log file.

I then run a get-featureinfo command: dism.exe /Image:e:\mount /Get-FeatureInfo:WirelessNetworking

and get the same error code [0x800f080c ( CBS_E_UNKNOWN_UPDATE named update not present in package )]:

Deployment Image Servicing and Management tool
Version: 6.1.7000.0

Image Version: 6.1.7000.0

Error: 0x800f080c

Feature name WirelessNetworking is unknown. A Windows feature name was not recognized.
Use the /Get-Features option to find the name of the feature in the image and try the command again.

It doesn't actually remove any files, just the name in the catalog.

If I install the features on a fresh WIM without running the tweak, everything installs fine, except for NetFx3 which won't pre-install under any circumstances. :angry:

After pre-installing the features I want, I save the image and run the tweak, which then allows me to remove packages.

0

Share this post


Link to post
Share on other sites

Is there any way to regenerate the catalog file without using the Image Manager? I have the 32 and 64bit versions installed on Vista 32 and 64 respectively and it usually fails with this error message. This is the new version with the new WAIK beta.

7134zp.jpg

The log created indicates it's a problem with the program, not the image.

20090115_3828.txt

0

Share this post


Link to post
Share on other sites

DISM.exe /Image:C:\work\wimmount /Enable-Feature /FeatureName:WirelessNetworking

echo %ERRORLEVEL% %ERRORLEVEL% %ERRORLEVEL% %ERRORLEVEL% %ERRORLEVEL% %ERRORLEVEL%

here the right cmd to enable feature

Edited by aviv00
0

Share this post


Link to post
Share on other sites

I noticed in the package list posted by7bingo7 that some of them have en-US versions as well. Is it necessary to remove both versions of the package? I notice in the Image Manager that the packages/features are duplicated in the language section so every package/feature probably has a en-US counterpart.

Microsoft-Windows-FileServer-Package~31bf3856ad364e35~amd64~en-US~6.1.7000.0
Microsoft-Windows-FileServer-Package~31bf3856ad364e35~amd64~~6.1.7000.0

Microsoft-Windows-WMI-SNMP-Provider-Package~31bf3856ad364e35~amd64~en-US~6.1.7000.0
Microsoft-Windows-WMI-SNMP-Provider-Package~31bf3856ad364e35~amd64~~6.1.7000.0

0

Share this post


Link to post
Share on other sites
DISM.exe /Image:C:\work\wimmount /Enable-Feature /FeatureName:WirelessNetworking

echo %ERRORLEVEL% %ERRORLEVEL% %ERRORLEVEL% %ERRORLEVEL% %ERRORLEVEL% %ERRORLEVEL%

here the right cmd to enable feature

It's the same thing, whether you use /FeatureName:WirelessNetworking or just /Enable-Feature:WirelessNetworking . The end result is that I get the Error: 0x800f080c and it's no longer visible in the image. Do you use the reg tweak before you enable features? I thought that was only necessary for removing features, not enabling them. The guide 7bingo7 posted said to apply the tweak before enabling packages, although that was for 2008 Server SP1, not R2.

Have you enabled the NetFx3 feature in R2 ?

BTW, why do you repeat the %ERRORLEVEL% 6 times? It will only have one value after an operation.

0

Share this post


Link to post
Share on other sites

here is my bat files

maybe u remove it by mistake?

use f.bat to see which feather is available

Work.rar

Edited by aviv00
0

Share this post


Link to post
Share on other sites

I'm definitely not removing it by mistake.

Applying the registry tweak on a fresh WIM of 2008 Server R2:

C:\Program Files\Windows AIK\Tools\x86\Servicing>install_wim_tweak /m
-------------------------------------------
------Pre-install registry Tweak Tool------
---------------for Windows 6.x-------------
-------------------------------------------
Type path to mounted install.wim :
e:\mount
Creating BKP of registry file... OK
Mounting registry file... OK
Enabilng taking ownership... OK
Editing 'Packages' subkeys 391/391 OK
Editing 'PackagesPending' subkeys 377/377OK
Modyfing registry completed sucessfully.
-------------------Ending------------------
Unmounting key... OK
Removing BKP file... OK

Get NetFx3 feature info

C:\Program Files\Windows AIK\Tools\x86\Servicing>dism.exe /Image:e:\mount /Get-FeatureInfo /FeatureName:NetFx3

Deployment Image Servicing and Management tool
Version: 6.1.7000.0

Image Version: 6.1.7000.0

Feature Information:

Feature Name : NetFx3
Display Name : Microsoft .NET Framework 3.5.1
Description : Microsoft .NET Framework 3.5.1
Restart Required : Possible
State : Disabled

The operation completed successfully.

Enable the feature:

C:\Program Files\Windows AIK\Tools\x86\Servicing>dism.exe /Image:e:\mount /Enable-Feature /FeatureName:NetFx3

Deployment Image Servicing and Management tool
Version: 6.1.7000.0

Image Version: 6.1.7000.0

Enabling feature(s)
[==========================100.0%==========================]

Error: 0x800f080c

DISM failed. No operation was performed.
For more information, review the log file.

No worky! :angry: Now if I get feature info...

C:\Program Files\Windows AIK\Tools\x86\Servicing>dism.exe /Image:e:\mount /Get-FeatureInfo /FeatureName:NetFx3

Deployment Image Servicing and Management tool
Version: 6.1.7000.0

Image Version: 6.1.7000.0


Error: 0x800f080c

Feature name NetFx3 is unknown.
A Windows feature name was not recognized.
Use the /Get-Features option to find the name of the feature in the image and try the command again.

Feature is unknown! This happens to other features as well, if the reg tweak is applied before enabling

...

A fresh WIM without applying the tweak

Get NetFx3feature Info:

C:\Program Files\Windows AIK\Tools\x86\Servicing>dism.exe /Image:e:\mount /Get-FeatureInfo /FeatureName:NetFx3

Deployment Image Servicing and Management tool
Version: 6.1.7000.0

Image Version: 6.1.7000.0

Feature Information:

Feature Name : NetFx3
Display Name : Microsoft .NET Framework 3.5.1
Description : Microsoft .NET Framework 3.5.1
Restart Required : Possible
State : Disabled

The operation completed successfully.

Enable the feature

C:\Program Files\Windows AIK\Tools\x86\Servicing>dism.exe /Image:e:\mount /Enable-Feature /FeatureName:NetFx3

Deployment Image Servicing and Management tool
Version: 6.1.7000.0

Image Version: 6.1.7000.0

Enabling feature(s)
[===========================98.8%========================= ]

Error: 1603

Fatal error during installation.

Error 1603. The feature is not removed, however. Other features like DesktopExperience install fine

Is anyone else using WAIK on 2008 Server R2 ???

Edit: If I use the /m option on the registry tweak (removing owner keys in packages pending), then it will remove netfx3 as well as the features listed in the post below. If i don't use the /m option, it will fail but the features will not be removed.

Edited by Grope For Luna
0

Share this post


Link to post
Share on other sites

I did a comparison of available features before and after attempting to enable NetFx3 (post registry tweak) and it actuallly removes the following features:

Feature Name : RightsManagementServices

Feature Name : RMS-Federation

Feature Name : RightsManagementServices-AdminTools

Feature Name : DirectoryServices-DomainController

Feature Name : DirectoryServices-AdministrativeCenter

Feature Name : DirectoryServices-ADAM

Feature Name : ActiveDirectory-PowerShell

Feature Name : NetFx3

Feature Name : WCF-HTTP-Activation

Feature Name : WCF-NonHTTP-Activation

Feature Name : CertificateServicesManagementTools

Feature Name : CertificateServices

Feature Name : WebEnrollmentServices

Feature Name : CertificateEnrollmentPolicyServer

Feature Name : CertificateEnrollmentServer

:blink:

0

Share this post


Link to post
Share on other sites

good point we should use the reg tweak after enabling

0

Share this post


Link to post
Share on other sites

The /m option seems to muck things up on R2 but if you don't use it you can't remove anything so it's kind of pointless. I'm going to try removing stuff from the installed system with dism.

Is there any point to removing packages from R2? Even if I remove a bunch of packages, my installation is about the same size as before. The WAIK tools don't really remove anything. The smallest I ever got my installation DVD was ~1.75GB. I tried to use peimg.exe /prep but that failed with an error. The best you can probably do is enable stuff that can be removed with Vlite like QWAVE, InkSupport/Handwritingrecognition, etc.

Edited by Grope For Luna
0

Share this post


Link to post
Share on other sites

I just did a VMWare install of Web Server 2008 R2 . I pre-enabled InkSupport, DesktopExperience, WindowsServerBackup and SearchEngine-Server-Package with DISM. After installing, I had to open Regedit, set the owner of the Packages key to Administrators (and give full permissions) and delete the Owner keys but all of the packages I wanted to remove uninstalled without a hitch. I also installed NetFx3 via DISM with no error. If you try to install NetFx3 via the Server Manager, it requires you to install a couple IIS roles but if you do it with DISM it will install without them.

0

Share this post


Link to post
Share on other sites
The /m option seems to muck things up on R2 but if you don't use it you can't remove anything so it's kind of pointless. I'm going to try removing stuff from the installed system with dism.

Is there any point to removing packages from R2? Even if I remove a bunch of packages, my installation is about the same size as before. The WAIK tools don't really remove anything. The smallest I ever got my installation DVD was ~1.75GB. I tried to use peimg.exe /prep but that failed with an error. The best you can probably do is enable stuff that can be removed with Vlite like QWAVE, InkSupport/Handwritingrecognition, etc.

same packages could be remove and save space now [like printers drivers]

but there are same another packages that after reset the installed os the packages will remove and the space will be saved

0

Share this post


Link to post
Share on other sites

Removing stuff with DISM on my live system doesn't appear to remove any files. I removed a bunch and my drive space usage has actually increased by 100MB. :angry:

Is there any way to prune old package files from winsxs?

EDIT: Never mind. I forgot I had to wait 20 minutes or so after the reboot for it to finish removing the files. I saved about a GB in disk space. My installation size is now about ~4GB actual disk usage (taking hard links into account.)

Edited by Grope For Luna
0

Share this post


Link to post
Share on other sites

My opinion there is a difference to remove packages with

1-) start /w pkgmgr.exe /o:%IMGMOUNT%;%IMGMOUNT%\Windows /up:Package

(/up is only uninstall package not removes totaly??)

and

2 start /w pkgmgr.exe /o:%IMGMOUNT%;%IMGMOUNT%\Windows /n:remove.xml

(remove.xml has "remove" and "permanent" options in it)

Is there difference or both does same things??

And i successfully did what i have read in this topic but everytime i uninstall a packet my pending.xml and winsxs folder getting bigger. When i finished winsxs was 2.7GB At setup windows tries to prosess pending.xml and setup takes very longer i think.

Edited by Kullenen_Ask
0

Share this post


Link to post
Share on other sites

This has got to be the worst and most poorly written tutorial on the net. Nothing written here makes any sense. :wacko:

0

Share this post


Link to post
Share on other sites

which .net u have Grope For Luna ?

0

Share this post


Link to post
Share on other sites
ok i add the file

here the bat file i use to run it

copycat it as u want

type Untitled.xml

start /w pkgmgr /o:E:\Work\WimMount;E:\Work\WimMount\Windows /n:Untitled.xml /l:log

echo %ERRORLEVEL%

btw use gimagex to mount the image [install.win] with write access and save it

then u done go to vlite and make ur iso :)

should be about 800mb and 2.7giga hdd space[use gimagex info to check]

GL

hi aviv00, is this the xml that i can use to install DesktopExperience unattendedly?

I have trying to install DesktopExperience and few other stuffs via xml unattendedly but found no way to do it yet.

Please help..

Basically an trying to preinstall DesktopExperience and few other features unattendedly via xml, but had no luck yet..

if u can please giude me through the right way..

thanks

Edited by shahed26
0

Share this post


Link to post
Share on other sites
type Untitled.xml

btw use gimagex to mount the image [install.win] with write access and save it

GL

were shall i save ur Untitled.xml to in install.wim?

edit:

This is my xml

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<servicing>
<package action="configure" permanence="permanent">
<assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="6.0.6001.18000" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="" />
<selection name="DesktopExperience" state="true" />
<selection name="BitLocker" state="true" />
<selection name="BitLocker-RemoteAdminTool" state="true" />
<selection name="NetFx3" state="true" />
<selection name="QWAVE" state="true" />
<selection name="WirelessNetworking" state="true" />
</package>
</servicing>
<cpi:offlineImage cpi:source="wim:c:/users/shahed%20hussain/desktop/server2008/sources/install.wim#Windows Longhorn SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

used this xml in vmware, but server still does not install these features... :unsure:

Edited by shahed26
0

Share this post


Link to post
Share on other sites
type Untitled.xml

btw use gimagex to mount the image [install.win] with write access and save it

GL

were shall i save ur Untitled.xml to in install.wim?

Edited

used this xml in vmware, but server still does not install these features... unsure.gif

u mean online ? online use ocsetup.exe then

hey shahed26

u talking about server 2008 ? not r2 right ?

which Untitled.xml u used ? mine is 32bit maybe ur os is 64bit

better make newer with waik

try use dism.exe its better and i think support win6 too [ then u wont need to use/install waik]

Edited by aviv00
0

Share this post


Link to post
Share on other sites

thanks aviv00 for your fast reply, am talking about server 2008, and yes its x64.

All i want is desktop experience and few other features to get installed when installin server 2008. I hate installing features after logon, or using the ServerManagerCmd.exe.

Thanks

edit: i used your untilted.xml from here

untitled.xml

Edited by shahed26
0

Share this post


Link to post
Share on other sites
thanks aviv00 for your fast reply, am talking about server 2008, and yes its x64.

All i want is desktop experience and few other features to get installed when installin server 2008. I hate installing features after logon, or using the ServerManagerCmd.exe.

Thanks

np

ur xml look ok which err u get ?

Edited by aviv00
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.