Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

[Guide] Win server 2008

- - - - -

  • Please log in to reply
194 replies to this topic

#126
aviv00

aviv00

    Windowaizer

  • Member
  • PipPipPipPipPip
  • 988 posts
  • Joined 02-April 07
  • OS:none specified
  • Country: Country Flag
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, 20 November 2008 - 08:47 AM.



How to remove advertisement from MSFN

#127
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,091 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

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

Posted Image

#128
weEvil

weEvil

    n00b

  • Member
  • PipPipPipPipPip
  • 944 posts
  • Joined 21-August 06
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?

If you like to waste money on junk, then buy a CREATIVE® product.


E8400 | P45 | HD4870


#129
aviv00

aviv00

    Windowaizer

  • Member
  • PipPipPipPipPip
  • 988 posts
  • Joined 02-April 07
  • OS:none specified
  • Country: Country Flag
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.....

#130
weEvil

weEvil

    n00b

  • Member
  • PipPipPipPipPip
  • 944 posts
  • Joined 21-August 06
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?

Attached Files

  • Attached File  Hive.jpg   183.1KB   62 downloads

Edited by brucevangeorge, 20 November 2008 - 03:53 PM.

If you like to waste money on junk, then buy a CREATIVE® product.


E8400 | P45 | HD4870


#131
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,091 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

@aviv00

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

Link Shell Extension (LSE)
Posted Image

#132
7bingo7

7bingo7
  • Member
  • 4 posts
  • Joined 16-November 08
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: Attached File  operations.zip   3.15KB   96 downloads
"addfeatures.cmd", "addfeatures.xml"
"rmpackages.cmd", "process.cmd", "process_int .cmd", "packages.txt"

Original full packages list for ENTERPRISE version : Attached File  Packages_all_org.txt   68.05KB   62 downloads

Sample automatic setup file (Place it in both root dir and "/sources" dir) : Attached File  Autounattend.xml   5KB   62 downloads

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, 23 November 2008 - 05:09 AM.

Eyes on you.

#133
aviv00

aviv00

    Windowaizer

  • Member
  • PipPipPipPipPip
  • 988 posts
  • Joined 02-April 07
  • OS:none specified
  • Country: Country Flag
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, 22 November 2008 - 11:28 AM.


#134
dumas

dumas
  • Member
  • 2 posts
  • Joined 11-September 08
@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?

#135
7bingo7

7bingo7
  • Member
  • 4 posts
  • Joined 16-November 08

@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.
Eyes on you.

#136
weEvil

weEvil

    n00b

  • Member
  • PipPipPipPipPip
  • 944 posts
  • Joined 21-August 06
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, 23 November 2008 - 12:19 PM.

If you like to waste money on junk, then buy a CREATIVE® product.


E8400 | P45 | HD4870


#137
romanian

romanian

    Newbie

  • Member
  • 21 posts
  • Joined 16-November 08
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?

#138
romanian

romanian

    Newbie

  • Member
  • 21 posts
  • Joined 16-November 08
RE: Phase Two

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

#139
weEvil

weEvil

    n00b

  • Member
  • PipPipPipPipPip
  • 944 posts
  • Joined 21-August 06

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.

If you like to waste money on junk, then buy a CREATIVE® product.


E8400 | P45 | HD4870


#140
7bingo7

7bingo7
  • Member
  • 4 posts
  • Joined 16-November 08
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, 25 November 2008 - 01:35 PM.

Eyes on you.

#141
aviv00

aviv00

    Windowaizer

  • Member
  • PipPipPipPipPip
  • 988 posts
  • Joined 02-April 07
  • OS:none specified
  • Country: Country Flag
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

#142
romanian

romanian

    Newbie

  • Member
  • 21 posts
  • Joined 16-November 08
Well that answered my question ^^ Now I get why you specified that. Thanks ^^

#143
weEvil

weEvil

    n00b

  • Member
  • PipPipPipPipPip
  • 944 posts
  • Joined 21-August 06

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

If you like to waste money on junk, then buy a CREATIVE® product.


E8400 | P45 | HD4870


#144
aviv00

aviv00

    Windowaizer

  • Member
  • PipPipPipPipPip
  • 988 posts
  • Joined 02-April 07
  • OS:none specified
  • Country: Country Flag
@weEvil
its mentioned here
http://www.msfn.org/...o...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, 29 November 2008 - 09:57 AM.


#145
wnuku

wnuku
  • Member
  • 9 posts
  • Joined 04-August 07
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, 08 January 2009 - 03:20 PM.


#146
romanian

romanian

    Newbie

  • Member
  • 21 posts
  • Joined 16-November 08

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.

#147
aviv00

aviv00

    Windowaizer

  • Member
  • PipPipPipPipPip
  • 988 posts
  • Joined 02-April 07
  • OS:none specified
  • Country: Country Flag
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, 08 January 2009 - 03:29 AM.


#148
wnuku

wnuku
  • Member
  • 9 posts
  • Joined 04-August 07
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, 08 January 2009 - 03:31 PM.


#149
Grope For Luna

Grope For Luna

    Junior

  • Member
  • Pip
  • 93 posts
  • Joined 06-April 06

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.c...ak_bin_v1.1.rar

#150
Grope For Luna

Grope For Luna

    Junior

  • Member
  • Pip
  • 93 posts
  • Joined 06-April 06
Edit: n/m I forgot to clear owners of PackagesPending.

Edited by Grope For Luna, 12 January 2009 - 10:24 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users