Tech Support > Microsoft Windows > Batch files
Batch files
Posted by MuraliKrishnan on January 9th, 2006


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

--
MuraliKrishnan
Entry level Network Engineer

Posted by Pegasus \(MVP\) on January 9th, 2006



"MuraliKrishnan" <MuraliKrishnan@discussions.microsoft.com> wrote in message
news:F83B575F-1440-431F-A15C-CFD687F02F1A@microsoft.com...
> 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
>
> --
> MuraliKrishnan
> Entry level Network Engineer


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

net localgroup administrators "Power Users" /add


Posted by MuraliKrishnan on January 9th, 2006


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.
--
MuraliKrishnan
Entry level Network Engineer


"MuraliKrishnan" wrote:

> 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
>
> --
> MuraliKrishnan
> Entry level Network Engineer

Posted by Pegasus \(MVP\) on January 9th, 2006


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.


"MuraliKrishnan" <MuraliKrishnan@discussions.microsoft.com> wrote in message
news:C26FAC91-5414-48F5-B1D4-55C9A0D7D9BE@microsoft.com...
> 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.
> --
> MuraliKrishnan
> Entry level Network Engineer
>
>
> "MuraliKrishnan" wrote:
>
> > 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
> >
> > --
> > MuraliKrishnan
> > Entry level Network Engineer



Posted by MuraliKrishnan on January 10th, 2006


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.
--
MuraliKrishnan
Entry level Network Engineer


"Pegasus (MVP)" wrote:

> 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.
>
>
> "MuraliKrishnan" <MuraliKrishnan@discussions.microsoft.com> wrote in message
> news:C26FAC91-5414-48F5-B1D4-55C9A0D7D9BE@microsoft.com...
> > 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.
> > --
> > MuraliKrishnan
> > Entry level Network Engineer
> >
> >
> > "MuraliKrishnan" wrote:
> >
> > > 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
> > >
> > > --
> > > MuraliKrishnan
> > > Entry level Network Engineer

>
>
>

Posted by Pegasus \(MVP\) on January 10th, 2006


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" <MuraliKrishnan@discussions.microsoft.com> wrote in message
news:C86E6CF9-78B0-4486-A4D7-2F1DE68B1831@microsoft.com...
> 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.
> --
> MuraliKrishnan
> Entry level Network Engineer
>
>
> "Pegasus (MVP)" wrote:
>
> > 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.
> >
> >
> > "MuraliKrishnan" <MuraliKrishnan@discussions.microsoft.com> wrote in

message
> > news:C26FAC91-5414-48F5-B1D4-55C9A0D7D9BE@microsoft.com...
> > > 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.
> > > --
> > > MuraliKrishnan
> > > Entry level Network Engineer
> > >
> > >
> > > "MuraliKrishnan" wrote:
> > >
> > > > 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
> > > >
> > > > --
> > > > MuraliKrishnan
> > > > Entry level Network Engineer

> >
> >
> >




Similar Posts