Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So I have to run a login script when User X logs on. I put that script (.bat) in the startup folder and it works fine. However, I also have to disable the explorer shell and once I do that the startup script no longer runs because the startup folder is part of explorer. Is there another way to run a startup script on logon for User X without the startup folder??

I tried doing everything listed here: http://support.microsoft.com/kb/324803

But if you make a folder in system32 there's no way to share it, the computer won't let you, so this tutorial can't possibly be correct

share|improve this question
    
If you're disabling the explorer.exe shell, are you using an alternate shell for a user interface? –  Andrew Prentice Nov 3 '11 at 20:31
    
No, I want no interface. All the computer is supposed to do is open internet explorer on logon and the user can't do or use anything else –  Mark Kramer Nov 3 '11 at 20:33
    
You share the FINAL folder (scripts), if I read that correctly –  Canadian Luke Nov 3 '11 at 20:38
    
I did, it won't let you share the system32 file or anything in it –  Mark Kramer Nov 3 '11 at 20:43
    
I just shared the folder, no issues. What is showing up when you try? –  Canadian Luke Nov 3 '11 at 21:13

1 Answer 1

up vote 2 down vote accepted

Use gpedit.msc to assign a logon script using local group policy. You can put group policy logon scripts anywhere you like, so long as you specify the full path.

If you're in a domain, and the users in question are logging in using domain accounts, use domain group policy instead of local group policy.

share|improve this answer
    
Just to be clear: in this scenario, the logon script doesn't need to be on a share at all. Specify the local path, e.g., c:\scripts\logon.cmd. –  Harry Johnston Nov 3 '11 at 21:27
    
Okay, and what is gpedit.msc? I remember trying to run that before and I couldn't find it on my computer. (Windows XP). I just found it on this computer (Windows 7, I'll look again on XP) –  Mark Kramer Nov 4 '11 at 12:46
    
Okay, I got it to work! Thanks =D Damn, the tutorials online really really need to learn this method, this method even lets you assign logoff scripts and is totally hidden to the User (unlike putting a script in the Startup folder) –  Mark Kramer Nov 4 '11 at 13:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.