HOME ABOUT FEATURES TIPS/TRICKS DEMO PRICING SUPPORT CONTACT US

Sample Scripts  Make payments with PayPal - it's fast, free and secure!

Desktops based on User groups (and/or workgroups)

Here is a quick example where if a student logons on in computerlab workgroup they get for the desktop for students in this workgroup. This overrides the standard MysaNiTy computerlab workgroup desktop, start menu, etc  icons for the current computerlab workgroup logon.

At the server under   c:\mysaNiTy\desktopscomputerlab   folder server you need to manually create a sub folder called students and five subfolders within it .. desktop,programs,startup,Nethood, and Start Menu.  You will have to manually add this structure using windows explorer on the server.


Notice the c:\mysaNiTy\desktops folder is shared (hand on it in windows explorer)  all desktop subfolder structures must be subfolder structures within this c:\mysaNiTy\desktops folder.

Directory structure for students to get a desktop for users in the students group

(On the server)

c:\mysaNiTy\desktops\computerlab\students\desktop
c:\mysaNiTy\desktops\computerlab\students\programs
c:\mysaNiTy\desktops\computerlab\students\startup
c:\mysaNiTy\desktops\computerlab\students\Nethood
c:\mysaNiTy\desktops\computerlab\students\Start Menu

Windows Explorer View of Directory structure:

 

Addons.txt file additions

if $workgrp="computerlab" and ingroup("students")
$programs="$server\desktops\computerlab\students\programs"
$desktop="$server\desktops\computerlab\students\desktop"
$startup="$server\desktops\computerlab\students\startup"
$nethood="$server\desktops\computerlab\students\Nethood"
$startmenu="$server\desktops\computerlab\students\Start Menu"
$key="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
$ret=writevalue($key,"Programs",$programs,"REG_SZ")
$ret=writevalue($key,"Desktop",$desktop,"REG_SZ")
$ret=writevalue($key,"NoStartMenuSubFolders","1","REG_SZ")
$ret=writevalue($key,"Startup",$startup,"REG_SZ")
$ret=writevalue($key,"NetHood",$nethood,"REG_SZ")
$ret=writevalue($key,"Start Menu",$startmenu,"REG_SZ")
endif

Here is an example of no matter where teachers go they get this desktop,
regardless of workgroup.


(at the server) under the c:\mysaNiTy\desktops folder on the server there
is a sub folder called teachers and five subfolders within it ..
desktop,programs,startup,Nethood, and Start Menu

c:\mysaNiTy\desktops\teachers\desktop
c:\mysaNiTy\desktops\teachers\programs
c:\mysaNiTy\desktops\teachers\startup
c:\mysaNiTy\desktops\teachers\Nethood
c:\mysaNiTy\desktops\teachers\Start Menu


if ingroup("teachers")
$programs="$server\desktops\teachers\programs"
$desktop="$server\desktops\teachers\desktop"
$startup="$server\desktops\teachers\startup"
$nethood="$server\desktops\teachers\Nethood"
$startmenu="$server\desktops\teachers\Start Menu"
$key="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
$ret=writevalue($key,"Programs",$programs,"REG_SZ")
$ret=writevalue($key,"Desktop",$desktop,"REG_SZ")
$ret=writevalue($key,"NoStartMenuSubFolders","1","REG_SZ")
$ret=writevalue($key,"Startup",$startup,"REG_SZ")
$ret=writevalue($key,"NetHood",$nethood,"REG_SZ")
$ret=writevalue($key,"Start Menu",$startmenu,"REG_SZ")
endif

 

 

HOME ABOUT FEATURES TIPS/TRICKS DEMO PRICING SUPPORT CONTACT US

 Copyright C&R Software Inc. 2002.
Contact Us contact@my-sanity.com.
Last updated: 12/03/02.