Re: How to use BAT file in SMS 2003 to update Register in client P
From: yun (yun_at_discussions.microsoft.com)
Date: 01/25/05
- Next message: Alexey Golovko: "MSI package doesn't deploy ! (error 1619)"
- Previous message: Shehzad Khoja [MSFT]: "Re: Reboot after running batch file doesn't work"
- In reply to: Shehzad Khoja [MSFT]: "Re: How to use BAT file in SMS 2003 to update Register in client PC."
- Next in thread: Shehzad Khoja [MSFT]: "Re: How to use BAT file in SMS 2003 to update Register in client P"
- Reply: Shehzad Khoja [MSFT]: "Re: How to use BAT file in SMS 2003 to update Register in client P"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 24 Jan 2005 22:37:19 -0800
Hi,
Thanks for your questions. Here are more detail information:
We are in W2K3 Server AD environemtn and client PC is Windows 2000
Professiona SP3 or SP4. Each user has logon script to map network drivers,
sync. time with server and so on.
S: is public network driver that everybody has read only permission.
Actually the SMS job works and we can see the result from here. I add some
"Pause" command in the batch file than I try to run in SMS job.
You know we have some Power User in client PC. We can't use logon script to
update their Register when they logon. So I think if I can use SMS to achieve
this purpose since it use SMS account working as one member of local admin
group.
I can see the Copy jobs are finished well and I checked them already.
The Register jobs are shown finished, there is no error reported at all, but
actually it doesn't work.
Even I tried to create a new SMS job to run:
regedit.exe /s S:\IT\IT-Software\PC-Config\dns.reg
directly, but the result is same.
So far I can't see where is the problem.
======================================
S:\IT\IT-Software\PC-Config>pause
Press any key to continue . . .
S:\IT\IT-Software\PC-Config>Set runpath=S:\IT\IT-Software\PC-Config
S:\IT\IT-Software\PC-Config>regedit.exe /s S:\IT\IT-Software\PC-Config\dns.reg
S:\IT\IT-Software\PC-Config>COPY S:\IT\IT-Software\PC-Config\dns.reg C:\
1 file(s) copied.
S:\IT\IT-Software\PC-Config>regedit.exe /s
S:\IT\IT-Software\PC-Config\xpsource.
reg
S:\IT\IT-Software\PC-Config>regedit.exe /s
S:\IT\IT-Software\PC-Config\intraw2k.
reg
S:\IT\IT-Software\PC-Config>COPY S:\IT\IT-Software\PC-Config\intraw2k.reg C:\
1 file(s) copied.
S:\IT\IT-Software\PC-Config>IF Not EXIST C:\WINNT\enlist.ini GOTO NTLOGON
S:\IT\IT-Software\PC-Config>copy S:\IT\IT-Software\PC-Config\enlist.ini
c:\winnt
\enlist.ini /Y
1 file(s) copied.
S:\IT\IT-Software\PC-Config>IF EXIST c:\frut2000.reg GOTO NZFONT
S:\IT\IT-Software\PC-Config>pause
Press any key to continue . . .
======================================
Thanks a lot for your time.
"Shehzad Khoja [MSFT]" wrote:
> Can you explain what do you mean by doesn't work at all? It fails to find
> the files? It runs but fails with a failure exit code? Or client doesn't get
> the program at all?
>
> Also, in your command line, what is S:\ drive? Is it a physical drive? Or a
> mapped drive? What it is mapped to? Under which context this drive mapping
> was done? And who mapped this drive in the first place?
>
> Also, you might wanna see this KB article if you are running a batch file
> and your reg file in also on the DP
> http://support.microsoft.com/default.aspx?scid=kb;en-us;156276
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "yun" <yun@discussions.microsoft.com> wrote in message
> news:DF839045-9E0A-4407-9AFE-D624E9BA0E1E@microsoft.com...
> > Dear All,
> >
> > I am trying to update/change Register information of client PCs by SMS
> > 2003
> > Software Distribution function from BAT file.
> >
> > The BAT file contains some commands like:
> > regedit.exe /s S:\IT\xpsource.reg
> >
> > I hope I can use this function to update client PC setup, current user
> > setup
> > every day. But I can see the command "regedit.exe /s S:\IT\xpsource.reg"
> > doesn't work at all. I set run with local administrator right.
> >
> > Do you have any idea about this case?
> >
> > Thanks a lot.
> >
> > Have a nice day.
> >
> > BR YUN
> >
> > I can see the itme and I can run it in [Run Advertised Programs] without
> > any
> > problems. I even use "Pause" command in BAT file to monitor the process,
> > there is no error
>
>
>
- Next message: Alexey Golovko: "MSI package doesn't deploy ! (error 1619)"
- Previous message: Shehzad Khoja [MSFT]: "Re: Reboot after running batch file doesn't work"
- In reply to: Shehzad Khoja [MSFT]: "Re: How to use BAT file in SMS 2003 to update Register in client PC."
- Next in thread: Shehzad Khoja [MSFT]: "Re: How to use BAT file in SMS 2003 to update Register in client P"
- Reply: Shehzad Khoja [MSFT]: "Re: How to use BAT file in SMS 2003 to update Register in client P"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|