can't get my login script to execute
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
can't get my login script to execute

 
Post new topic   Reply to topic    Windows Server Forum Index -> Active Directory
Author Message
John Brahy
Guest





Posted: Tue Jan 11, 2005 7:00 am    Post subject: can't get my login script to execute Reply with quote

I'm really not doing anything complicated, I just can't get my login
script to execute. It's a WSH script I wrote in visual basic.

Option Explicit
Dim oNet, sUser, cInitial, startTime
Set oNet = CreateObject("WScript.Network")
oNet.MapNetworkDrive "l:", "\\Server\data\Production Admin"
oNet.MapNetworkDrive "m:", "\\Server\data\Public Relations"
oNet.MapNetworkDrive "n:", "\\Server\data\Administration"
oNet.MapNetworkDrive "o:", "\\Server\data\Fonts"
oNet.MapNetworkDrive "p:", "\\Server\data\Projects"
oNet.MapNetworkDrive "q:", "\\Server\data\Software Installs_Updates"
oNet.MapNetworkDrive "r:", "\\Server\data\FILES TO BACK UP"
oNet.MapNetworkDrive "s:", "\\Server\data\Sales And Marketing"
oNet.MapNetworkDrive "t:", "\\Server\data\Temporary Items"

When I go to a user's detail page and assign this as their login script
nothing happens. Do I have to have the login script execute from a
specific location? Does it need a specific file extension? Owned by a
certain user? anything special?

Thanks,

John
Back to top
John Brahy
Guest





Posted: Tue Jan 11, 2005 7:32 am    Post subject: Re: can't get my login script to execute Reply with quote

ok, turns out it needs to be in a special folder, \\domain
controller\netlogon and the profile does not need a full path, only the
filename.

hope it helps someone

John Brahy wrote:
Quote:
I'm really not doing anything complicated, I just can't get my login
script to execute. It's a WSH script I wrote in visual basic.

Option Explicit
Dim oNet, sUser, cInitial, startTime
Set oNet = CreateObject("WScript.Network")
oNet.MapNetworkDrive "l:", "\\Server\data\Production Admin"
oNet.MapNetworkDrive "m:", "\\Server\data\Public Relations"
oNet.MapNetworkDrive "n:", "\\Server\data\Administration"
oNet.MapNetworkDrive "o:", "\\Server\data\Fonts"
oNet.MapNetworkDrive "p:", "\\Server\data\Projects"
oNet.MapNetworkDrive "q:", "\\Server\data\Software Installs_Updates"
oNet.MapNetworkDrive "r:", "\\Server\data\FILES TO BACK UP"
oNet.MapNetworkDrive "s:", "\\Server\data\Sales And Marketing"
oNet.MapNetworkDrive "t:", "\\Server\data\Temporary Items"

When I go to a user's detail page and assign this as their login script
nothing happens. Do I have to have the login script execute from a
specific location? Does it need a specific file extension? Owned by a
certain user? anything special?

Thanks,

John

Back to top
Resonate
Guest





Posted: Tue Jan 11, 2005 11:17 pm    Post subject: Re: can't get my login script to execute Reply with quote

Yes your best assigning this to the organisational unit where the users live
rather than mess about adding that line to each user account.

Res


"John Brahy" <jbrahy@community.nospam> wrote in message
news:O0ulG239EHA.2608@TK2MSFTNGP10.phx.gbl...
Quote:
ok, turns out it needs to be in a special folder, \\domain
controller\netlogon and the profile does not need a full path, only the
filename.

hope it helps someone

John Brahy wrote:
I'm really not doing anything complicated, I just can't get my login
script to execute. It's a WSH script I wrote in visual basic.

Option Explicit
Dim oNet, sUser, cInitial, startTime
Set oNet = CreateObject("WScript.Network")
oNet.MapNetworkDrive "l:", "\\Server\data\Production Admin"
oNet.MapNetworkDrive "m:", "\\Server\data\Public Relations"
oNet.MapNetworkDrive "n:", "\\Server\data\Administration"
oNet.MapNetworkDrive "o:", "\\Server\data\Fonts"
oNet.MapNetworkDrive "p:", "\\Server\data\Projects"
oNet.MapNetworkDrive "q:", "\\Server\data\Software Installs_Updates"
oNet.MapNetworkDrive "r:", "\\Server\data\FILES TO BACK UP"
oNet.MapNetworkDrive "s:", "\\Server\data\Sales And Marketing"
oNet.MapNetworkDrive "t:", "\\Server\data\Temporary Items"

When I go to a user's detail page and assign this as their login script
nothing happens. Do I have to have the login script execute from a
specific location? Does it need a specific file extension? Owned by a
certain user? anything special?

Thanks,

John
Back to top
John Brahy
Guest





Posted: Fri Jan 21, 2005 1:35 am    Post subject: Re: can't get my login script to execute Reply with quote

how do I do that?
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Active Directory All times are GMT
Page 1 of 1

 
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




New Topics Powered by phpBB