The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: WAY OT: Logon Scripts



Hmmm. Unless you are compiling the code, I bet you are using VBScript
instead of VB6.  An easy way to tell: the DIM statements are shorter.

For example, in VB6:
Dim strTest as string

In vbScript:
Dim strTest

Anyway, that is neither here nor there...

Does the executable that needs to be run as an admin user require any
additional prompts to be answered?

Frankly, I cringe at elevated privileges.  I would probably do this:

1. Create a test user.
2. Make that user local administrator
3. Run the executable as the test user.
4. Log in as the regular admin.
5. Remove admin access from the test user.
6. Copy c:\Documents and Settings\TestUser\*.* to c:\Documents and
Settings\Default user.

Do this on all machines, or ideally, on the master machine before you image
it.

This way, when a user logs onto a given machine for the first time, it
creates a new profile folder for that user, and the initial contents are
the
settings from the "Default User" profile, including the
previously installed
executable.

Either that or, using FileMon and RegMon from www.sysinternals.com, monitor
what is failing when a regular user runs the app, and then give the regular
users access to those locations.

As to the script creating a local account, why would you want to do that?
That defeats the purpose of a domain, and then the login script would not
run for the local accounts.  If you really want to, you would be better off
having a startup script do that than a logon script, but maybe if I
understand the logic a bit better, there is a better way.

Not much help, I guess.  Sorry.  Maybe with a bit more info, I could help
more.  But my login/startup/shutdown/logoff scripts are all VBScript as
well...


Glenn Sullivan, MCSE+I  MCDBA
David Clark Company Inc.

-----Original Message-----
From: Rob Mouser [mailto:rob@xxxxxxx]
Sent: Friday, December 05, 2003 7:44 AM
To: ukha_d@xxxxxxx
Subject: RE: [ukha_d] WAY OT: Logon Scripts


Sorry yes in VB (Ver 6.0 I believe although we do have access to .net at a
push.)

Many thanks

Rob Mouser



-----Original Message-----
From: Sullivan, Glenn [mailto:gsullivan@xxxxxxx]
Sent: 05 December 2003 12:44
To: 'ukha_d@xxxxxxx'
Subject: RE: [ukha_d] WAY OT: Logon Scripts

What language are you scripting in?  VBScript, Kix, Shell commands, etc...

Glenn Sullivan, MCSE+I  MCDBA
David Clark Company Inc.

-----Original Message-----
From: Rob Mouser [mailto:rob@xxxxxxx]
Sent: Friday, December 05, 2003 7:27 AM
To: ukha_d@xxxxxxx
Subject: [ukha_d] WAY OT: Logon Scripts




Hi This is a post on behalf of one of the guys here at work and I know
we've
got some clever folk on this list.



He's trying to achieve the following:



The plan is to use group policy to lock down the users machine so they
cannot access anything except a few select icons on the desktop.



Identical software will be installed in identical locations on each machine
e.g.



C:\Program Files\TPSIMS\TPSIMS.exe



A folder full of shortcuts will be then created on the server.  Upon
logining into the network the script will delete all existing icons from
the
desktop and copy over the shortcuts from the server.



As well as copying over the shortcuts the login script needs to :



a.       Map drives (already done).

b.       Create folders and copy over certain filers (already done).

c.       Call an executable that alters some registry setting for the
printer (Big group Minolta thing that has to be mapped from each machine
rather than via a shared server install.).  This executable starts to run
but as the user is not an administrator on the local machine it fails.
Therefore we need to be able to run the script as an administrator without
having to setup each user as a local administrator.

d.       It would also be useful if the script could create a local account
for the user giving them standard user privileges.



I hope that makes sense and can it be done?





Many thanks



Rob





[Non-text portions of this message have been removed]



UKHA 2004: 15th and 16th May 2004

http://www.automatedhome.co.uk
Post message: ukha_d@xxxxxxx
Subscribe:  ukha_d-subscribe@xxxxxxx
Unsubscribe:  ukha_d-unsubscribe@xxxxxxx
List owner:  ukha_d-owner@xxxxxxx

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/



UKHA 2004: 15th and 16th May 2004

http://www.automatedhome.co.uk
Post message: ukha_d@xxxxxxx
Subscribe:  ukha_d-subscribe@xxxxxxx
Unsubscribe:  ukha_d-unsubscribe@xxxxxxx
List owner:  ukha_d-owner@xxxxxxx

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/




UKHA 2004: 15th and 16th May 2004

http://www.automatedhome.co.uk
Post message: ukha_d@xxxxxxx
Subscribe:  ukha_d-subscribe@xxxxxxx
Unsubscribe:  ukha_d-unsubscribe@xxxxxxx
List owner:  ukha_d-owner@xxxxxxx

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/



Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.