Re: This script doesn't work i don't know why



I'll try your script but just for curiosity, what's the problem with the
script, why it doesn't run as supposed?

"Richard Mueller [MVP]" wrote:


"Al Dunbar" <alandrub@xxxxxxxxxxx> wrote in message
news:esizUQmYJHA.1532@xxxxxxxxxxxxxxxxxxxxxxx

"mosquito_hippy" <mosquitohippy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:535913B3-775A-4EF6-8F3F-38D217CEFE94@xxxxxxxxxxxxxxxx
I wrote this machine script to apply a patch to the computers of a OU in a
Windows 2003 Server Domain.

if exist C:\patchs\kbxxxxxx.dat goto end
if exist C:\patchs\. goto label1
md c:\patchs
:label1
\\mcse-01\patchs\WindowsXP-KBxxxxxx-x86-enu.exe /norestart
/log:C:\patchs\
echo "patch applyed" > c:\patchs\kbxxxxxx.dat
:end

I gave to the group "Domain Computers" read and write rights over the
share
where the patch is located.

I know the script was actually executed because it creates the folder and
the flag file.

Any idea

If run as a logon script, perhaps the user lacks the privs necessary to
run the patch executable.

/Al



You might want to deploy the patch remotely. I have an example VBScript that
deploys any executable (if it runs silently with no user interaction) to all
computers in a domain group linked here:

http://www.rlmueller.net/Deploy.htm

The program uses WMI to connect to each computer in the group and run the
specified executable (with parameters). The program pings each computer
first to check if they are available. The program logs everything to a log
file. The person running the script must be a member of the local
Administrators group. By default the group "Domain Admins" is added to the
local Administrators group when the computer is joined to the domain, so if
you are member of that group you should be fine. No one needs to be logged
into the remote computers, but they must be connected to the network and
running.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--



.



Relevant Pages

  • Re: Patch Management & Identifying Hosts
    ... Patch Management of the Security Operations ... WMI is also an option. ... "A WSH script using VBScript is explained. ... the result from the online computers. ...
    (microsoft.public.win2000.security)
  • Re: Finding users in local admin groups
    ... > Here is a vbscript that you can run against a remote computer that moves ... > *local* users except 'Administrator) from the Administrators group to the ... You should also add to the script logging to a file of the ... > you moved on what computers. ...
    (microsoft.public.win2000.security)
  • Re: Change local administrator password ? through GPO or push script ?
    ... I would like to change the local administrator password of every computers member of my AD domain but I am not sure of the best method. ... Create a vbs script that points to the local computer and then deploy this script by GPO. ... This attribute will permit to know wich admin password is configured for this machine. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Not so Newbie
    ... The script is designed for situations like yours. ... wit 35+ computers and to go to each of those computers to individualy ... Prompt for an executable to run on each remote computer in the group. ... so you know where the deployment failed. ...
    (microsoft.public.windows.server.scripting)
  • Re: VBscript that restart the domain comptuer
    ... If you have a shutdown script that cleans up the profiles, ... permissions can restart all computers in a list remotely. ... I have already VB script I ...
    (microsoft.public.windows.server.active_directory)

Loading