[Samba] Logoff script?
Bob Crandell
bob at assuredcomp.com
Fri Jul 25 16:29:14 GMT 2003
To get back to your original question, there isn't a logoff script. The NET USE I
suggested is one way to release the printers when the user logs off. NET USE isn't
limited to DOS programs. Windows programs print to a captured LPT port also. Some
of the older ones actually require it.
I don't know what WSH is.
I hope I haven't wasted too much band width.
Ryan Novosielski (novosirj at umdnj.edu) wrote:
>
>I am not actually using NET USE. I don't have any use for the actual
>printer ports in DOS. I suppose I could do it this way if there's no way
>to avoid using the LPT ports. Does this do the same thing as the WSH
>"AddPrinterConnect" or whatever it's called (my memory is failing me).
>
>---- _ _ _ _ ___ _ _ _
>|Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin
>|$&| |__| | | |__/ | \| _| | novosirj at umdnj.edu - 973/972.0922 (2-0922)
>\__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630
>
>On Wed, 23 Jul 2003, Bob Crandell wrote:
>
>> For Win2K and XP, you can:
>> NET USE LPT1: \\server\printer /persistent:no
>>
>> Ryan Novosielski (novosirj at UMDNJ.EDU) wrote:
>> >
>> >Is there such a thing as a Samba logoff script? I am currently using
>> >[NETLOGON] for logon scripts, but for the adding and removing of printers
>> >via WSH, I'd prefer to also remove these printers after I log off.
>> >
>> >---- _ _ _ _ ___ _ _ _
>> >|Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin
>> >|$&| |__| | | |__/ | \| _| | novosirj at umdnj.edu - 973/972.0922 (2-0922)
>> >\__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630
>> >
>>
>> --
>> Bob Crandell
>> Assured Computing
>> When you need to be sure.
>> bob at assuredcomp.com
>> www.assuredcomp.com
>> Voice - 541-689-9159
>> FAX - 541-463-1627
>> Eugene, Oregon
>>
>>
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions: http://lists.samba.org/mailman/listinfo/samba
>>
>
--
Bob Crandell
Assured Computing
When you need to be sure.
bob at assuredcomp.com
www.assuredcomp.com
Voice - 541-689-9159
FAX - 541-463-1627
Eugene, Oregon
More information about the samba
mailing list