MSFN Forum: RunOnce before logging in - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

RunOnce before logging in Rate Topic: -----

#1 User is offline   dkreifus 

  • dkreifus
  • PipPip
  • Group: Members
  • Posts: 292
  • Joined: 30-March 04

Posted 17 March 2008 - 08:48 AM

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

Quote

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce

I tried loading a test command, with no success- There was no RunServicesOnce so I created it.

Quote

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServicesOnce]
"001"="c:\\test.cmd"


c:\test.cmd
@echo off
ECHO "Hello world" > c:\test.txt


So I'm a bit stumped...


#2 User is offline   neo 

  • Microsoft MVP - Windows Expert Consumer
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,251
  • Joined: 31-March 06
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 18 March 2008 - 12:25 PM

HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\RunOnce


OR

HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\RunOnce


try this !

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy