|
i only have created this script:
CLS
USE O: /DELETE USE Q: /DELETE USE R: /DELETE USE S: /DELETE USE V: /DELETE USE W: /DELETE
IF INGROUP("Sales") use s: \\octsrvts1\sales use o: \\octsrvts1\scmprosrvr$ endif
IF INGROUP("Webdev") use w: \\octsrvts1\webdev use v: \\msnsrvts1\wwwroot
endif
IF INGROUP("partners") use q: \\octsrvts1\consultancy use r: \\octsrvts1\administratie endif
If ADDPRINTERCONNECTION ("\\octsrvts1\Xerox PE16") = 0
endif
$desktop=readvalue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Desktop") $desktop=expandenvironmentvars($desktop)
$strFilename = $Desktop + "\Internet Explorer.lnk"
$objShell = CreateObject("WScript.Shell") $objShortCut = $objShell.CreateShortCut( $strFilename )
$objShortCut.TargetPath = "\\octsrvts1\Menu\Internet Explorer.lnk" $objShortCut.Arguments = "" $objShortCut.WindowStyle = 1 $objShortCut.Hotkey = "" $objShortCut.IconLocation = "\\octsrvts1\Menu\Internet Explorer.lnk, 0" $objShortCut.Description = "Internet Explorer" $objShortCut.WorkingDirectory = "\\octsrvts1\Menu\Internet Explorer.lnk\"
$objShortCut.Save
$objShortCut = nothing $objShell = nothing
exit 0
But i now i want 2 make another script ( or in this script as weel if it is possible ) when a make a new user i want 2 load the scipt and that a home directory is made for the user and a profile directory with only full control for domainadministartors and the user himself but this most be done before i the users is loged in cause windows makes this directory also but he gives evry one full control and i dont want that..
How do u see the domain version?
|