dkreifus Posted March 17, 2008 Share Posted March 17, 2008 I am trying to run a simple task before logging in.I want to delete the Documents and Settings\Administrator profile. (so it gets recreated next time the account is logged in).I've read about HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnceI tried loading a test command, with no success- There was no RunServicesOnce so I created it.Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServicesOnce]"001"="c:\\test.cmd"c:\test.cmd@echo offECHO "Hello world" > c:\test.txtSo I'm a bit stumped... Link to comment Share on other sites More sharing options...
neo Posted March 18, 2008 Share Posted March 18, 2008 HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\RunOnceORHKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\RunOncetry this ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now