Batch files

G

Guest

I have created an batch file by which i can install Windows XP Patches to
all the machines simultaneously through login script. But it is working in
administrator mode whereas in our firm,maximum of our users are Power
Users.So i need a solution for this Please.I hereby attaching my Sample batch.
@echo off
setlocal
set PATHTOFIXES=\\inmumbmeypr02\apps\jan patch

%\\inmumbmeypr02\apps\jan patch%\WindowsXP-KB912919-x86-ENUSP2.exe /Z
/passive /u
 
P

Pegasus \(MVP\)

MuraliKrishnan said:
I have created an batch file by which i can install Windows XP Patches to
all the machines simultaneously through login script. But it is working in
administrator mode whereas in our firm,maximum of our users are Power
Users.So i need a solution for this Please.I hereby attaching my Sample batch.
@echo off
setlocal
set PATHTOFIXES=\\inmumbmeypr02\apps\jan patch

%\\inmumbmeypr02\apps\jan patch%\WindowsXP-KB912919-x86-ENUSP2.exe /Z
/passive /u

Make your power users members of the local administrator
group, using this command at each workstation:

net localgroup administrators "Power Users" /add
 
G

Guest

Thank You very much but it is very difficult to go and add all the users to
administrator group and also in our firm all should not be in administrator
group.Suppose if i can add them in administrator group group through the same
command then what command i should use to add again back to poweruser
category.I am expecting your reply and i need this process to be done only
for running this particular EXE not permanantly.
 
P

Pegasus \(MVP\)

There is a big difference between a local administrator
and a domain administrator. Try it for yourself so that
you see what rights to do get and don't get.

You don't need to go to every workstation to make
this change. Using psexec.exe (www.sysinternals.com)
lets you do it comfortably from your own PC.
 
G

Guest

Sorry Pegasus.I tried that it was working fine but in our company, we have a
policy that we should not use Third party software.So is their any other
solution and also whether it is possible to add that Psexec.exe in a batch
and also it removes all the power user category and adds it to administrator
and also i want to revert all them back to power user category and is their
any other way so that by using the network admin username and password ,i
should run the patches on all the machines like we do as RUN AS Administrator.
 
P

Pegasus \(MVP\)

There are two obvious solutions:
a) Walk to each PC and install the patches personally, or
b) Use a Microsoft product such as rcmd.exe (Windows
Resource Kit) to do it from your own console.


MuraliKrishnan said:
Sorry Pegasus.I tried that it was working fine but in our company, we have a
policy that we should not use Third party software.So is their any other
solution and also whether it is possible to add that Psexec.exe in a batch
and also it removes all the power user category and adds it to administrator
and also i want to revert all them back to power user category and is their
any other way so that by using the network admin username and password ,i
should run the patches on all the machines like we do as RUN AS Administrator.
 

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