[THIN] Re: OT? WSH Logon Scripts

  • From: "Mack, Rick" <RMack@xxxxxxxxxxxxxx>
  • To: "'thin@xxxxxxxxxxxxx'" <thin@xxxxxxxxxxxxx>
  • Date: Sat, 10 May 2003 09:55:59 +1000

Hi Joseph,

Sorry, Can't resist. I do this all with kix. And it doesn't need a huge
script ;-)

Regards,

Rick

Ulrich Mack
rmack@xxxxxxxxxxxxxx
Volante Systems
18 Heussler Terrace, Milton 4064
Queensland Australia
tel +61 7 32467704



-----Original Message-----
From: Joseph Finley [mailto:jfinley@xxxxxxxxxxxxx] 
Sent: Saturday, 10 May 2003 6:26 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: OT? WSH Logon Scripts



I tried to use KIX in the past but just didn't like it. =20

I wrote a huge VBS logon script to tame our users because most of them =
can't manage their desktops or remember printers but it does the following =
which I couldn't do in Kix.......


Queries databases for printers, sets default printer based on user and
printer preference. (in this case Sybase) Maps drives Set's up Proxy server
based on Group Membership Creates Desktop shortcuts Writes all user settings
back to the database (in this case Sybase) Office registry settings (default
folder) Registry changes (Maps Outlook Express files to a drive share) Even
plays a .wav file is wanted....

Most of this of course can be done easily now in Policies on 2000, but I =
did this 3+ years ago...




-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On =
Behalf Of White, Michael S
Sent: Friday, May 09, 2003 10:43 AM
To: 'thin@xxxxxxxxxxxxx'
Subject: [THIN] Re: OT? WSH Logon Scripts



First why is Kix better? =20



Here is some sample code you can use. =20

Mapping a drive


Set WSHNetwork =3D WScript.CreateObject("WScript.Network")

WSHNetwork.RemoveNetworkDrive "G:", 0, -1 WSHNetwork.MapNetworkDrive
"G:","\\ServerName\Share"



Getting group membership


strDomain =3D "Enter Domain Name Here"

Set WSHNetwork =3D WScript.CreateObject("WScript.Network")

strUser =3D WSHNetwork.UserName

adsPath =3D "WinNT://" & strDomain & "/" & strUser

set adsObj =3D GetObject(adsPath)

For Each Prop In adsobj.groups

Msgbox Prop.Name

Next


-----Original Message-----
From: Braebaum, Neil [mailto:Neil.Braebaum@xxxxxxxxxxxxxxxxx]=20
Sent: Friday, May 09, 2003 9:20 AM
To: 'thin@xxxxxxxxxxxxx'
Subject: [THIN] Re: OT? WSH Logon Scripts


Just out of interest, why is it you wish to get away from Kixtart - = you've
mentioned the WAN thing, is it the Kixtart caching functionality that's
causing issues, or have you genuinely found performance differences in = WAN
environments between the two scripting technologies?

I honestly think, for much of login script activity, that Kixtart can't = be
beat. And anyways, nearly always the best choice is the tool you're most
familiar with.

Personally I use Kixtart, WSH / ADSI / vbscript, and normal command = files
for various things - but I honestly think that for login processing = stuff,
Kixtart is the optimal choice - especially if you know it already.

I would have thought you'll have plenty of opportuinity to use and learn =
WSH / ADSI / WMI stuff, from lots of other admin tasks you'll no doubt find.

Neil

>-----Original Message-----
>From: Derek J. Lambert [mailto:dlambert@xxxxxxxxxx]
>Sent: Friday, May 09, 2003 8:44 AM
>To: thin@xxxxxxxxxxxxx
>
>This may be a little OT, but I was wondering if anyone had some WSH 
>logon scripts they could send my way. I am currently using kixstart,=20 
>but would like to migrate our scripts to VBScript & WSH to improve=20 
>execution time across our WAN. If you have something that's=20 not too 
>too=20 complex (I'm interested in mapping/deleting shares, checking 
>group=20 membership,
>etc.) that you could share it would be greatly appreciated!

***********************************************************************
This e-mail and its attachments are confidential and are intended for=20 the
above named recipient only. If this has come to you in error,=20 please
notify the sender immediately and delete this email from your = system. You
must take no action based on this, nor must you copy or disclose it = or any
part of its contents to any person or organisation.

Statements and opinions contained in this email may not necessarily=20
represent those of Littlewoods. Please note that email communications=20 may
be monitored.=20

The registered office of Littlewoods Limited and its  subsidiaries is = 100
Old Hall Street, Liverpool, L70 1AB.=20 Registered number of Littlewoods
Limited is 262152=20
 ***********************************************************************
********************************************************
This Week's Sponsor - Emergent Online
EOL's Universal Printer new Features include:
Network Printing, Pagestreaming, 2400 DPI.
No Client Software Required!
http://www.go-eol.com/
**********************************************************

For Archives, to Unsubscribe, Subscribe or=20
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm
********************************************************
This Week's Sponsor - Emergent Online
EOL's Universal Printer new Features include:
Network Printing, Pagestreaming, 2400 DPI.
No Client Software Required!
http://www.go-eol.com/
**********************************************************

For Archives, to Unsubscribe, Subscribe or=20
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

********************************************************
This Week's Sponsor - Emergent Online
EOL's Universal Printer new Features include:
Network Printing, Pagestreaming, 2400 DPI.
No Client Software Required!
http://www.go-eol.com/
**********************************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm
--------------------------------------------------------------------------------------------------------------------
The information contained in this e-mail is confidential and may be subject
to legal professional privilege.  It is intended solely for the addressee.
If you receive this e-mail by mistake please promptly inform us by reply
e-mail and then delete the e-mail and destroy any printed copy.  You must
not disclose  or use in any way the information in the e-mail. There is no
warranty that this email or any attachment or message is error or virus free. 
It may be a private
communication, and if so, does not represent the views of Volante group Limited.


********************************************************
This Week's Sponsor - Emergent Online
EOL's Universal Printer new Features include:
Network Printing, Pagestreaming, 2400 DPI.
No Client Software Required!
http://www.go-eol.com/
**********************************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

Other related posts: