MS Server 2000/2003 Discussion/Issues
General support for all versions of Windows.

Moderators: Forum Experts, Management

Postby nightfire on Wed Sep 10, 2008 4:11 pm

well, i lock the workstations down, and i always do maintenence from the server itself

i put the file in that location, then went to a user's profile and made their logon script look like this:

C:\WINNT\SYSVOL\domain\scripts\userlogon2.vbs

i then logged on as that user from a workstation and it did not work
(Gigabyte GA-M57SLI-S4 Mobo)(AMD Athlon 64 X2 5600+)(3.5 GB high speed ram?)(EVGA Geforce 8800GTS)(500 GB and 1 TB Sata Drives)super high speed, 3COM 56k Modem!!
User avatar
nightfire
PRO Level 8
PRO Level 8
 
Posts: 347
Joined: Fri May 27, 2005 1:39 am
Location: Humboldt

Postby _Taz_ on Wed Sep 10, 2008 4:22 pm

that's because the file doesn't exist on the workstation, it's on the server.

when a workstation logs in it automatically looks for the netlogon directory

just put the file name in the loginscript box, no path.

(just to see, from a workstation explore your network, find the domain controller, you should see a netlogon directory. the file you put in there should be visible)

i suggest you make an admin workstation and not do things from the server
User avatar
_Taz_
PRO Level 15
PRO Level 15
 
Posts: 1216
Joined: Tue Jun 29, 2004 9:01 am
Location: Florida

Postby nightfire on Wed Sep 10, 2008 5:12 pm

alright, i'll try that. currently im not at the system but ill do that.

so, whats the script to mount a network share upon logon?

ive done it before and i know it's really simple

thanks so much for the help
(Gigabyte GA-M57SLI-S4 Mobo)(AMD Athlon 64 X2 5600+)(3.5 GB high speed ram?)(EVGA Geforce 8800GTS)(500 GB and 1 TB Sata Drives)super high speed, 3COM 56k Modem!!
User avatar
nightfire
PRO Level 8
PRO Level 8
 
Posts: 347
Joined: Fri May 27, 2005 1:39 am
Location: Humboldt

Postby NT50 on Wed Sep 10, 2008 7:40 pm

nightfire

I hope that I am not over ruling your thread and I am willing to start another.
Let me know

Here is my situation.

I have setup a user called "Tutor"
In the properties of Tutor and Profile tab; I have setup the Home directory as E:\users\tutor
that folder is shared as \\servername\tutor
The security/permissions for that folder are "Tutor" has full right
I have set the GP to My Document folder redirection to \\servername\%usename%

Will that work......
Dogs Have Owners; Cats Have Staff
User avatar
NT50
VP - Support
 
Posts: 9703
Joined: Sat Jun 19, 2004 11:46 am
Location: Jackson, TN USA
Real Name: Jeff Replogle

Postby nightfire on Wed Sep 10, 2008 9:03 pm

hey, its fine to use this one, we're all on the same topic

about your issue:

i think that's right, but i don't know if it can use the %username

i think i might have tried that and it may not have let me. I ended up redirecting to a local location i think, like E:\users\

i can tell you with certainty tomorrow, but im not on my server right now
(Gigabyte GA-M57SLI-S4 Mobo)(AMD Athlon 64 X2 5600+)(3.5 GB high speed ram?)(EVGA Geforce 8800GTS)(500 GB and 1 TB Sata Drives)super high speed, 3COM 56k Modem!!
User avatar
nightfire
PRO Level 8
PRO Level 8
 
Posts: 347
Joined: Fri May 27, 2005 1:39 am
Location: Humboldt

Postby NT50 on Wed Sep 10, 2008 9:14 pm

cool

I need the %username% due to all the different users I have and the different computers they log onto. If I can get the document redirection worked out then I am going to use the NET USE command to map drive letters to specific folders. One will be a folder that all the test will be published to.
Dogs Have Owners; Cats Have Staff
User avatar
NT50
VP - Support
 
Posts: 9703
Joined: Sat Jun 19, 2004 11:46 am
Location: Jackson, TN USA
Real Name: Jeff Replogle

Postby NT50 on Wed Sep 10, 2008 9:21 pm

From Technet site

Folder Redirection and environment variables
The folder redirection client side extension is only able to process two environment variables: %username% and %userprofile%. Other environment variables such as %logonserver%, %homedrive% and %homepath% will not work with folder redirection.



Edit: maybe we need to change the subject to Windows Server Discussion. If we to that I might sticky it and we can continue sharing our experiences. I do have a GP that locks down the user of a lot of control.....
Dogs Have Owners; Cats Have Staff
User avatar
NT50
VP - Support
 
Posts: 9703
Joined: Sat Jun 19, 2004 11:46 am
Location: Jackson, TN USA
Real Name: Jeff Replogle

Postby nightfire on Wed Sep 10, 2008 10:37 pm

how are you mounting drives onto user's computer's?

like to mount my server share as drive w:\ on the users "my computer"

it should be easy, but im sorta fried from this week

ill definitely get back to you tomorrow morning with my setup for mounting the users drives and redirection
(Gigabyte GA-M57SLI-S4 Mobo)(AMD Athlon 64 X2 5600+)(3.5 GB high speed ram?)(EVGA Geforce 8800GTS)(500 GB and 1 TB Sata Drives)super high speed, 3COM 56k Modem!!
User avatar
nightfire
PRO Level 8
PRO Level 8
 
Posts: 347
Joined: Fri May 27, 2005 1:39 am
Location: Humboldt

Postby _Taz_ on Thu Sep 11, 2008 8:19 am

ok, since we did the printers in vbs i'll stick with that.

Code: Select all
'Option Explicit
Dim objNetwork, strRemotePath1, strRemotePath2,strRemotePath3
Dim strDriveLetter1, strDriveLetter2, strDriveLetter3
Dim strDriveLetter, strRemotePath, strUserName, AppToRun, FSO

strDriveLetter1 = "R:"
strDriveLetter2 = "P:"
strDriveLetter3 = "W:"
strRemotePath1 = "\\supertaz\resources"
strRemotePath2 = "\\supertaz\share"
strRemotePath3 = "\\supertaz\worktools"

Set objNetwork = CreateObject("WScript.Network")

' Section which maps two drives, M: and P:
objNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1
objNetwork.MapNetworkDrive strDriveLetter2, strRemotePath2
objNetwork.MapNetworkDrive strDriveLetter3, strRemotePath3


now I had people that had mapped their own drive which conflicted with MY drives.. so mine looks a little more like this..
Code: Select all
'Option Explicit
Dim objFSO, objNetwork, strRemotePath1, strRemotePath2,strRemotePath3,strRemotePath4,strRemotePath5
Dim strDriveLetter1, strDriveLetter2, strDriveLetter3,strDriveLetter4,strRemoteDriveLetter5

Set objNetwork = WScript.CreateObject("WScript.Network")
Set objFSO = CreateObject("Scripting.FileSystemObject")

'Remove any old drive mappings before starting
If objFSO.DriveExists("S:") = True Then
        objNetwork.RemoveNetworkDrive "S:", True, True
    End If
If objFSO.DriveExists("R:") = True Then
        objNetwork.RemoveNetworkDrive "R:", True, True
    End If
If objFSO.DriveExists("W:") = True Then
        objNetwork.RemoveNetworkDrive "W:", True, True
    End If
If objFSO.DriveExists("T:") = True Then
        objNetwork.RemoveNetworkDrive "T:", True, True
    End If
If objFSO.DriveExists("U:") = True Then
        objNetwork.RemoveNetworkDrive "U:", True, True
    End If

'Set variables
strDriveLetter1 = "S:"
strDriveLetter2 = "R:"
strDriveLetter3 = "W:"
strDriveLetter4 = "T:"
strDriveLetter5 = "U:"
strRemotePath1 = "\\supertaz\common"
strRemotePath2 = "\\supertaz\csclient"
strRemotePath3 = "\\supertaz\ess"
strRemotePath4 = "\\supertaz\hopper"
strRemotePath5 = "\\supertaz\johnson"
' Section which maps drives,
objNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1
objNetwork.MapNetworkDrive strDriveLetter2, strRemotePath2
objNetwork.MapNetworkDrive strDriveLetter3, strRemotePath3
objNetwork.MapNetworkDrive strDriveLetter4, strRemotePath4
objNetwork.MapNetworkDrive strDriveLetter5, strRemotePath5


you can see how it works just add remove variables to match your needs.
make sure to use capital letters for the drives.
also I am not a code guru, so it may not be the most efficient code but it works.
User avatar
_Taz_
PRO Level 15
PRO Level 15
 
Posts: 1216
Joined: Tue Jun 29, 2004 9:01 am
Location: Florida

Postby nightfire on Thu Sep 11, 2008 9:54 am

thanks, ill try that out

so here's what i used for the folder redirection if you still need it:

Basic redirection

\\sllabserver\Users\%username%-as the path
(Gigabyte GA-M57SLI-S4 Mobo)(AMD Athlon 64 X2 5600+)(3.5 GB high speed ram?)(EVGA Geforce 8800GTS)(500 GB and 1 TB Sata Drives)super high speed, 3COM 56k Modem!!
User avatar
nightfire
PRO Level 8
PRO Level 8
 
Posts: 347
Joined: Fri May 27, 2005 1:39 am
Location: Humboldt

PreviousNext

Return to General Windows Support

Who is online

Users browsing this forum: No registered users and 0 guests