5 replies
by bbahar
In GPO, you can redirect the start menu.
(1) Go to User Configuration in GPO.
(2) Open Windows Settings
(3) Open Folder Redirection > Start Menu
(4) Specify the SHARED place in the server that users will pull their start menu. (Give read-only permissions to avoid changes by users)
Good luck
Know anything about scripting? This script will doe excatly what you want it to do. It maps a drive, gets the users name, and copies a file to the users desktop (which it can figure out because of the username). I put numbers on each line because of the word wrap. If a line doesn't have a number that's because it goes with the line above it. Any line that wraps that has a ( means there's not a space. If there isn't a ( then put a space when you connect the lines. I'm assuming you use active directory. This uses adsi, and the file system object. All you need to do is change line 8, 11, and 12. Put values in for server name, share name, and your file name. good luck!
1. Set objNetwork = CreateObject("Wscript.Network")
2. Set objFSO = CreateObject("Scripting.FileSystemObject")
3. Set objSysInfo = CreateObject("ADSystemInfo")
4. strUserDN = objSysInfo.userName
5. Set objUser = GetObject("LDAP://" & strUserDN)
6. username = objUser.SamAccountName
7. 'Put your server and share name here
8. MapDrive "U:", "\\servername\share name"
9. dim filesys, demofile
10. set filesys = CreateObject ("Scripting.FileSystemObject")
11. set demofile = filesys.GetFile("u:\yourfilename")
12. demofile.Copy("c:\documents and settings\" & username & "\desktop\yourfilename")
13. Function MapDrive(strDrive, strShare)
14. Dim objDrive
15. On Error Resume Next
16. Err.Clear
17. If objFSO.DriveExists(strDrive) Then
18. Set objDrive = objFSO.GetDrive(strDrive)
19. If Err.Number <> 0 Then
20. Err.Clear
21. MapDrive = False
22. Exit Function
23. End If
24. If CBool(objDrive.DriveType = 3) Then
25. objNetwork.RemoveNetworkDrive strDrive, True, True
26. Else
27. MapDrive = False
28. Exit Function
29. End If
30. Set objDrive = Nothing
31. End If
32. objNetwork.MapNetworkDrive strDrive, strShare
33. If Err.Number = 0 Then
34. MapDrive = True
35. Else
36. Err.Clear
37. MapDrive = False
38. End If
39. On Error GoTo 0
40. End Function
by courtney
Poster rated this answer.
by courtney
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending