Re: This script doesn't work i don't know why
- From: mosquito_hippy <mosquitohippy@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 20 Dec 2008 18:10:00 -0800
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
--
- References:
- This script doesn't work i don't know why
- From: mosquito_hippy
- Re: This script doesn't work i don't know why
- From: Al Dunbar
- Re: This script doesn't work i don't know why
- From: Richard Mueller [MVP]
- This script doesn't work i don't know why
- Prev by Date: Re: This script doesn't work i don't know why
- Next by Date: Re: This script doesn't work i don't know why
- Previous by thread: Re: This script doesn't work i don't know why
- Next by thread: Re: This script doesn't work i don't know why
- Index(es):
Relevant Pages
|
Loading