A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Networking and the Internet with Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Logon Credentials set via logon script?



 
 
Thread Tools Display Modes
  #1  
Old November 29th 04, 07:27 PM
iQtony
external usenet poster
 
Posts: n/a
Default Logon Credentials set via logon script?

Question pertains to setting logon credentials in a logon script. We are
setting up a remote client with access to a mapped network drive. The problem
is everytime the pc is rebooted the settings for the drive are not saved.
Drive is there @ every reboot, but credientials are not saved. Is there a way
to write a logon script that maps the drive as well as sets the logon
credentials!

All help is appreciated! Thank you
Ads
  #2  
Old November 30th 04, 01:42 AM
Richard G. Harper
external usenet poster
 
Posts: n/a
Default Logon Credentials set via logon script?

Use the following logon script:

net use d: /d
net use d: \\servername\sharename password /user:username

Of course, change the d: drive letter to the correct drive letter and make
the obvious substitutions above.

By disconnecting the drive first, then reconnecting with the correct
username and password you can avoid the problem of non-cached credentials.

--
Richard G. Harper [MVP Shell/User]
* PLEASE post all messages and replies in the newsgroups
* for the benefit of all. Private mail is usually not replied to.
* My website, such as it is ...
http://rgharper.mvps.org/
* HELP us help YOU ... http://www.dts-l.org/goodpost.htm


"iQtony" wrote in message
...
Question pertains to setting logon credentials in a logon script. We are
setting up a remote client with access to a mapped network drive. The
problem
is everytime the pc is rebooted the settings for the drive are not saved.
Drive is there @ every reboot, but credientials are not saved. Is there a
way
to write a logon script that maps the drive as well as sets the logon
credentials!

All help is appreciated! Thank you



  #3  
Old November 30th 04, 03:29 PM
iQtony
external usenet poster
 
Posts: n/a
Default Logon Credentials set via logon script?

Where in XP would I be able to put this script. For some reason I am not
finding the Script folder where this would go.?

"Richard G. Harper" wrote:

Use the following logon script:

net use d: /d
net use d: \\servername\sharename password /user:username

Of course, change the d: drive letter to the correct drive letter and make
the obvious substitutions above.

By disconnecting the drive first, then reconnecting with the correct
username and password you can avoid the problem of non-cached credentials.

--
Richard G. Harper [MVP Shell/User]
* PLEASE post all messages and replies in the newsgroups
* for the benefit of all. Private mail is usually not replied to.
* My website, such as it is ...
http://rgharper.mvps.org/
* HELP us help YOU ... http://www.dts-l.org/goodpost.htm


"iQtony" wrote in message
...
Question pertains to setting logon credentials in a logon script. We are
setting up a remote client with access to a mapped network drive. The
problem
is everytime the pc is rebooted the settings for the drive are not saved.
Drive is there @ every reboot, but credientials are not saved. Is there a
way
to write a logon script that maps the drive as well as sets the logon
credentials!

All help is appreciated! Thank you




  #4  
Old December 1st 04, 01:41 AM
Richard G. Harper
external usenet poster
 
Posts: n/a
Default Logon Credentials set via logon script?

You can put it in the domain script folder on the AD domain controller
(C:\WINNT\SYSVOL\sysvol) and assign it to users via AD, or you could copy it
to each PC in the C:\Documents and Settings\All Users\Start Menu\Startup
folder.

--
Richard G. Harper [MVP Shell/User]
* PLEASE post all messages and replies in the newsgroups
* for the benefit of all. Private mail is usually not replied to.
* My website, such as it is ...
http://rgharper.mvps.org/
* HELP us help YOU ... http://www.dts-l.org/goodpost.htm


"iQtony" wrote in message
...
Where in XP would I be able to put this script. For some reason I am not
finding the Script folder where this would go.?

"Richard G. Harper" wrote:

Use the following logon script:

net use d: /d
net use d: \\servername\sharename password /user:username

Of course, change the d: drive letter to the correct drive letter and
make
the obvious substitutions above.

By disconnecting the drive first, then reconnecting with the correct
username and password you can avoid the problem of non-cached
credentials.

--
Richard G. Harper [MVP Shell/User]
* PLEASE post all messages and replies in the newsgroups
* for the benefit of all. Private mail is usually not replied to.
* My website, such as it is ...
http://rgharper.mvps.org/
* HELP us help YOU ... http://www.dts-l.org/goodpost.htm


"iQtony" wrote in message
...
Question pertains to setting logon credentials in a logon script. We
are
setting up a remote client with access to a mapped network drive. The
problem
is everytime the pc is rebooted the settings for the drive are not
saved.
Drive is there @ every reboot, but credientials are not saved. Is there
a
way
to write a logon script that maps the drive as well as sets the logon
credentials!

All help is appreciated! Thank you






  #5  
Old December 1st 04, 09:47 PM
iQtony
external usenet poster
 
Posts: n/a
Default Logon Credentials set via logon script?

That much is done. One issue pertains to that script not working when placed
in the startup. Is there a setting that needs to be changed so that it will
work. Another issue is if we store this in a script folder, then call this
when initializing an application (in the target section of properties for a
certain application) so that whenever the application is started the drive is
mapped, how can we set it so that it is mapped once when the app is started,
and you close out and go back in, that it won't try to map it again and give
you error msg sayin name already exists.

"Richard G. Harper" wrote:

You can put it in the domain script folder on the AD domain controller
(C:\WINNT\SYSVOL\sysvol) and assign it to users via AD, or you could copy it
to each PC in the C:\Documents and Settings\All Users\Start Menu\Startup
folder.

--
Richard G. Harper [MVP Shell/User]
* PLEASE post all messages and replies in the newsgroups
* for the benefit of all. Private mail is usually not replied to.
* My website, such as it is ...
http://rgharper.mvps.org/
* HELP us help YOU ... http://www.dts-l.org/goodpost.htm


"iQtony" wrote in message
...
Where in XP would I be able to put this script. For some reason I am not
finding the Script folder where this would go.?

"Richard G. Harper" wrote:

Use the following logon script:

net use d: /d
net use d: \\servername\sharename password /user:username

Of course, change the d: drive letter to the correct drive letter and
make
the obvious substitutions above.

By disconnecting the drive first, then reconnecting with the correct
username and password you can avoid the problem of non-cached
credentials.

--
Richard G. Harper [MVP Shell/User]
* PLEASE post all messages and replies in the newsgroups
* for the benefit of all. Private mail is usually not replied to.
* My website, such as it is ...
http://rgharper.mvps.org/
* HELP us help YOU ... http://www.dts-l.org/goodpost.htm


"iQtony" wrote in message
...
Question pertains to setting logon credentials in a logon script. We
are
setting up a remote client with access to a mapped network drive. The
problem
is everytime the pc is rebooted the settings for the drive are not
saved.
Drive is there @ every reboot, but credientials are not saved. Is there
a
way
to write a logon script that maps the drive as well as sets the logon
credentials!

All help is appreciated! Thank you






  #6  
Old December 1st 04, 11:36 PM
Richard G. Harper
external usenet poster
 
Posts: n/a
Default Logon Credentials set via logon script?

If a script file is placed in the All Users' Startup folder it should always
execute when a user logs on. As for re-running the script there should be
no problem if you design it as I suggested since the network drive will be
disconnected before it's re-connected.

--
Richard G. Harper [MVP Shell/User]
* PLEASE post all messages and replies in the newsgroups
* for the benefit of all. Private mail is usually not replied to.
* My website, such as it is ...
http://rgharper.mvps.org/
* HELP us help YOU ... http://www.dts-l.org/goodpost.htm


"iQtony" wrote in message
...
That much is done. One issue pertains to that script not working when
placed
in the startup. Is there a setting that needs to be changed so that it
will
work. Another issue is if we store this in a script folder, then call this
when initializing an application (in the target section of properties for
a
certain application) so that whenever the application is started the drive
is
mapped, how can we set it so that it is mapped once when the app is
started,
and you close out and go back in, that it won't try to map it again and
give
you error msg sayin name already exists.



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cashed domain credentials, vpn, authentication failed Dirk Security and Administration with Windows XP 3 January 27th 05 07:15 PM
Local user logon script does not run. sms New Users to Windows XP 1 July 29th 04 08:48 PM
Local user logon script does not run. sms New Users to Windows XP 3 July 29th 04 06:53 PM
Local user logon script does not run. sms New Users to Windows XP 0 July 29th 04 06:48 PM
Local user logon script does not run. sms New Users to Windows XP 0 July 29th 04 06:48 PM






All times are GMT +1. The time now is 05:04 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.