Link to home
Start Free TrialLog in
Avatar of Dan
DanFlag for United States of America

asked on

remove computer from using logon script

I have been using a VB script for the last 10 years now.  I am now using GP to map my drives and set the time on my PCs, and I want to discontinue using the logon script.  How do I do that? when I remove the logon.vbs file from \\mydomain.org\netlogon, when people log on, there's an error message that the script can't be found.

How do I remove it from the computers trying to use the script?
Avatar of Dan
Dan
Flag of United States of America image

ASKER

i searched through my registry and through group policy and I can't find any reference to the logon.vbs file
Avatar of MacGyver80
Where the scripts running locally and initiated by the systems(local script running from local system)?
You need to edit your GPO and remove record from Computer COnfiguration / Windows Settings / Scripts (Startup / shutdown)

or

User Configuration / Windows Settings / Scripts (Logon/ Logoff)
Avatar of Dan

ASKER

which GPO, I looked through every GPO and I can't find any reference to logon/logoff script anywhere?
SOLUTION
Avatar of Don
Don
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dan

ASKER

yes, it's in the user profile tab in AD.  So is there an easy way to remove the logon script entry for every user?
Yes, just modify GPO and it will apply to all users
Avatar of Dan

ASKER

I don't know which GPO to modify, as I found the referenced batch file for only one user, but it wasn't in the GPO, it was in AD.
How many GPO's you have ?
I've pointed you to right directory structure in GPO so if you have few, then edit all of them , navigate to place I've pointed before and check.
 User Configuration / Windows Settings / Scripts (Logon/ Logoff)
Avatar of Dan

ASKER

I have like 30 or so GPO's.
Avatar of Dan

ASKER

I would have to go through all 30 to 35 or so.
So maybe policy name will point you to right direction ?
Avatar of Dan

ASKER

so I checked every single GPO, and it's not listed anywhere.
so I added the screenshot of what I'm referring to, so I don't see that setting anywhere in GP.  Does this mean
I have to touch each account individually?

User generated image
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dan

ASKER

Thanks guys for your help.
Depending on your environment you may have to run a gpupdate /force on user systems to ensure they received the policy update.
Avatar of Dan

ASKER

thanks.