• 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.
b0r3d

Giving Your Windows Cosmetic Surgery

196 posts in this topic

bootcfg /RAW /A / Kernel=OEMKrnl.exe /ID 1

bootcft /Timeout 0

this should be

bootcfg /RAW "/Kernel=OEMKrnl.exe" /A /ID 1
bootcft /Timeout 0

thats what works on mine anyway. The original didn't work and gave an error

0

Share this post


Link to post
Share on other sites
bootcfg /RAW /A / Kernel=OEMKrnl.exe /ID 1

bootcft /Timeout 0

this should be

bootcfg /RAW "/Kernel=OEMKrnl.exe" /A /ID 1
bootcft /Timeout 0

thats what works on mine anyway. The original didn't work and gave an error

WOW! Finally figured out the problem here. I haven't been able to get this working all along.

Both you guys have a typo. In the second line, bootcft should be bootcfg

0

Share this post


Link to post
Share on other sites

this is true....lol

i'm trying to make a script to auto select the right kernel for dualpro and single

0

Share this post


Link to post
Share on other sites

good eye, i thought i was the only one that used that command.

-gosh

0

Share this post


Link to post
Share on other sites

Sorry if this ends up being a repost as I just got an error when I tried to post and refreshing the thread didn't display a new message...

Anyway, does anyone know a command I could use with bootcfg to add an entry to boot a logical drive? I'm using this guide to use the NT loader to boot Gentoo and I'm hoping I can avoid messing around with the MBR this way (which I'd have to do if I went with LILO or Grub).

0

Share this post


Link to post
Share on other sites

Ok, so LOGONUI.EXE controls the logon screen. It is in the SYSTEM32 folder. I've tried just putting my new one in the $$/SYSTEM32 folder, but it is protected by WFP. I guess this means I have to pull the DVD out at some point, but I hate that solution.

Any other fancy ideas? I know we have ways of hacking the uxtheme.dll to match the crc value, but that's just one file and there are tons of alternate logonui.exe files. (Guess I could just pick one and figure out how to hack it.......hmmmm.)

0

Share this post


Link to post
Share on other sites

you can disable the WFP temporarly !! instead of pulling the DVD :)

and add a batch after your logon gets copied to reactivate the WFP or not active it at all...

0

Share this post


Link to post
Share on other sites
you can disable the WFP temporarly !! instead of pulling the DVD :)

and add a batch after your logon gets copied to reactivate the WFP or not active it at all...

Ok, think I got it figured out.....I replaced the sfc.dl_ w/ the hacked version.

I also changed the following registry key:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

"SFCDisable"=dword:00000002

As I understand it, this will disable it at the next boot (when it usually replaces the file) and automatically enable it on the following boot (did this cuz I don't want other ppl screwing w/ system files later.)

Does this mean if the CD is put in at a later date, WFP will replace that file??

0

Share this post


Link to post
Share on other sites

first you need to get the patched sfc_os.dll

I patched mine but dunno if its working

the last setup I tried had so many errors so I quit installing

http://www.MSFN.org/board/index.php?showto...\.dll&st=0

I see your post over there:)

direct link to webmedic's sfc_os.dll http://www.webmedic.net/SFC_OS.DL_

and then follow this

http://www.winguides.com/registry/display.php?id=790

it also tells you how to patch it if you feel like hex editing:)

0

Share this post


Link to post
Share on other sites

Thx, I'll let you know how it turns out. In the middle of an install now....not sure that I'll burn another ISO and run another install tonight or not....already 1:30am.

0

Share this post


Link to post
Share on other sites
Simply modify the "UIHost" value in the registry under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon".

sample reg-file:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"UIHost"="C:\Windows\Resources\LogonUI\custom.exe"

0

Share this post


Link to post
Share on other sites

my bad, i was in a rush...

the post is fixed and quoted.

thnx DPR for pointing that out, not lookin to take credit from anyone.

anyway finished the script and posting here....help from unforgiven1 on the for command

FOR /F "tokens=3 delims=  " %%A IN ('REG QUERY "HKLM\SYSTEM\ControlSet001\Control\Session Manager\Environment" /v NUMBER_OF_PROCESSORS') DO SET NUMBER_OF_PROCESSORS=%%A

bootcfg /copy /D "Windows XP Professional" /ID 1
if %NUMBER_OF_PROCESSORS%==2 goto DUAL
REM ----For Single proc
bootcfg /RAW "/Kernel=OEMKrnl.exe" /A  /ID 2
goto End
:DUAL
REM ----For Multiprocess/Hyperthread proc
bootcfg /RAW "/Kernel=dualKrnl.exe" /A  /ID 2
:End
bootcfg /Timeout 2
bootcfg /Default /ID 2

put it in its seperate batch file, as anything after it won't be run. Call it from wherever, but jsut its own batch, or at the VERY end of one of your last ones

i put it in cmdlines.txt at the end of my user creation but whatever is good.

I make a copy of the initial boot line so incase it doens't work i still have the original to boot from without editing files anymore.

Enjoy

0

Share this post


Link to post
Share on other sites

Simply modify the "UIHost" value in the registry under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon".

sample reg-file:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

"UIHost"="C:\Windows\Resources\LogonUI\custom.exe"

Perfect! Thanks!

Yeah, very familiar w/ ThemeXP.org, but couldn't find that information....way too much to look through.

0

Share this post


Link to post
Share on other sites
thnx DPR for pointing that out, not lookin to take credit from

Never mind ! :)

Yeah, very familiar w/ ThemeXP.org, but couldn't find that information....way too much to look through.

The UIHost value isn't mentioned on "themexp.org". But you'll find a lot of helpful links and a forum on this page.

0

Share this post


Link to post
Share on other sites

Simply modify the "UIHost" value in the registry under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon".

sample reg-file:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

"UIHost"="C:\Windows\Resources\LogonUI\custom.exe"

For the life of me I can't get this to work as a reg file. Is it because I need to double the '\'?

IE:

Windows Registry Editor Version 5.00 

;This will set the LogonUI to an alternate
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"UIHost"="C:\\Windows\\Resources\\LogonUI\\logonui.exe"

0

Share this post


Link to post
Share on other sites
For the life of me I can't get this to work as a reg file.  Is it because I need to double the '\'?

Yes it's a typo - I simply was too lazy to export the reg key. We need of course "\\" instead of the single backslash ...

BTW: I recommend using a REG_EXPAND_SZ and path variables instead of absolute paths.

0

Share this post


Link to post
Share on other sites
For the life of me I can't get this to work as a reg file.  Is it because I need to double the '\'?

Yes it's a typo - I simply was too lazy to export the reg key. We need of course "\\" instead of the single backslash ...

BTW: I recommend using a REG_EXPAND_SZ and path variables instead of absolute paths.

I don't understand the REG_EXPAND_SZ thing.

I guess by path variable you mean:

"UIHost"="%systemdrive%\\Resources\\LogonUI\\custom.exe"

0

Share this post


Link to post
Share on other sites

Bored, you should add this to the gide on the first page. "How to customize the Logon screen"

0

Share this post


Link to post
Share on other sites

I just did a big update with the msgina.dll.

Ill give the logon a fiddle in the next few days, and put that on there too.

0

Share this post


Link to post
Share on other sites
I guess by path variable you mean:

"UIHost"="%systemdrive%\\Resources\\LogonUI\\custom.exe"

I think you mean "UIHost"="%WINDIR%\\Resources\\LogonUI\\custom.exe". But the problem is that the reg-files don't have a simple syntax for REG_EXPAND_SZ values. The above example would be ...

"UIHost"=hex(2):25,00,41,00,4c,00,4c,00,55,00,53,00,45,00,52,00,53,00,50,00,52,\

00,4f,00,46,00,49,00,4c,00,45,00,25,00,5c,00,44,00,6f,00,6b,00,75,00,6d,00,\

65,00,6e,00,74,00,65,00,5c,00,45,00,69,00,67,00,65,00,6e,00,65,00,20,00,42,\

00,69,00,6c,00,64,00,65,00,72,00,5c,00,4c,00,6f,00,67,00,6f,00,6e,00,20,00,\

53,00,63,00,72,00,65,00,65,00,6e,00,73,00,5c,00,64,00,65,00,5c,00,53,00,75,\

00,6e,00,73,00,65,00,74,00,20,00,43,00,61,00,76,00,65,00,73,00,2e,00,65,00,\

78,00,65,00,00,00

Let me quote the Platform SDK:

REG_EXPAND_SZ

Null-terminated string that contains unexpanded references to environment variables (for example, "%PATH%"). It will be a Unicode or ANSI string, depending on whether you use the Unicode or ANSI functions.

0

Share this post


Link to post
Share on other sites

or you could do this.....

;
; Version 2.0
;

[version]
signature = "$CHICAGO$"
Compatible = 1
AdvancedINF = 2.5,"You need a newer version of AdvPack.DLL!"
LayoutFile = layout.inf, layout1.inf, layout2.inf


[DefaultInstall]
AddReg  = Add

[Add]
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","UIHost",0x00020000,"%systemroot%\Resources\LogonUI\logonui.exe"

save as inf.

and then somewhere probally after your other reg commands add this....

"RunDll32.exe setupapi,InstallHinfSection DefaultInstall 128 %Path to INF%"

0

Share this post


Link to post
Share on other sites
or you could do this.....

;
; Version 2.0
;

[version]
signature = "$CHICAGO$"
Compatible = 1
AdvancedINF = 2.5,"You need a newer version of AdvPack.DLL!"
LayoutFile = layout.inf, layout1.inf, layout2.inf


[DefaultInstall]
AddReg  = Add

[Add]
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","UIHost",0x00020000,"%systemroot%\Resources\LogonUI\logonui.exe"

save as inf.

and then somewhere probally after your other reg commands add this....

"RunDll32.exe setupapi,InstallHinfSection DefaultInstall 128 %Path to INF%"

if i understand you correctly, i would for example copy logonui.exe to $OEM$\$$\Resources\LogonUI\ then create logon.inf in $OEM$\$1\install\logon\ with the text you have in the (CODE) tags, then in one of the [GUIRUNONCE] .cmd files i would put:

ECHO Installing custom logon screen
RunDll32.exe setupapi,InstallHinfSection DefaultInstall 128 %systemdrive%\install\logon\logon.inf

is that right? or do i need the quotes or a different path for that last line?

thanks a bunch :)

0

Share this post


Link to post
Share on other sites

All I am doing is the following and it works:

Place my alternate logonui.exe in $OEM$\$$\Resources\LogonUI\ .

Then I run the following during [GuiRunOnce]

Windows Registry Editor Version 5.00 

;Set LogonUI to alternate
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"UIHost"="C:\\Windows\\Resources\\LogonUI\\logonui.exe"

Since this works, can you tell me why I would want to change to either of the ways listed above?

0

Share this post


Link to post
Share on other sites

if you use the inf file....then you wouldn't have to even ponder if your Windows drive letter changes....

the inf allows the use of a variable path, while the reg file you're using only allows for static.

what if your drive for somereason became D: instead of C:?

it would work, but only if you $OEM$ folder has this structure

$OEM$

|- C

||- Windows\Resources\Logoniui

while the inf allows you to use

$OEM$

|- $$

||- Resources\Logoniui

without problems..

as for mots41, yes that SHOULD work.

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.