Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi, I’ve recently installed windows 2003 Server enterprise edition (my first real server environment). Created a DC, and a login script for some AD users. The purpose of the login script is to map a few network drives and a printer. The script works fine.
The problem I’m facing is, if a new user who doesn't have a profile on the local pc to which they are loggin on to ( i.e in c:\documents and settings\username" .. the script doesn't get executed, but after the first logon and there after, it gets executed fine.
The same also applies to folder redirection, made a custom GPO, applied to an OU, which the users are under. The folder is not created on server, on users first initial logon. As usual on logons & there after, redirection works fine.
So what is the solution to get things working on first logon if no profile for the user exists? I would assume making some type of default profile on the server...and roaming profiles. Which I heard is a thing of the past....
Any tips tricks is appreciated
Thanks

Post your script so we can see exactly what you are doing and what the possible causes for you problem could be.
-Mario-

My script as requested:
Option Explicit
Dim objNetwork
Dim strDriveLetter, strRemotePath, strUserName, strUNCPrinter
strDriveLetter = "J:"
strRemotePath = "\\hq-con-dc-01\homedir"' Purpose of script to create a network object. (objNetwork)
' Then to apply the MapNetworkDrive method. Result J: driveSet objNetwork = WScript.CreateObject("WScript.Network")
' Here is where we extract the UserName
strUserName = objNetwork.UserName
objNetwork.MapNetworkDrive strDriveLetter, strRemotePath _
& "\" & strUserNameSet objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "H:" , "\\hq-con-dc-01\home"strUNCPrinter = "\\hq-con-dc-01\HP2500CS"
'Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection strUNCPrinter
objNetwork.SetDefaultPrinter strUNCPrinter
WScript.Echo "Your Default Printer is:" & strUNCPrinter'WScript.Echo " Launch Explorer, check: "& strDriveLetter
WScript.Quit

![]() |
XP Local user rights thro...
|
Remote Desktop Connection
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |