Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Replace Imageres.dll across the domain to customize logon screen.

Posted on 2010-09-11
3
Medium Priority
?
727 Views
Last Modified: 2012-05-10
I've tried to utilize group policy to replace the following file C:\windows\system32\imageres.dll with the one we have customized for our organization. Which works when we manually place the new file in the listed location. However, it is not my intentions to touch ever machine on our network. It seems I'm running into issues because this file is a protected file and cannot be changed through GPO. Does anyone know how I can get around this or a utility I can use to push this change to all computers in a S2K3 domain?
0
Comment
Question by:Dan-Hanley
  • 2
3 Comments
 
LVL 66

Expert Comment

by:johnb6767
ID: 33658503
You can try a script to copy it to the remote systems, but before it is copied, delete the copy from c:\windows\system32\dllcache.....

Or even better, copy it there first, and then make the copy.....  

Sometimes you can trick Windows File Protection.......

The DLLCache folder is where WFP stores the good copies of the Protected files. So if you delete/replace that one, then you wont have it revert back to the original one.....
0
 

Author Comment

by:Dan-Hanley
ID: 33658695
John,

         That's true and had we been on XP probably would work, but we are currently running Vista Enterprise and I believe that the DLL Cache folder does not exist. I believe that vista uses a set of ACL's that prevent files not to be written unless they are ran by the "TrustedInstaller" account. However, I am stumped and don't know how else to get around this. I've gone as far as to create my own MSI package to replace the file and leave me a log file to let me know it has ran, but still no luck. I guess even letting the system rights run the package wasn't enough. Well thanks for the reply hopefully you have some idea's because im just about out of them.
0
 

Accepted Solution

by:
Dan-Hanley earned 0 total points
ID: 33667031
Okay, so I've solved my own problem... I still went with creating a MSI package, but this time I gave my package a .manifest file which elevated the install to require admin rights, but this alone did not make my package work correctly. I had to figure out what registry key did file name modifications and drop the file i wanted to changed into the system32 folder. The MSI package deletes the original file, places the custom imageres.dll and adds a registry key to rename the custom file to imageres.dll after this is done it requires a reboot and the changes should appear upon reboot.

Create a multi-string value in the following location.[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager]
"PendingFileRenameOperations"

Value
\??\C:\Windows\System32\Customimageres.dll
!\??\C:\Windows\System32\imageres.dll

The MSI packager I used was  a freeware: EMCO
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Service applet starts in Extended Mode by Default, with a taskpad on the left of the services pane. This view mode was introduced in XP. As I find it not very usefull, I like to use the Standard view as default, and without the Console tree. …
There are many reasons a PC runs slower than when it was new, ranging from malicious software intended to mess things up to simple general Windows use.  Your PC performance may slowly degrade over time without you noticing but when you buy a PC from…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question