| Build a start-menu using Xcopy |
|
|
| Written by Hans Straat, Monday, 27 March 2006 | ||||||
IntroductionThis howto will show you how you can build a dynamic startmenu for users logging on to a terminal server. We used certain standards to implement it and you can offcourse implement your own standards. The standardsEvery software package has it's own security group (app.notepad, app.office2003 etc) Users are members of security groups app.notepad if they need notepad etc. Created Robocopy user in active directory to run the script with Created shares Logon$ on the distribution point (source) logon$ on the server (destination) Share permissions on the logon$
NTFS permissions Per folder for example Office 2003
All users\start menu\programs added group Deny all users start menu (deny read) this way you will not see the all users start menu which is over-ruling the user start menu. After you set this permissions you can start to fill up the logon$ source directory see example picture.
The copy script for the logon shares is as following. Mind it is 1 string!! robocopy \\ServerSourcename\logon$ \\servertargetname\logon$ *.* /W:3 /R:3 /COPY:DATSO /MIR /LOG:f:\robocopy.txt This script is started with runas user or you can schedule it with that username & password with taskscheduler. This script will copy all folders and security settings to the target server. So you have to make sure that the permissions are set good on the source directory. What we did next was create a group called "Deny all users start menu" and added the group authenticated users to it. Then we added the group to the folder "All users\start menu\programs". If you set it on Start Menu they will get a empty programs in there start menu > all programs. The startmenu script
The starmenu script is a script that was given to me by coworkers from the company were I work and a colega and I changed it. You can simply copy and paste it but all references to the company and servernames are removed :) @echo off
rem ----------------------------------------------------------------------------
echo -------------------------------------------------------------------------------- > %LOG% echo ----- Removing start menu for user: %USERNAME% >> %LOG% echo ----- Recreating start menu for user: %USERNAME% >> %LOG% echo ----- Copying start menu items. >> %LOG% echo ----- Hiding startup directory. >> %LOG% echo ----- Hiding %HOMEDRIVE%\windows >> %LOG% Configure the user
Now you need to add the user to the group "Deny all users startmenu" and add the startup script as the loginscript. thanks to: Leon and Marcus.
Powered by JoomlaCommentCopyright (C) 2006 Frantisek Hliva. All rights reserved.Homepage: http://cavo.co.nr/ |
||||||
| < Prev |
|---|


