MSFN Forum: [Guide] Win server 2008 - MSFN Forum

Jump to content


vLite Forum Rules

If you are having issues with Windows after removing components and have come to ask for help, please attach (not paste) your Last Session.ini file to your post to facilitate quicker assistance.
  • 10 Pages +
  • « First
  • 7
  • 8
  • 9
  • 10
  • You cannot start a new topic
  • You cannot reply to this topic

[Guide] Win server 2008 How To Bulid up ur OS, Check post #1 for more info Rate Topic: -----

#161 User is offline   Grope For Luna 

  • Junior
  • Pip
  • Group: Members
  • Posts: 91
  • Joined: 06-April 06

Posted 19 January 2009 - 03:34 AM

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.

This post has been edited by Grope For Luna: 20 January 2009 - 12:54 AM



#162 User is offline   Grope For Luna 

  • Junior
  • Pip
  • Group: Members
  • Posts: 91
  • Joined: 06-April 06

Posted 19 January 2009 - 09:36 PM

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:

#163 User is offline   aviv00 

  • Windowaizer
  • PipPipPipPipPip
  • Group: Members
  • Posts: 939
  • Joined: 02-April 07

Posted 20 January 2009 - 09:41 AM

good point we should use the reg tweak after enabling

#164 User is offline   Grope For Luna 

  • Junior
  • Pip
  • Group: Members
  • Posts: 91
  • Joined: 06-April 06

Posted 20 January 2009 - 01:47 PM

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.

This post has been edited by Grope For Luna: 20 January 2009 - 01:48 PM


#165 User is offline   Grope For Luna 

  • Junior
  • Pip
  • Group: Members
  • Posts: 91
  • Joined: 06-April 06

Posted 20 January 2009 - 09:25 PM

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.

#166 User is offline   aviv00 

  • Windowaizer
  • PipPipPipPipPip
  • Group: Members
  • Posts: 939
  • Joined: 02-April 07

Posted 21 January 2009 - 10:25 AM

View PostGrope For Luna, on Jan 20 2009, 02:47 PM, said:

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

#167 User is offline   Grope For Luna 

  • Junior
  • Pip
  • Group: Members
  • Posts: 91
  • Joined: 06-April 06

Posted 23 January 2009 - 02:06 PM

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.)

This post has been edited by Grope For Luna: 23 January 2009 - 02:45 PM


#168 User is offline   Kullenen_Ask 

  • Member
  • PipPip
  • Group: Members
  • Posts: 295
  • Joined: 10-September 04
  • OS:XP Pro x86
  • Country: Country Flag

Posted 25 January 2009 - 07:22 AM

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.

This post has been edited by Kullenen_Ask: 25 January 2009 - 05:57 PM


#169 User is offline   anarchron 

  • Group: Members
  • Posts: 1
  • Joined: 23-February 09

Posted 23 February 2009 - 07:02 AM

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

#170 User is offline   aviv00 

  • Windowaizer
  • PipPipPipPipPip
  • Group: Members
  • Posts: 939
  • Joined: 02-April 07

Posted 23 February 2009 - 08:05 AM

which .net u have Grope For Luna ?

#171 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 23 February 2009 - 11:36 AM

View Postaviv00, on Jan 16 2008, 10:08 PM, said:

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

This post has been edited by shahed26: 23 February 2009 - 11:42 AM


#172 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 23 February 2009 - 01:54 PM

View Postaviv00, on Jan 16 2008, 10:08 PM, said:

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:

This post has been edited by shahed26: 23 February 2009 - 02:34 PM


#173 User is offline   aviv00 

  • Windowaizer
  • PipPipPipPipPip
  • Group: Members
  • Posts: 939
  • Joined: 02-April 07

Posted 23 February 2009 - 02:34 PM

View Postshahed26, on Feb 23 2009, 02:54 PM, said:

View Postaviv00, on Jan 16 2008, 10:08 PM, said:

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]

This post has been edited by aviv00: 23 February 2009 - 02:37 PM


#174 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 23 February 2009 - 02:37 PM

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

This post has been edited by shahed26: 23 February 2009 - 02:41 PM


#175 User is offline   aviv00 

  • Windowaizer
  • PipPipPipPipPip
  • Group: Members
  • Posts: 939
  • Joined: 02-April 07

Posted 23 February 2009 - 02:40 PM

View Postshahed26, on Feb 23 2009, 03:37 PM, said:

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 ?

This post has been edited by aviv00: 23 February 2009 - 02:40 PM


#176 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 23 February 2009 - 02:43 PM

am not getting any errors, just tried using my xml i made now (used WAIK), but my dekstop experience and other stuffs does not get installed. btw i used vmware to test.

#177 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 23 February 2009 - 04:12 PM

thanks aviv00 for your help, i got it working finally.

Thank you

#178 User is offline   dead0 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 488
  • Joined: 29-October 06
  • OS:none specified
  • Country: Country Flag

Posted 16 May 2009 - 07:21 AM

if anyone is still interested, i will post another guide to vliting your server 2008 sp2 web or standard x86. i have managed to get the iso down to 625mb for web & 680mb for standard with the add features in server manager still intact. after install, hard drive space consumed is about 3gb.

#179 User is offline   dead0 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 488
  • Joined: 29-October 06
  • OS:none specified
  • Country: Country Flag

  Posted 16 May 2009 - 11:04 AM

tools required: WAIK 1.1, gimagex (optional), vlite 1.2
all must be installed!
nb. this method has been tested on windows server 2003 & vmware.


Windows Web Server
Stage 1:

1) create 2 folders such as c:\s1 & c:\s2
2) copy the contents of Web disc to s1
3) mount install.wim (image 1) to s2 folder using gimagex or imagex
4) run install_wim_tweak.exe with c:\s2 as the folder selected to take ownership of reg hive, created by & credit to BM wnuku
5) commit changes & unmount

Stage 2:

1) first download this: credit to 7bingo7
2) copy or extract contents to the Tools\Servicing folder of the Windows AIK directory
3) mount install.wim (image 1) to s2 folder using gimagex or imagex
4) run addfeatures.cmd (which has s2 folder already selected). this will add bitlocker, desktop experience, netfx 3 & wireless networking
5) once done, result should show as 0, commit changes & unmount

Stage 3:

1) mount install.wim (image 1) to s2 folder using gimagex or imagex
2) this time run rmpackages.cmd which will remove most packages (see packages.txt for details), again this file is linked to the s2 folder
3) once completed, again make sure the result is 0, commit changes & unmount

as you've probably noticed by now, there is still no use of WSIM to rebuild the catalog...do not do this.

Stage 4:

1) start vlite with the -extreme switch
2) use my last session ini file
3) this step you need to do very quickly while vlite is doing its thing: copy the winsxs.bat file from the server2008web zip file to your vlite temp directory which is normally vstemp19?, go to windows\winsxs\backup folder, paste, run the bat file & then delete; this will nullify some of the large files in the folder
4) once vlite finishes, iso size should be around 625mb & install size less than 3gb or thereabouts, test in vmware.

Windows Server Standard

for server standard, do the same as above but from stage 2 onwards, use the files from here:

for vlite stage use this last session ini:

credit to aviv00 for original concept

This post has been edited by dead0: 17 May 2009 - 08:36 AM


#180 User is offline   dead0 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 488
  • Joined: 29-October 06
  • OS:none specified
  • Country: Country Flag

Posted 16 May 2009 - 11:07 AM

ps. with web server branding package has been removed but you can delete it from the packages.txt file to keep the server branding. also, in the last session ini, remove the driver integration unless u have that driver to integrate?

This post has been edited by dead0: 17 May 2009 - 05:01 AM


Share this topic:


  • 10 Pages +
  • « First
  • 7
  • 8
  • 9
  • 10
  • You cannot start a new topic
  • You cannot reply to this topic

4 User(s) are reading this topic
0 members, 4 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy