Page 1 of 1 1
Topic Options
#191069 - 2008-12-12 07:04 PM New To Kixtart: Would Like Two Scripts To Run At Logon
VerGuy Offline
Just in Town

Registered: 2008-12-12
Posts: 2
Hi I have just signed up and had a look around and can't find pointers to what I need. Hopefully I haven't missed them.

I work in a school. The school network is divided into a [new] domain for students and a domain for staff. The student domain is coming along nicely [we are using Windows Server 2008 to manage the users] The staff domain is another matter. For rather complicated reasons we are using Windows Server 2003 [running in compatibility mode] for staff so I can't use the ADMs I would like to for some of the user settings. I am currently looking for two KIX scripts to do the following:

1. Redirect MyDocuments for staff at logon to U:\

This is their drive letter which contains MyDocuments.

2. Set the proxies for Internet Explorer.

Staff are getting the proxy I use for students which will be heavily filtered in future and as a result unsuitable for staff use. I would like to be able to stipulate that:

HTTP
HTTPS
FTP

are set to values given by our ISP.

Station OS: Windows XP Pro: SP3.

It would be great if someone could let me know how to do this.

Thanks in advance.

Top
#191071 - 2008-12-12 08:11 PM Re: New To Kixtart: Would Like Two Scripts To Run At Logon [Re: VerGuy]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Well the folder redirection should really be done with a policy not with KiX, but here is some untested generic code to give you an idea.

 Code:
Dim $DesktopFolder, $WD, $MyPersonalDocs
$DesktopFolder = '\\SERVER01\USERS' + @USERID + '\Desktop'
$MyPersonalDocs = '\\SERVER01\USERS' + @USERID + '\My Documents'
If GetFileAttr($DesktopFolder) & 16
  ;Folder found do nothing
Else
  MD $DesktopFolder
EndIf
If GetFileAttr($MyPersonalDocs) & 16
  ;Folder found do nothing
Else
  MD $MyPersonalDocs
EndIf
$WD = WriteValue('HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders','Desktop',$DesktopFolder,REG_EXPAND_SZ)
$WD = WriteValue('HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders','Personal',$MyPersonalDocs,REG_EXPAND_SZ)

Top
#191075 - 2008-12-12 11:48 PM Re: New To Kixtart: Would Like Two Scripts To Run At Logon [Re: NTDOC]
VerGuy Offline
Just in Town

Registered: 2008-12-12
Posts: 2
Thanks. I will try that next week when school starts again.
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
0 registered and 837 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.053 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

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