• 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

yea features sorry

there no reduntant files, the files inside the Windows and system32 folder are hardlinks to the files in the WinSxS folder

how u know that ?

Edited by aviv00
0

Share this post


Link to post
Share on other sites

Install this tool and view the properties of an windows file like explorer.exe

Those are the links for my explorer.exe:

C:\Windows\winsxs\x86_microsoft-windows-explorer_31bf3856ad364e35_6.0.6001.22256_none_520e37e392fd2f6f\explorer.exe
C:\Windows\explorer.exe

0

Share this post


Link to post
Share on other sites

Ok. This thread still does not make any sense.

1. Is WAIK done to the contents of a CD? Which is then burned and installed as a 'cleaned' system. Or done to an existing installation.

2. What is this hive stuff with the regedit? Hive what? There are alot of files in system32/config. Nothing specified.

3. Removing packages is still not clear. Is it done throguh command line? Windows SIM?

0

Share this post


Link to post
Share on other sites

which tool MagicAndre1981 ?

i see the size of the windows dir the

and the size on disk and they equl

@ brucevangeorge

3. u could remove it via waik or command line

waik is better im not sure about that

2.after mount the wim file go to system32\config dir in the mount dir and hive it to regedit

go to menu file > load hive , choose the software file

1. done to an existing installation.....

0

Share this post


Link to post
Share on other sites

What I understand so far:

1. Get the Install.wim from the 2008 disk.

2. Use ImageX commandline tool from WAIK, and mount it to a folder.

3. Use RedEdit and load the hive from [mount folder]\windows\system32\config "SOFTWARE.File" or "SOFTWARE" with no extension. Name the Hive something to keep track.

4. In the loaded hive, do a search for "Visibility". There are a bunch of packages registered that have "Visibility".

Now what? Changing the dword visibility does what?

Also, I notice there are the Component folders in the hive:

What can be done with those?

post-108167-1227217985_thumb.jpg

Edited by brucevangeorge
0

Share this post


Link to post
Share on other sites

Hello, everybody, I'd like to write a detailed guild of liting Longhorn (Server 2008) by using WAIK and vLite.

Firstly, I'd like to thank Aviv00 and other guys who's spent much time working on it.

And Please don't hesitate posing your problems encountered during the process of liting you Longhorn according to this guild.

Guide:

Phrase one - Preparation

1. Prepare the setup disk and mount it by your favourite virtual CD manager.

2. Extract contents of the setup disk to the SOURCE location for later use (eg, "E:\Longhorn").

3. Create and open your WORKDIR (eg, D:\Desktop\Longhorn) which contains some necessary tools (eg, "gimagex.exe", etc.).

4. Open the WAIKTOOL directory which contains "pkgmgr.exe" (eg, "E:\Windows AIK\Tools\x86\Servicing").

5. Open "Windows System Image Manager" and "Windows PE Tools Comand Prompt" (Optional) from the start menu.

6. Backup some files in %SOURCE% (located at "%SOURCE%\sources).

Original catelog files("*.clg", 4 at all)

(Optional, recommemded)Install image file "install.wim"

Phrase two - Pre-processing

1. Tweak the registry in "install.wim" to make all packages visible.

Mount "install.wim" (R/W) to IMGMOUNT directory (eg, "D:\Desktop\image") by gimageX.

Tweak the registry (%IMGMOUNT%\Windows\system32\config\SOFTWARE) to make all packages visible (See more later).

Replace the original "SOFTWARE" with your tweaked version.

Unmount "install.wim" with "Commit changes" enabled.

2. Make an answer file for pre-installing features only

(Optional, I've uploaded one, whose name is "addpackages.xml" in the attachment) .

Note:

- Make sure of the image index in the wim file, eg, index of ENTERPRISE version is 2

- DO NOT create an answer file which contains both pre-installing features options and removing packages options,

because it's very important to TAKE EVERY STEP SEPARATELY just like refactoring if you've got some ideas of it.

Phrase three - Pre-install necessary packages

1. Mount "install.wim" (R/W).

2. Copy files ("features.xml" and "addfeatures.cmd") to %WAIKTOOL%.

3. Edit "addfeatures.cmd" to set your IMGMOUNT directory.

4. Customize "features.xml" if you want to enable or disable more features.

5. Call "addfeatures.cmd" to start adding features to the image.

6. Commit changes to "install.wim" and unmount it.

Note:

Do NOT reverse the order of Phrase three and four, since it's neccessary to execute Phrase three first to rebuild "install.wim"

and it is the side effect of calling "pkgmgr.exe", or you will get ERRORS in Phrase four !

Phrase four - Remove packages:

1. Mount "install.wim" (R/W).

2. Copy files ("rmpkg.cmd", "process.cmd", and "packages.txt") to %WAIKTOOL%.

3. Edit "rmpkg.cmd" to set your IMGMOUNT directory.

4. Customize the "packages.txt" (list of packages to remove) to meet you requirements.

4. Call "rmpkg.cmd" to start removing packages from the image.

6. If ERROR occurs

PRESS Ctrl-C TO STOP !

Check the "log.txt" for detailed information

Unmount "install.wim" and DISCARD changes

Remount "install.wim" (R/W) and restart Phrase four (You can choose INTERACTIVE MODE by calling ("rmpackages /int") and save the changes constantly).

7. If successed, congratulations and commit changes to "install.wim" while unmounting it.

Phrase five - Regenerate catelog files:

1. Launch "Windows System Image Manager"

2. Select the install image file "%SOURCE%\sources\install.wim"

3. Choose the RIGHT version (ENTERPRISE in this guide) to start generating

And you can now see the packages reserved in visual mode.

Phrase six - Make "Autounattend.xml" for automatic setup (Optional)

1. Use "Windows System Image Manager" to create new answer file with saved name - "Autounattend.xml"

2. Do some customizations as your need

Phrase seven - vLite phrase

Go with "-extreme" enabled.

Tools uploaded: operations.zip

"addfeatures.cmd", "addfeatures.xml"

"rmpackages.cmd", "process.cmd", "process_int .cmd", "packages.txt"

Original full packages list for ENTERPRISE version : Packages_all_org.txt

Sample automatic setup file (Place it in both root dir and "/sources" dir) : Autounattend.xml

My choice of reserving packages:

SHOULD reserved:

Microsoft-Windows-Branding-SE-Server-Package

Microsoft-Windows-Foundation-Package

Microsoft-Windows-GroupPolicy-ClientExtensions-Package

Microsoft-Windows-GroupPolicy-ClientTools-Package

Microsoft-Windows-International-Core-Locale-NLS-Server2008-Package

Microsoft-Windows-Server-Drivers-Package

Microsoft-Windows-Server-Features-Package

Microsoft-Windows-Server-LanguagePack-Package

Microsoft-Windows-ServerCore-Drivers-Package

Microsoft-Windows-ServerStandardEdition

Microsoft-Windows-ServicingBaseline-ServerStandard-Package

Microsoft-Windows-WindowsFoundation-LanguagePack-Package

Additional packages recommended (help packaged for reserving "add features" functionality):

Microsoft-Windows-Help-Customization-Package

Server-Help-Package.ServerEnterprise

Microsoft-Windows-SearchEngine-Server-Package

Microsoft-Windows-ServerDesktopExperience

Microsoft-Windows-WirelessNetworking-Package

Edited by 7bingo7
0

Share this post


Link to post
Share on other sites

thx 7bingo7 i will add it to index

and im recommending to use web edition cos u have much less packages to remove

and already take less space :)

btw this work on vista too with another packages

@aviv00

*d'oh* I forgot to add the link:

Link Shell Extension (LSE)

thx i saw ur right

but how the size on the disk is not much less then the size ?

is there a tool to check it too ?

Edited by aviv00
0

Share this post


Link to post
Share on other sites

@7bingo7

I have a problem

I've followed your instruction,and reached Phrase seven , after installing it in vmware , the features weren't added

any help?

0

Share this post


Link to post
Share on other sites
@7bingo7

I have a problem

I've followed your instruction,and reached Phrase seven , after installing it in vmware , the features weren't added

any help?

@dumas

Thanks for your post, I''ve updated the "opetations.zip"

FIX(You might have to restart from Phrase three):

Please open "addfeatures.cmd" and change the IMGMOUNT variable to your prefered one.

0

Share this post


Link to post
Share on other sites

Thanks for retooling aviv00's guide. Its much easier to follow now.

So this also works on Server 2008 Web? Its got a slightly different arrangement.

Also, there is no gimagex. Its simply imagex.

Edited by brucevangeorge
0

Share this post


Link to post
Share on other sites

Google "gimagex" and install in same folder as imagex. It's a gui w/c makes using imagex easier.

Favor to 7bingo7: could you replace "PHrase" wit "Phase"? Makes it easier to comprehend ^^ Excellent work!

Based on your attached files, what's your iso size and installed disk space used?

0

Share this post


Link to post
Share on other sites

RE: Phase Two

Is the instruction tp remove the "Owner" directory still necessary?

0

Share this post


Link to post
Share on other sites
Tweak the registry (%IMGMOUNT%\Windows\system32\config\SOFTWARE) to make all packages visible (See more later).

Replace the original "SOFTWARE" with your tweaked version.

See more later.... :blink:

Needs to be clearer here.

Also, it would be great if you can include a list of tools (like gimagex) and download locations at the bottom.

0

Share this post


Link to post
Share on other sites

Hi, guys, thanks for your feedbacks and suggestions.

I'm just busy in hunting for jobs... tough time for fresh graduates this year.

Anyway, I'll find some time to perfect it.

Edited by 7bingo7
0

Share this post


Link to post
Share on other sites

7bingo7 about Phrase two - Pre-processing

u forgot to notice that in the regedit the owners key reg need to be able to remove them

cos then the system will always look for the owner and wont able to remove it

0

Share this post


Link to post
Share on other sites

Well that answered my question ^^ Now I get why you specified that. Thanks ^^

0

Share this post


Link to post
Share on other sites
7bingo7 about Phrase two - Pre-processing

u forgot to notice that in the regedit the owners key reg need to be able to remove them

cos then the system will always look for the owner and wont able to remove it

Owner's key? What does it do?

This was not mentioned before, I did a search on the forum for "owner's key".

0

Share this post


Link to post
Share on other sites

@weEvil

its mentioned here

http://www.msfn.org/board/index.php?showto...st&p=730473

those key folders need to be removed else the packages wont be removed

cos it package's owner wont let it

anyway im very recommending to use web edition of server 2008

its have much less packages to remove

and all the packages the user need for workstation is there

like desktop xp , and wirelessnetwork too and the tcp tweaked is should be

and iis :) ofc

Edited by aviv00
0

Share this post


Link to post
Share on other sites

Hi,

this topic was wery helpful for me, but after few tries i decided to little speed-up my experiments ;)

So i wrote a little script that enables all packages in windows\system32\config\SOFTWARE registry file by setting Visibility to 0x00000001 and removing "Owners" subdirectories. here it is :

download source code (C# .NET 2.0)

download binary Look for updated version here.

(both download files contains Win32Security library (in binary or source code form) for some native registry calls that are missing in managed .NET)

To use it just mount install.wim with imagex (or gimagex, whatever), run my app and type the path to the mounted install.wim (You can provide this path as a run parameter as well). I hope that my tool will be usefull for You ;)

Edited by wnuku
0

Share this post


Link to post
Share on other sites
Hi,

this topic was wery helpful for me, but after few tries i decided to little speed-up my experiments ;)

So i wrote a little script that enables all packages in windows\system32\config\SOFTWARE registry file by setting Visibility to 0x00000001 and removing "Owners" subdirectories. here it is :

download source code (C# .NET 2.0)

download binary

(both download files contains Win32Security library (in binary or source code form) for some native registry calls that are missing in managed .NET)

To use it just mount install.wim with imagex (or gimagex, whatever), run my app and type the path to the mounted install.wim (You can provide this path as a run parameter as well). I hope that my tool will be usefull for You ;)

Your effort is much appreciated. Havent used i yet but will do so for my next rebuild. Hope it works well.

0

Share this post


Link to post
Share on other sites

thx wnuku for gr8 tool

i tested server 7 and PackagesPending need to have owners clean too

could u update ur tool ?

shortcut for owner removal

export the regdir

rename the owner to xxxx using notepad

del the regdir from the hive

import back the reg file to hive

Edited by aviv00
0

Share this post


Link to post
Share on other sites

Hi,

ok, my tool has been updated ;) ( this update is relevant for those, who are planning to use it with command line scripts or with win7 (win6.1))

download source code

download binary

Sorry for long delay, but i was very busy (still i am :P). To clear owners of PackagesPending use '/m' switch with command args. Use '/?' for more info.

Any future suggestions are welcome ;)

Edited by wnuku
0

Share this post


Link to post
Share on other sites
Hi,

ok, my tool has been updated ;) ( this update is relevant for those, who are planning to use it with command line scripts or with win7 (win6.1))

download source code

download binary

Sorry for long delay, but i was very busy (still i am :P). To clear owners of PackagesPending use '/m' switch with command args. Use '/?' for more info.

Any future suggestions are welcome ;)

Thanks. Here's a direct link.

http://www.fileden.com/files/2008/9/20/210...ak_bin_v1.1.rar

0

Share this post


Link to post
Share on other sites

Edit: n/m I forgot to clear owners of PackagesPending.

Edited by Grope For Luna
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.