PC Review


Reply
Thread Tools Rate Thread

Connecting to a Printer in a Mandatory Profile

 
 
=?Utf-8?B?YmJhcmttYW4=?=
Guest
Posts: n/a
 
      8th Dec 2005
I have created a mandatory profile to be used when a user logs on. I also
wrote a simple batch file to automatically connect to a printer during logon.
In Active Directory I specified the batch file on the "Profiles" tab of the
user account.

When the user logs on, the mandatory profile appears to be in effect but no
printers were connected. The script looks like this:

c:\
rundll32 printui.dll,PrintUIEntry /in /n\\Antonelli01\HPLaserJ
rundll32 printui.dll,PrintUIEntry /y /n\\Antonelli01\HPLaserJ

I am connecting to this printer and setting it as the default.

Also, I tested this script from a client computer by running it directly and
it worked.

Finally, while testing the profile after logging on, I used the Add Printer
Wizard to try to connect to the printer and received the following message:

"You do not have sufficient access to the machine..."

So, how do I give the mandatory profile sufficient access so that the
printers are automatically connect during the logon process?

Thanks in advance.

 
Reply With Quote
 
 
 
 
mmethe@gmail.com
Guest
Posts: n/a
 
      9th Dec 2005
Try calling a batch file form the netlogon share of the network to map
drives and printers. KIX is a pretty common script language also but
batch should work fine. KIX supports printer mapping natively but
batch does not, unless you make a system call to rundll32 (not
advised). Get con2prt.exe and plop it into your netlogon share.

con2prt /cd \servers\printer will connect the printer and make it
default
con2prt /c \\server\printer will simply connect it

Hope this helps...

-Mike M
http://blatbox.frihost.net

 
Reply With Quote
 
=?Utf-8?B?YmJhcmttYW4=?=
Guest
Posts: n/a
 
      9th Dec 2005
Thanks for the reply.

I'm not sure if I know what you mean when you say call the batch file from
the netlogon share. Right now my batch file is located in a shared folder on
the server which contains the info for the mandatory profile. The batch file
is called from the default user account via the "profiles" tab in Active
Directory. Should I be calling from somewhere else?

Also, should I replace the line in my batch file with yours?

"(E-Mail Removed)" wrote:

> Try calling a batch file form the netlogon share of the network to map
> drives and printers. KIX is a pretty common script language also but
> batch should work fine. KIX supports printer mapping natively but
> batch does not, unless you make a system call to rundll32 (not
> advised). Get con2prt.exe and plop it into your netlogon share.
>
> con2prt /cd \servers\printer will connect the printer and make it
> default
> con2prt /c \\server\printer will simply connect it
>
> Hope this helps...
>
> -Mike M
> http://blatbox.frihost.net
>
>

 
Reply With Quote
 
=?Utf-8?B?QnJpYW4gSg==?=
Guest
Posts: n/a
 
      27th Feb 2006
Did you ever find a resolution to this problem? If so, I would be glad to
hear how it turned out as I am facing a similar situation.

Thanks.

Brian J.

"bbarkman" wrote:

> Thanks for the reply.
>
> I'm not sure if I know what you mean when you say call the batch file from
> the netlogon share. Right now my batch file is located in a shared folder on
> the server which contains the info for the mandatory profile. The batch file
> is called from the default user account via the "profiles" tab in Active
> Directory. Should I be calling from somewhere else?
>
> Also, should I replace the line in my batch file with yours?
>
> "(E-Mail Removed)" wrote:
>
> > Try calling a batch file form the netlogon share of the network to map
> > drives and printers. KIX is a pretty common script language also but
> > batch should work fine. KIX supports printer mapping natively but
> > batch does not, unless you make a system call to rundll32 (not
> > advised). Get con2prt.exe and plop it into your netlogon share.
> >
> > con2prt /cd \servers\printer will connect the printer and make it
> > default
> > con2prt /c \\server\printer will simply connect it
> >
> > Hope this helps...
> >
> > -Mike M
> > http://blatbox.frihost.net
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XPe roaming profile / mandatory profile troubleshooting marcel.cardinal@ssss.gouv.qc.ca Windows XP Embedded 0 6th Feb 2008 02:27 AM
mandatory profile with printer option Rick Windows XP Security 1 14th Aug 2006 08:24 PM
Connecting Printers in a Mandatory Profile =?Utf-8?B?YmJhcmttYW4=?= Microsoft Windows 2000 0 8th Dec 2005 07:20 PM
can you make a local profile into a mandatory profile? Tadashi Inayama Microsoft Windows 2000 Terminal Server Clients 1 7th May 2005 07:12 PM
mandatory profile and proliferation of user profile DaviD Microsoft Windows 2000 New Users 0 6th Oct 2003 06:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:52 PM.