Discussion Locked

Site specific logon scripts

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a network with multiple locations, and staff move around between sites pretty frequently, using different computers. Most of them aren't very computer literate, so I have been using login scripts to connect to network drives and printers.

I am trying to use a GPO for computers at each site, with a user logon script that connects the printer at that site, but the script isn't running. I've set loopback policy processing to on, but no luck. The same script applied directly to users works fine.

Suggestions?

2 replies

by cavedweller

I have been trying to do the same thing. Here's what I did:

The login script that gets run comes from the DC that authenticated the login. I set a "LOCATION" environment variable on each computer when I set it up. I used %LOCATION% in a folderredirect policy to change the source of the desktop, documents folder and start menu. You should also be able to test %LOCATION% in the login script and take appropriate action.

I hope someone posts a more elegant solution. This one works but there must be a better way!

In my case, if I was able to determine the OU of the workstation from a script I wouldn't have had to add the LOCATION environment variable.

by jvonstein

My scripting skills apparently aren't up to the task; I wasn't able to successfully call the variable. I'm open to further information, however.

This discussion is closed to new replies.