?
Solved

File Removal At Restart

Posted on 2008-06-11
6
Medium Priority
?
269 Views
Last Modified: 2010-03-05
Does Microsoft provide functionality to perform an action before the next time Windows restarts?

I had written some installation programs quite some time ago, and I believe there was an INI file that could be used to write file deletion instructions for files currently locked by another process or the OS.  I believe this functionality was implemented in NT 4, and may have been removed.  

I believe that this functionality may have been exploited by the Dark Side, and removed from Windows.
0
Comment
Question by:mjs082969
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 5

Accepted Solution

by:
DanoliSolutions earned 180 total points
ID: 21763998
Have you tried using the autoexec.bat file? This executes before the GUI.
0
 
LVL 3

Assisted Solution

by:gs121
gs121 earned 164 total points
ID: 21764090
Autoexec.bat is probably the best way.

If the computer is in an AD Domain.....
I have used, if your using AD, the computer logon script, group policy.
The computer logon script runs everytime the computer boots up.
If you are in a AD policy and want to run it on computers in the domain,then I would do that.

http://support.microsoft.com/kb/198642
Scripts (Startup/Shutdown): Use this extension to specify the scripts that run when you start and shut down the computer. To configure the computer startup and shutdown scripts, start the Group Policy snap-in, expand Computer Configuration, expand Windows Settings, click Scripts (Startup/Shutdown), and then in the right pane, double-click the script that you want to configure. These scripts run on the Local System account.
0
 
LVL 3

Assisted Solution

by:andyms56
andyms56 earned 164 total points
ID: 21764192
hi m8 ther is a free program that will do this http://www.softpedia.com/get/System/Boot-Manager-Disk/MoveOnBoot.shtml
MoveOnBoot description
Allows you to copy, moves or delete files on the next system boot
MoveOnBoot allows you to copy, moves or delete files on the next system boot. This comes in very handy, if you need to replace or delete files which are locked by other applications, loaded into memory or cannot be changed until next system boot.
You could manually enter a line to the wininit files, but using MoveOnBoot is much simpler, since the program can be integrated into shell - it creates the "Copy/Move/Delete on boot" context menu item.
andy
0
Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
LVL 32

Assisted Solution

by:r-k
r-k earned 164 total points
ID: 21766503
One of the better ways is to put the file deletion and other commands in a *.bat file and schedule it to start "At System Startup". Scheduled tasks are run before anything else on startup, and your deletions are sure to be successful.
0
 
LVL 2

Assisted Solution

by:KevinNo
KevinNo earned 164 total points
ID: 21767295
GS121 is spot on. You have 2 options, domain policy or local policy. For 1 machine, type gpedit.msc in the run command. If you want to do this domain wide, use the group policy management console on a DC. Follow GS121's instructions. Be warned tho, domain wide policies can be dangerous if implimented without planning and testing.
0
 
LVL 7

Assisted Solution

by:Dauhee
Dauhee earned 164 total points
ID: 21767704
do you really want to reboot? Can run the following command to find the offending application/service that has the a dll loaded in memory (where xxxxx is the dll you are trying to replace):

tasklist /m xxxxx

You can optionally use a autoruns procexp.exe to search what running programs have the file (can be anything, not just dll) loaded in memory
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

752 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