10-07-2004, 23:40
|
#1
|
|
cf.mega poster
Join Date: Jul 2003
Location: Lincolnshire
Age: 38
Posts: 2,033
|
Logon Scripts
I have several computers in my home network; 1 XP pro desktop and 1 XP home laptop. At times there are other mahcines running but they are the two main ones.
In the XP Pro one in the Group Policy Editor I have setup a logon script to be run and it all works fine but it does it for all the users when they logon and I only want certain scripts to run for certain user groups.
There is a box under the location of the script that says script parameters. What would I enter in the for a script to run only for administrators and then a seperate one for the users group.
Please help me as this is doing my head in. Thanks in advance.
|
|
|
10-07-2004, 23:45
|
#2
|
|
Dr Pepper Addict
Cable Forum Admin
Join Date: Oct 2003
Location: Nottingham
Age: 63
Services: Zen & YouFibre FTTP, Sky Q TV, Sky Mobile, Flextel SIP
Posts: 31,373
|
Re: Logon Scripts
I imagine the parameters are just be passed to the script - you would need the script to interpret them to decide what to do.
If you write a script in something like KIX you can determine what groups the user is in and take action based on this - then everyone runs the same script. I use this at work.
__________________
Baby, I was born this way.
|
|
|
11-07-2004, 00:21
|
#3
|
|
cf.mega poster
Join Date: Jul 2003
Location: Lincolnshire
Age: 38
Posts: 2,033
|
Re: Logon Scripts
I just use .bat files and write them in notepad. What can I put so it only runs on certain user groups?
|
|
|
11-07-2004, 01:34
|
#4
|
|
Dr Pepper Addict
Cable Forum Admin
Join Date: Oct 2003
Location: Nottingham
Age: 63
Services: Zen & YouFibre FTTP, Sky Q TV, Sky Mobile, Flextel SIP
Posts: 31,373
|
Re: Logon Scripts
Quote:
|
Originally Posted by leggom
I just use .bat files and write them in notepad. What can I put so it only runs on certain user groups?
|
I cannot see how you could do this with simple .bat files.
__________________
Baby, I was born this way.
|
|
|
11-07-2004, 10:33
|
#5
|
|
Inactive
Join Date: Jun 2003
Location: 127.0.0.1
Age: 62
Posts: 15,868
|
Re: Logon Scripts
I dunno, can you not just put a shotcut to the .bat file in start > all programs > startup menu for just the administrator?
Yes you'd have to do that for everyone who has the admin group rights, but on a home network that's only one or two people, so not too tedious?
|
|
|
11-07-2004, 10:56
|
#6
|
|
cf.mega poster
Join Date: Jul 2003
Location: Lincolnshire
Age: 38
Posts: 2,033
|
Re: Logon Scripts
Yeah I think I will have to do it in the startup folder.
With a .bat I can get it to map out the drives, set the time and delete old mapped out drives. I can also copy files from one folder to another. I even have a .bat file that I run on new systems that deletes the Windows Messenger and starts the install of MSN Messenger.
Doesn't many people use .bat files then in the Windows NT, 2000, 2003 networks then? All the networks I use do.
Here is an example of one that I have:
net time \\server /set /yes
net use h: /home (Has to have the home directory specified in the user settings)
net use p: \\server\public
net use s: \\server\shared
net use o: \\computer2\outlook
net use f: \\computer2\files
|
|
|
11-07-2004, 12:30
|
#7
|
|
cf.member
Join Date: Jun 2004
Posts: 29
|
Re: Logon Scripts
Quote:
|
Originally Posted by leggom
Doesn't many people use .bat files then in the Windows NT, 2000, 2003 networks then? All the networks I use do.
|
I expect some do, but that wasn't what you asked.
You wanted to pick out user groups for which you need a proper scripting language.
|
|
|
11-07-2004, 13:13
|
#8
|
|
cf.mega poster
Join Date: Jul 2003
Location: Lincolnshire
Age: 38
Posts: 2,033
|
Re: Logon Scripts
OK. Where can I get a copy of a progrma that does proprer scripting language?
Are there any freeware versions of this sort of program on the web or not?
|
|
|
11-07-2004, 14:30
|
#9
|
|
Dr Pepper Addict
Cable Forum Admin
Join Date: Oct 2003
Location: Nottingham
Age: 63
Services: Zen & YouFibre FTTP, Sky Q TV, Sky Mobile, Flextel SIP
Posts: 31,373
|
Re: Logon Scripts
Quote:
|
Originally Posted by leggom
OK. Where can I get a copy of a progrma that does proprer scripting language?
Are there any freeware versions of this sort of program on the web or not?
|
http://www.kixtart.org/
__________________
Baby, I was born this way.
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 00:32.
|