Jump to content


Photo

[Solved] WIM Registry Editor problem...


  • Please log in to reply
28 replies to this topic

#1 alfreire

alfreire

    WinCert Friend

  • Basic Sponsor
  • 143 posts
  • Location:Spain
  • OS:Windows 7 x64

Posted 09 March 2012 - 06:29 PM

Hello... when I import this reg file in WIM Registry Editor:

Windows Registry Editor Version 5.00

;Disable User Account Control ( UAC )
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000000
"ConsentPromptBehaviorUser"=dword:00000000
"EnableInstallerDetection"=dword:00000000
"EnableLUA"=dword:00000000
"EnableUIADesktopToggle"=dword:00000000
"EnableSecureUIAPaths"=dword:00000000
"PromptOnSecureDesktop"=dword:00000000
"ValidateAdminCodeSignatures"=dword:00000000
"FilterAdministratorToken"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center]
"UacDisableNotify"=dword:00000001

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell]
@="none"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr]
@="Administrador de Dispositivos"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\command]
@="mmc /s devmgmt.msc"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DiskMgmt]
@="Administrador de Discos"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DiskMgmt\command]
@="mmc /s diskmgmt.msc"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Add/Remove Programs]
@="Desinstalar Programas"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Add/Remove Programs\command]
@="control appwiz.cpl"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell]
@="none"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Windows Update]
"Icon"=hex(2):77,00,75,00,63,00,6c,00,74,00,75,00,78,00,2e,00,64,00,6c,00,6c,\
00,00,00

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Windows Update\command]
@="wuapp.exe"

[HKEY_CURRENT_USER\Software\Microsoft\CTF\LangBar]
"ShowStatus"=dword:00000003

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Abrir CMD aquí"

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""

the key for disable Language Bar not import to registry...

[HKEY_CURRENT_USER\Software\Microsoft\CTF\LangBar]
"ShowStatus"=dword:00000003

When Windows is totally instaled and I edit registry, Langbar key not exist...

Sorry for my bad english...
Regards... ;-)

#2 Legolash2o

Legolash2o

    Win Toolkit Programmer

  • Global Mods
  • 4,068 posts
  • Location:Hull, UK.

Posted 09 March 2012 - 07:16 PM

Yeah, this issue has been around for some time, i don't know what causes it. It seems to get reset after Windows installation.

#3 Kelsenellenelvian

Kelsenellenelvian

    Master of my domain!

  • Global Mods
  • 2,801 posts
  • Location:U.S.A.
  • OS:Windows 7 x64

Posted 09 March 2012 - 07:56 PM

HKEY_CURRENT_USER <--- HKCU is most likely the issue as that key doesnt get full populated untill after first logon...

#4 Legolash2o

Legolash2o

    Win Toolkit Programmer

  • Global Mods
  • 4,068 posts
  • Location:Hull, UK.

Posted 09 March 2012 - 09:23 PM

The HKEY_CURRENT_USER get gets converted to HKEY_USERS\.Default

#5 alfreire

alfreire

    WinCert Friend

  • Basic Sponsor
  • 143 posts
  • Location:Spain
  • OS:Windows 7 x64

Posted 09 March 2012 - 09:25 PM

Yeah, this issue has been around for some time, i don't know what causes it. It seems to get reset after Windows installation.

HKEY_CURRENT_USER <--- HKCU is most likely the issue as that key doesnt get full populated untill after first logon...

Thank you... I'll try to add reg key through WPI...
Regards... ;-)

#6 alfreire

alfreire

    WinCert Friend

  • Basic Sponsor
  • 143 posts
  • Location:Spain
  • OS:Windows 7 x64

Posted 09 March 2012 - 09:27 PM

The HKEY_CURRENT_USER get gets converted to HKEY_USERS\.Default

Any solution...?

#7 Legolash2o

Legolash2o

    Win Toolkit Programmer

  • Global Mods
  • 4,068 posts
  • Location:Hull, UK.

Posted 09 March 2012 - 11:03 PM

in v103 i've updated my code to unregister a dll in the runonce key. Haven't tested if it works yet though...


"HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce", "Remove LangBar", "Regsvr32.exe /s /u msutb.dll", RegistryValueKind.String

Edited by Legolash2o, 09 March 2012 - 11:04 PM.


#8 alfreire

alfreire

    WinCert Friend

  • Basic Sponsor
  • 143 posts
  • Location:Spain
  • OS:Windows 7 x64

Posted 09 March 2012 - 11:16 PM

in v103 i've updated my code to unregister a dll in the runonce key. Haven't tested if it works yet though...


"HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce", "Remove LangBar", "Regsvr32.exe /s /u msutb.dll", RegistryValueKind.String

I will try it and notify to you... :beerchug:
Thank's and regards... ;-)

#9 Legolash2o

Legolash2o

    Win Toolkit Programmer

  • Global Mods
  • 4,068 posts
  • Location:Hull, UK.

Posted 09 March 2012 - 11:21 PM

thanks, good luck! :)

#10 alfreire

alfreire

    WinCert Friend

  • Basic Sponsor
  • 143 posts
  • Location:Spain
  • OS:Windows 7 x64

Posted 13 March 2012 - 09:36 AM

Hello again... I have another problem, I created a DisableLangBar.cmd with the following code
REG ADD "HKCU\Software\Microsoft\CTF\LangBar" /v ShowStatus /t REG_DWORD /d 3 /f
does not get it to work, if I run from the console command works, but if I run the DisableLangBar.cmd not... Any ideas...?
Regards... ;-)

#11 bphlpt

bphlpt

    Wincert Addict

  • Global Mods
  • 762 posts
  • OS:Windows 7 x64

Posted 13 March 2012 - 11:06 AM

When do you try to run the DisableLangBar.cmd that it does not work? At install, on a live system, anytime, or ...?

Cheers and Regards

#12 alfreire

alfreire

    WinCert Friend

  • Basic Sponsor
  • 143 posts
  • Location:Spain
  • OS:Windows 7 x64

Posted 13 March 2012 - 11:17 AM

When do you try to run the DisableLangBar.cmd that it does not work? At install, on a live system, anytime, or ...?

Cheers and Regards

I run DisableLangBar.cmd in a complete install system Windows 7 Pro x64 SP1...
Tnahk you... ;-)

Edited by alfreire, 13 March 2012 - 11:18 AM.


#13 alfreire

alfreire

    WinCert Friend

  • Basic Sponsor
  • 143 posts
  • Location:Spain
  • OS:Windows 7 x64

Posted 13 March 2012 - 11:29 AM

Can I run code from Autounattend.xml...?
<SynchronousCommand wcm:action="add">
	<CommandLine>cmd /q /c REG ADD "HKCU\Software\Microsoft\CTF\LangBar" /v ShowStatus /t REG_DWORD /d 3 /f</CommandLine>
	<Description>Disable LangBar</Description>
	<Order>2</Order>
	<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>																																	

Edited by alfreire, 13 March 2012 - 11:29 AM.


#14 bphlpt

bphlpt

    Wincert Addict

  • Global Mods
  • 762 posts
  • OS:Windows 7 x64

Posted 13 March 2012 - 12:36 PM

I run DisableLangBar.cmd in a complete install system Windows 7 Pro x64 SP1...
Tnahk you... ;-)


The reason I asked is that this will NOT work during the OS install if it is run too early, since "Current User" - (HKCU) - will not exist at that point as Kel pointed out. So it will not work in Autounattend.xml for the same reason. But I might have misunderstood you. It should work if you run the DisableLangBar.cmd AFTER first log on, using WPI for example. Of course you'll have to run this for each user you want it to apply to.

Cheers and Regards

Edited by bphlpt, 13 March 2012 - 12:38 PM.


#15 Legolash2o

Legolash2o

    Win Toolkit Programmer

  • Global Mods
  • 4,068 posts
  • Location:Hull, UK.

Posted 13 March 2012 - 12:46 PM

Make it run at HKCU\\Software\Windows\CurrentVersion\RunOnce, worth a try.

#16 alfreire

alfreire

    WinCert Friend

  • Basic Sponsor
  • 143 posts
  • Location:Spain
  • OS:Windows 7 x64

Posted 13 March 2012 - 01:46 PM

The reason I asked is that this will NOT work during the OS install if it is run too early, since "Current User" - (HKCU) - will not exist at that point as Kel pointed out. So it will not work in Autounattend.xml for the same reason. But I might have misunderstood you. It should work if you run the DisableLangBar.cmd AFTER first log on, using WPI for example. Of course you'll have to run this for each user you want it to apply to.

Cheers and Regards


Ok, thank you... :beerchug:

Make it run at HKCU\\Software\Windows\CurrentVersion\RunOnce, worth a try.

Ok, I promise you try it... how I run
"HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce", "Remove LangBar", "Regsvr32.exe /s /u msutb.dll", RegistryValueKind.String...?
From Auntounattend.xml, *.cmd, $OEM$ folder...???
Thank you again... ;-)

#17 alfreire

alfreire

    WinCert Friend

  • Basic Sponsor
  • 143 posts
  • Location:Spain
  • OS:Windows 7 x64

Posted 13 March 2012 - 02:08 PM

Is this ok...?

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"DisableLangBar"="Regsvr32.exe /s /u msutb.dll"



#18 bphlpt

bphlpt

    Wincert Addict

  • Global Mods
  • 762 posts
  • OS:Windows 7 x64

Posted 13 March 2012 - 04:53 PM

Hello again... I have another problem, I created a DisableLangBar.cmd with the following code
REG ADD "HKCU\Software\Microsoft\CTF\LangBar" /v ShowStatus /t REG_DWORD /d 3 /f
does not get it to work, if I run from the console command works, but if I run the DisableLangBar.cmd not... Any ideas...?
Regards... ;-)


Since you say this DisableLangBar.cmd runs correctly as you show it when run from the command line, then leave it exactly like it is and run it with WPI. HKCU exists when WPI runs so it should work just fine. But you can try any other method you like. If you find one that works for you, then please post it so others will know a method you have verified that works.

Cheers and Regards

#19 alfreire

alfreire

    WinCert Friend

  • Basic Sponsor
  • 143 posts
  • Location:Spain
  • OS:Windows 7 x64

Posted 13 March 2012 - 10:06 PM

in v103 i've updated my code to unregister a dll in the runonce key. Haven't tested if it works yet though...


*"HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce", "Remove LangBar", "Regsvr32.exe /s /u msutb.dll", RegistryValueKind.String


Since you say this DisableLangBar.cmd runs correctly as you show it when run from the command line, then leave it exactly like it is and run it with WPI. HKCU exists when WPI runs so it should work just fine. But you can try any other method you like. If you find one that works for you, then please post it so others will know a method you have verified that works.

Cheers and Regards

Well, well... I want try *Legolash2o method to help, but I don't know how... I guess the other methods that work...
Thank you very much, friend... ;-)

Edited by alfreire, 13 March 2012 - 10:10 PM.


#20 alfreire

alfreire

    WinCert Friend

  • Basic Sponsor
  • 143 posts
  • Location:Spain
  • OS:Windows 7 x64

Posted 15 March 2012 - 09:34 AM

[HKEY_CURRENT_USER\Software\Microsoft\CTF\LangBar]
"ShowStatus"=dword:00000003

Well... I try DisableLangBar.reg through WPI, and work perfect... The Legolash2o method I don't know how to test it...
Thanks and sorry if I bothered...
Regards... ;-)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users