• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

logon script

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Programming and More

View previous topic :: View next topic  
Author Message
chomchom
Just Arrived
Just Arrived


Joined: 26 Feb 2009
Posts: 0


Offline

PostPosted: Sun Mar 08, 2009 10:54 pm    Post subject: logon script Reply with quote

Hello.

I am recently setup an SBS2003 envirement. I try to script a logon script to mappe network driver and printer.
I idea of the script is: Delete the driver letter,if the driver letter exister and mappe again. in the same logon script mappe the network printer.
If anybody have any ideas how to do, i am very happy hear from and thanks very much.

chomchom
Back to top
View user's profile Send private message
lonewolff
Just Arrived
Just Arrived


Joined: 16 Jun 2009
Posts: 0


Offline

PostPosted: Wed Jun 17, 2009 6:40 am    Post subject: Reply with quote

This is what I have done in my login script (login.bat)

Code:
rem 'This is to delete and recreate the mapping to F'
if exist f: net use f: /delete
net use f: \\server\data

rem 'This is to delete and recreate the mapping to personal home folders'
if exist h: net use h: /delete
net use h: \\server\data\users\%username%

rem 'This is how to connect a printer'
start \\server\printer

Hope this helps. Very Happy
Back to top
View user's profile Send private message Visit poster's website
graycat
SF Mod
SF Mod


Joined: 29 Apr 2005
Posts: 16777195
Location: London, UK

Offline

PostPosted: Wed Jun 17, 2009 10:24 am    Post subject: Reply with quote

you might be interested in an easy way to remove all mapped drives like this:
Code:
net use * /delete
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Programming and More All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Looking for more Windows Networking info?

Sign up to the WindowsNetworking.com Monthly Newsletter, written by Enterprise Security MVP Deb Shinder, containing news, the hottest tips, Networking links of the month and much more. Subscribe today and don't miss a thing!
View a sample newsletter.

Become a WindowsNetworking.com member!

Discuss your Windows Networking issues with thousands of other Windows Newtorking experts. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred data recovery solution?

Follow TechGenix on Twitter