Page 1 of 1 1
Topic Options
#152003 - 2005-11-22 04:29 PM Make directories for the new user
nihad85 Offline
Lurker

Registered: 2005-11-14
Posts: 4
Hi guys,

im still strugeling with the script.. i now have a new prob..

I must make a new script when a new user is made and then running the script a home directory, profile and tsprofile directory most be made and the full control f this maps must only be for the domeinadministartors and the user him self..

can any 1 help me withe script?

thnQ

Top
#152004 - 2005-11-22 06:41 PM Re: Make directories for the new user
StarwarsKid Offline
Seasoned Scripter
*****

Registered: 2005-06-15
Posts: 506
Loc: Oregon, USA
Do you have any script started yet? If so, post it.

You can create directories with KiXtart. You can set NTFS permissions with XCACLS. You can also have windows set some of those directories up for you via the user profile that is created. What is your network domain version?
_________________________
let the wise listen and add to their learning,
and let the discerning get guidance- Proverbs 1:5

Top
#152005 - 2005-11-23 11:25 AM Re: Make directories for the new user
nihad85 Offline
Lurker

Registered: 2005-11-14
Posts: 4
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?

Top
#152006 - 2005-11-23 10:36 PM Re: Make directories for the new user
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you can add the folder protection to your logonscript.
anyways, as long as you have the folder on wksta's hard drive, it is always readable to everyone.
that's windows thingie and you can't change that.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1607 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.1 seconds in which 0.072 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org