Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   General IT Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=19)
-   -   Logon Scripts (https://www.cableforum.uk/board/showthread.php?t=14649)

Matthew 10-07-2004 23:40

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.

Paul 10-07-2004 23:45

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.

Matthew 11-07-2004 00:21

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?

Paul 11-07-2004 01:34

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.

MovedGoalPosts 11-07-2004 10:33

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?

Matthew 11-07-2004 10:56

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

stingray 11-07-2004 12:30

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.

Matthew 11-07-2004 13:13

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?

Paul 11-07-2004 14:30

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/ :)


All times are GMT. The time now is 00:20.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum