From the microsoft technet forums and from terry Downing.
How to Delete/Change a System File in Windows Vista (and fix nlasvc.dll)
http://www.howtogeek...-windows-vista/Warning: Do not delete system files. Bad things will probably ensue.
If you need to delete or overwrite a system file in Windows Vista, you'll quickly notice that you cannot delete system files, even as administrator. This is because Windows Vista's system files are owned by the TrustedInstaller service by default, and Windows File Protection will keep them from being overwritten.
Thankfully, there's a way that you can get around this. You need to take ownership of the files, and then assign yourself rights to delete or modify the file. For this, we'll use the command line.
Open an administrator command prompt by typing cmd into the start menu search box, and hit the Ctrl+Shift+Enter key combination.
To take ownership of the file, you'll need to use the takeown command. Here's an example:
takeown /f C:\Windows\System32\nlasvc.dll
That will give you ownership of the file, but you still have no rights to delete it. Now you can run the cacls command to give yourself full control rights to the file:
cacls C:\Windows\System32\nlasvc.dll /G your username:F
At this point, you should be able to delete the file. If you still can't do so, you may need to reboot into Safe Mode and try it again. For the filename in the example, I was able to overwrite it without safe mode, but your mileage may vary.
Oncethe file has been replace you should set the permissions back but…
TrustedInstaller does not exist in the "visible" users and groups as it runs as an NT Service so to restore:
Right mouse button click on the file and choose Properties
Click Security tab
Click Advanced button
Click Owner tab
Click Edit button
Click Other User or Group and type in NT SERVICE\TrustedInstaller
Press Ok on all dialogs until all property dialogs are closed
Kind regards
Terry Downing MBCS CITP MIoD
SRX660