Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Windows SBS 2008 logon script problem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
gimolu  
View profile  
 More options Nov 18 2009, 6:18 pm
Newsgroups: microsoft.public.scripting.vbscript
From: "gimolu" <gim...@hotmail.com>
Date: Wed, 18 Nov 2009 18:18:22 -0000
Local: Wed, Nov 18 2009 6:18 pm
Subject: Windows SBS 2008 logon script problem
HI,

I am having a problem with a script that I have in user logon that maps some
drives I need. Here is an example of the script:

Dim objNetwork
Set objNetwork = CreateObject("WScript.Network")

objNetwork.MapNetworkDrive "L:", "\\server\share"
objNetwork.MapNetworkDrive "Y:", "\\server\share1"

In the client computers I run he gpresult /v command and the script says
that it has been executed accordingly.
This is just a small part of the script because the drive map occurs if the
user belongs to a specific group (and yes if I put a wscript.echo and it
works great).
I've run out off troubleshooting ideas! the script just won't run!

Can someone point me to the right direction?

PS: with the new Drive Maps Options of windows 2008 (CSE) I can map drives,
however, I need this script up and running!

Thanks,

LR


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Mueller [MVP]  
View profile  
 More options Nov 18 2009, 6:38 pm
Newsgroups: microsoft.public.scripting.vbscript
From: "Richard Mueller [MVP]" <rlmueller-nos...@ameritech.nospam.net>
Date: Wed, 18 Nov 2009 12:38:59 -0600
Local: Wed, Nov 18 2009 6:38 pm
Subject: Re: Windows SBS 2008 logon script problem

"gimolu" <gim...@hotmail.com> wrote in message

news:ujD9DuHaKHA.3992@TK2MSFTNGP04.phx.gbl...

Do you configure logon scripts on the "Profile" tab of user properties in
ADUC, or in a Group Policy applied to the domain or an OU? Are you saying
the script runs fine if you run it manually (as a normal user) after logon,
but doesn't seem to run at all as a logon script?

See this link for details on configuring logon scripts:

http://www.rlmueller.net/LogonScriptFAQ.htm

If the script runs fine manually, but doesn't seem to run as a logon script,
add a lines to the script that either display messages to the user (using
MsgBox statements), or that write information to a local file.

Possibly the script raises an error. If you use "On Error Resume Next",
remove that so you see the error message. Otherwise, you may need to post
the script here so we can evaluate it. Some methods commonly used to
evaluate group membership are flawed, for example.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gimolu  
View profile  
 More options Nov 18 2009, 7:01 pm
Newsgroups: microsoft.public.scripting.vbscript
From: "gimolu" <gim...@hotmail.com>
Date: Wed, 18 Nov 2009 19:01:37 -0000
Local: Wed, Nov 18 2009 7:01 pm
Subject: Re: Windows SBS 2008 logon script problem
HI Richard,

Thanks for your reply.
Yes, if I run the script manually (\\server\sysvol\.....) it works great,
but as a logon script, not really. I'm applying it in GPMC (at the domain
level).
I'm sure the script is running because for troubleshooting issues I put some
wscript.echo in the script just to see where it's at and it seems to be just
fine. Actually I have a very similar script running on a testing server (sbs
2008) and it works fine. I can't find any major differences between the
working and not working server using RSOP.
I know that it's not because the slow link, etc. test it already.
The script that I posted here doesn't work too! If I applied it, I have the
same problem.
I have no On Error Resume Next, so any errors should be reported.

It seems that this line: objNetwork.MapNetworkDrive "L:", "\\server\share";
won't work!
Any ideas?

Thanks again for your reply.

"Richard Mueller [MVP]" <rlmueller-nos...@ameritech.nospam.net> wrote in
message news:uuEp25HaKHA.1596@TK2MSFTNGP06.phx.gbl...


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google