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


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
>
>
>



Relevant Pages

  • Re: How to use BAT file in SMS 2003 to update Register in client P
    ... I suspect that drive is mapped in a different context than the program being ... > We are in W2K3 Server AD environemtn and client PC is Windows 2000 ... > Actually the SMS job works and we can see the result from here. ... > "Pause" command in the batch file than I try to run in SMS job. ...
    (microsoft.public.sms.swdist)
  • Re: Modify Registry on all SBS2003 clients
    ... but i have one question: Will the reg add comand work if the users ... logging on the client computer dont have administrative rights on the client ... registry setting to all workstations. ... You may copy above command into the login script file SBS_LOGIN_SCRIPT.bat ...
    (microsoft.public.windows.server.sbs)
  • Re: After SP-Advanced client doesnt get assigned: Acces denied on
    ... Sms 2003 Service Pack 2 on client and server. ... W2k3 Server no SP on secondary site ... Attempting to find 'SMS_SLP' on LANA 0 from WINS LocationServices ... LocationServicesAttempting to retrieve the IPSubnet boundaries for the ...
    (microsoft.public.sms.admin)
  • Re: After SP-Advanced client doesnt get assigned: Acces denied on
    ... Sms 2003 Service Pack 2 on client and server. ... W2k3 Server no SP on secondary site ... Attempting to find 'SMS_SLP' on LANA 0 from WINS LocationServices ... LocationServicesAttempting to retrieve the IPSubnet boundaries for the ...
    (microsoft.public.sms.admin)
  • Problems with Auto-Login of RDP Client to a W2K3 Server
    ... I have a w2K3 server that will not allow my password to be "read" by the ... client and automatically log me on. ... connection" policy and 2) I tried to uncheck the "Always Prompt for Password" ... The box is checked, but the control is ...
    (microsoft.public.windows.terminal_services)

Loading