Powershell - OS build script modification - logging and progress bar

Cancellato Pubblicato Feb 9, 2009 Pagato alla consegna
Cancellato Pagato alla consegna

I have a Powershell script that is used as part of an unattended Vista build.

The script installs hotfixes, amends registry keys and installs programs.

The script currently has no logging functionality or progress bar functionality.

I need the script amended so it logs the success / failure of each item that it is doing (a logging function would be ideal) and displays progress to let the user know the script is running. This can either be cia an external IE window with the script outputting to it, or inside the Powershell window using the write-progress cmdlet.

## Deliverables

The script needs to be modified to do the following:

1. Logging - every modification that the script is doing should have its success/failure logged to a text file.

2. Progress screen - a progress update should be displayed advising the user as to what the script is doing for all modifications. This progress bar can either be displayed via an external Internet Explorer window or displayed within the Powershell window but it needs to be dynamic so the user knows that the script hasn't halted - I would appreciate some guidance from you on how you think the script progress could be displayed/outputted. The progress? update should include the status of the hotfix installation, perhaps by monitoring the wusa process which is called via the included batch file. If possible the batchfile should be discarded and the command that it is running be included within the powershell script.?

Attached is the powershell script and the batch file that installs hotfixes.

Apple Safari Ingegneria Google Chrome Microsoft MySQL PHP Gestione Progetti Architettura Software Testare Software Windows Desktop

Rif. progetto: #3620537

Info sul progetto

Progetto a distanza Attivo Feb 12, 2009