Re: EWF/DUA help needed
From: kevin (kevin_at_discussions.microsoft.com)
Date: 10/05/04
- Next message: Doug Hoeffel: "Re: EWF/DUA help needed"
- Previous message: Andy Allred [MS]: "Re: Installing Component database on windows server 2003"
- In reply to: KM: "Re: EWF/DUA help needed"
- Next in thread: KM: "Re: EWF/DUA help needed"
- Reply: KM: "Re: EWF/DUA help needed"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 5 Oct 2004 12:15:05 -0700
"KM" wrote:
> One more time with better wrapping...
>
> Your script does not reboot the device because it likely fails on the EXECUTE command.
>
> Something seems to be wrong in your command:
> EXECUTE,,DAYES,,c:\windows\system32\ewfmgr.exe,,c:\windows\system32\ewfmgr.exe c: -commit,,DAYES,,administrator,,admin,,,,,,
>
> Look at the command syntax:
> 3, [ErrorMode], [RebootOK], [ExpandMode], [ApplicationName], [ExpandMode],
> [CommandLine], [WaitForCompletion], [Timeout], [ExpandMode], UserName,
> [ExpandMode], [Domain], [ExpandMode], Password, [LogonFlags],
> [CreationFlags], [ExpandMode], [CurrentDirectory],
> [1, StartupInfo] | [0], [NewEnv]
>
> You may want to try to execute something like:
> EXECUTE,,DAYES,,c:\windows\system32\ewfmgr.exe,,c:\windows\system32\ewfmgr.exe
> c: -commit,DAYES,,,administrator,,YourMachineName,,admin,,,,,,
>
> Please note all the changes made in the command string.
>
I have changed the script file, but got the same result. I suppose it is
mute though if there is a better way to update using ewf.
>
> You may also want to include the event log in your configuration so you can debug DUA errors. There is a verbose mode for logging
> that will write all DUA commands to the application event log.
>
> Under the [HKLM\SYSTEM\CurrentControlSet\Services\XPEAgent\Parameters\Config] key add "Logging"=dword:1 value.
>
> Btw, it may not be good implementation of your script for the purpose of changing running app with EWF on.
> With EWF command you just commit a registry change to move/replace the JP.exe file on next reboot. The file will be replaced each
> reboot until you commit EWF again.
Can you elaborate on this? What registry key gets changed, and how do I
invoke the EWF command to commit (I thought that's what I was trying to do
above???)
>
> If it is acceptable you can issue a command to close your Shell app [properly] (e.g., command like "JP.exe -closeall" that close all
> running instances of the app), then replace the exe and commit EWF. Since you reboot then, the new shell exe will be used. This is,
> of course, assuming you can change the JP app.
There is no problem shutting down the shell app, but
cmiWlxAutoRestartShell is set true so the shell automatically restarts. Is
there a registry location to turn it off? If so then a DUA script could turn
off autoshellrestart, copy the new shell app, turn on autoshellrestart again
thus have no need for reboot?
thanks
kevin
>
> KM
>
> > I am trying to update a custom shell using DUA and EWF. Here is my DUA
> script-
> >
> > // move the file from C:\ to c:\windows\systems32, but force it to wait
> > until a reboot to move
> >
> MOVEFILE,0,1,C:\DUA\JP.exe,1,c:\Windows\System32\JP.exe,DAMOVEFILE_DELAY_UNT
> IL_REBOOT|DAMOVEFILE_REPLACE_EXISTING
> >
> > // now commit EWF and reboot
> >
> EXECUTE,,DAYES,,c:\windows\system32\ewfmgr.exe,,c:\windows\system32\ewfmgr.e
> xe c: -commit,,DAYES,,administrator,,admin,,,,,,
> > REBOOT,,DAREBOOTOPT_REBOOT
> >
> > the script compiles ok, and it runs on the target, but the system never
> > reboots. I have used the script successfully without the EXECUTE
> statement
> > and without EWF, and it updates the shell OK. What do I need to do to
> update
> > the shell using EWF?
> > thanks
> > kevin
>
>
>
- Next message: Doug Hoeffel: "Re: EWF/DUA help needed"
- Previous message: Andy Allred [MS]: "Re: Installing Component database on windows server 2003"
- In reply to: KM: "Re: EWF/DUA help needed"
- Next in thread: KM: "Re: EWF/DUA help needed"
- Reply: KM: "Re: EWF/DUA help needed"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|