how to defrag users PC's

K

kevin bailey

I have a domain with dozens of Windows XP Pro PC's.

The users log on to the domain.

When they logon the batch file logon.bat is run.

I want to put something is this file which will defrag the users C: drives
as they log on.





1. please don't answer
defrag.exe c:

The users do not have administrator permissions (obviously) as they are
users. Also we have enabled group policies to only allow the users certain
privileges.

2. Please do not mention anything which involves running around to all the
PC's. I want a command/commands which I can add to the logon.bat file
only.

3. Please do not criticise running defrag every time a user logs on. We had
this for the Win98 PC's and the system worked so well (with other things)
that we had stable Win98 PC's running for years.


So - commands in the logon.bat file - and that's it.

Cheers,

Kevin

For a Brucie bonus I'd appreciate the code which means we can choose to run
Win98's defrag for the Win98 PC and the new defrag for the Win XP PC's.

Probably some sort of conditional based on ver.
 
H

Haggis

kevin bailey said:
I have a domain with dozens of Windows XP Pro PC's.

The users log on to the domain.

When they logon the batch file logon.bat is run.

I want to put something is this file which will defrag the users C: drives
as they log on.





1. please don't answer
defrag.exe c:

The users do not have administrator permissions (obviously) as they are
users. Also we have enabled group policies to only allow the users
certain
privileges.

2. Please do not mention anything which involves running around to all the
PC's. I want a command/commands which I can add to the logon.bat file
only.

3. Please do not criticise running defrag every time a user logs on. We
had
this for the Win98 PC's and the system worked so well (with other things)
that we had stable Win98 PC's running for years.


So - commands in the logon.bat file - and that's it.

Cheers,

Kevin

For a Brucie bonus I'd appreciate the code which means we can choose to
run
Win98's defrag for the Win98 PC and the new defrag for the Win XP PC's.

Probably some sort of conditional based on ver.

http://www.diskeeper.com/
 
H

Haggis

kevin bailey said:
appreciate the answer but cost can not be justified by management - they
figure that they've paid plenty for the XP licenses - asking for more does
not make sense.


I hear you ....sorry I can't be of much help ...

Boss: "is everything legal ?"
Me: "no"
Boss: "what do we need to make us legal"
Me: "more money"

end of conversation .....LOL

(I bet you have XP lic. ...but do you have a lic. for each machine to
connect to the server ? every computer that connects to a "server" also
requires a "client lic.")
 
K

kevin bailey

does not make sense.
I hear you ....sorry I can't be of much help ...

Boss: "is everything legal ?"
Me: "no"
Boss: "what do we need to make us legal"
Me: "more money"

end of conversation .....LOL

(I bet you have XP lic. ...but do you have a lic. for each machine to
connect to the server ? every computer that connects to a "server" also
requires a "client lic.")


Thankfully we use Samba for the server so no license costs at all. Mind you
- it always helps to list exactly how much has been saved otherwise
management might take it all for granted!
 
H

Haggis

kevin bailey said:
Thankfully we use Samba for the server so no license costs at all. Mind
you
- it always helps to list exactly how much has been saved otherwise
management might take it all for granted!


sooooo true :> (good call on Samba ...I inherited MS :<)
 
C

Carl Kaufmann

kevin said:
I have a domain with dozens of Windows XP Pro PC's.

The users log on to the domain.

When they logon the batch file logon.bat is run.

I want to put something is this file which will defrag the users C: drives
as they log on.





1. please don't answer
defrag.exe c:

The users do not have administrator permissions (obviously) as they are
users. Also we have enabled group policies to only allow the users certain
privileges.

2. Please do not mention anything which involves running around to all the
PC's. I want a command/commands which I can add to the logon.bat file
only.

3. Please do not criticise running defrag every time a user logs on. We had
this for the Win98 PC's and the system worked so well (with other things)
that we had stable Win98 PC's running for years.


So - commands in the logon.bat file - and that's it.

Cheers,

Kevin

For a Brucie bonus I'd appreciate the code which means we can choose to run
Win98's defrag for the Win98 PC and the new defrag for the Win XP PC's.

Probably some sort of conditional based on ver.

http://www.kessels.com/defrag/index.html

This is what I use at home and at work, but it works only on
2000/XP/2003. It's been a long time since I've played with 98, but
something based on the %OS% environment variable might be what you need.

Carl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top