Re: Printing from a PC outside domain by JohnBates
JohnBates
Thu Mar 27 09:14:00 PDT 2008
Well I think this will work after using the command you referred me to it
works for that sessions after I enter the credentials. On the next login it
shows access denied as the connection is not established. Going to launch
this script as part of the login at the mobile workstation:
Set objLocator = CreateObject("WbemScripting.SWbemLocator")
Set objService = objLocator.ConnectServer _
("<station_name>", "root\cimv2", "<username>", "<password>")
"Pegasus (MVP)" wrote:
> You could try this command:
> rundll32 printui.dll PrintUIEntry /ga /n \\server\printername
>
> Since it works for all users, you could run the command
> from your console, using psexec.exe.
>
>
> "JohnBates" <JohnBates@discussions.microsoft.com> wrote in message
> news:39D5C0EB-4B53-4415-9464-A9CC186A5614@microsoft.com...
> > I'm asking how to add this printer automatically for each user on the
> > mobile
> > workstation. There are about 30 user accounts on it and I have
> > successfully
> > added the printer to my workstation profile using the "printer" account I
> > created on the domain. However each user will have to do this or I will
> > have
> > to do it for them. A local logon script at the mobile workstation to add
> > the
> > printer would be best.
> >
> > "Pegasus (MVP)" wrote:
> >
> >> Are you asking about how to add the "printer" account
> >> to each machine or how to install this printer on each PC?
> >>
> >>
> >> "JohnBates" <JohnBates@discussions.microsoft.com> wrote in message
> >> news:3E9252DF-81A5-42AC-9B27-F5D9E5F9958D@microsoft.com...
> >> >I created a new user on the domain called: printer with a set password
> >> >and
> >> >it
> >> > certainly works but each user has to add the printer manually. Is
> >> > there a
> >> > way to add it to everyone automatically or do I need to write a script
> >> > to
> >> > connect to it at logon? And could you point me to an article or thread
> >> > illustrating how to do that =)
> >> >
> >> > "Pegasus (MVP)" wrote:
> >> >
> >> >> "JohnBates" <JohnBates@discussions.microsoft.com> wrote in message
> >> >> news:9E208C4C-E10C-4C56-B362-1B6ED9F0B103@microsoft.com...
> >> >> > The domain PC that has the printer has no local user accounts save
> >> >> > the
> >> >> > admin.
> >> >> > Also the seperate workstation accounts are different from the domain
> >> >> > accounts. However I could create a printer user local to the PC the
> >> >> > printer
> >> >> > is attached to. I'll try that and let you know.
> >> >> >
> >> >>
> >> >> You could do this or else you could create an account on the
> >> >> separate workstation that matches a domain account - perhaps
> >> >> a low-level account used exclusively for printing.
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
>
>