Logon Script
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
A couple of weeks ago I posted a question about logon scripts and was
pointed to
http://www.rlmueller.net/freecode2.htm.
I've been using login script #6.
I'm having a problem with this section of the code:
' Bind to the computer object in Active Directory with the LDAP
' provider.
Set objComputer = GetObject("
LDAP://" & strComputerDN)
' Add a printer connection if the computer is a member of the group.
If IsMember(objComputer, "Room 231") Then
objNetwork.AddPrinterConnection "LPT1:", "\\PrintServer\Printer3"
End If
I've modified it for my network. And, to some degree it works. If the user
doesn't have rights to that printer, they get an error message box that pops
up saying access denied. However, if they do have rights to the printer,
nothing happens. The printer doesn't appear in the Printer Folder.
Any suggestions on how to get this to happen?
Thanks,
Glenn
.
Relevant Pages
- another login script question
... A couple of weeks ago I posted a question about logon scripts and was ... I've been using login script #6. ... ' Bind to the computer object in Active Directory with the LDAP ... However, if they do have rights to the printer, ... (microsoft.public.windows.server.active_directory) - Workstations permissions to its own AD computer object
... I want to use a login script to read the value of the extensionAttribute of the computer object which relates to the workstation the user logs on to. ... Does a workstation have the rights to read the extensionAttributes of its own AD computer object? ... (microsoft.public.windows.server.active_directory) - Re: Time issue
... Hi Dan, ... Does not require logon scripts or admin rights, ... > but that won't work since basic users don't have the ... > My W2K PC's are ok since users have rights via my AD ... (microsoft.public.win2000.security) - GPO Assigned Logon Scripts
... rights on their workstations, i'm trying to migrate away from this, but i've ... encountered problems as their logon scripts write files to the Windows ... I'd like to change to logon scripts (batch files) to VBS but my question is, ... (microsoft.public.windows.server.active_directory) - Re: login script that moves a user account to an existsting OU
... > But what about group policy logon scripts? ... user's security rights. ... user account or in group policy. ... (microsoft.public.windows.server.scripting) |
|