Jump to content

Recommended Posts

Posted

I need to execute a command the first time a user logs on a computer, but the problem using a Runonce command is that then next unique user to login to the system will not get the command.

I have considered adding a command to the ntuser.dat

Anybody have any sugestions?

R


Posted

HKLM\Software\Microsoft\CurrentVersion\Runonce ?

I'm not sure about this. But without actually looking, that's my guess. Or something similar. Or a self destroying batch file in the "StartUp" folder of the startmenu that delete's itself.

Posted

un-tried suggestion, use runOnce or start-up folder for "Default user"

an other option would be to make a checkfile (e.g. let the script make a %username%.txt file, and check if the textfile does exist in the script)

gr /\/\o\/\/

Posted

What i did mean is add the key under

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

every new user will get this profile

gr /\/\o\/\/

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...