Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Powershell test of apps on PC image

Status
Not open for further replies.

jbrearley

Programmer
Nov 26, 2012
9
CA
Synopsis
========
- test-apps.ps1 is used to verify applications are correctly installed on a refurbished PC
with a new RPK image before the PC is deployed to the end customer
- tests cover network link, web browsers, notepad, wordpad, MS Office, Open Office, etc
- missing / inoperative drivers are detected
- laptop batteries are exercised and an estimate of the usable battery life is provided
- a detailed html logfile shows test results and supporting screenshots as the tests progress
- test results files are optionally copied to a central server
- there is a summary file to facilitate integration of results into inventory control systems

Notes
=====
- download the script related files:
- download wasp.dll from: - put wasp.dll in the same directory as the .ps1 file
- you may have to unblock downloaded files
- from windows explorer, right click on each file, select properties, click the Unblock button
- if you are deploying this script as part of a PC image, it is best to turn on
powershell scripts in the registry via the supplied .reg file
- if you are using the default windows user account control setting, then you will need to
open the powershell window by right clicking and selecting the Run as Administrator option
- if the script does not have administrator privileges, some of the tests will fail, the error
messages will flag the administrator privilege issue
- if you have changed the user account control setting to be more permissive, there is a .bat
file to run the tests from windows explorer
- if you uncomment line 34 of the .bat file, it will also update the registry entry needed to
enable powershell scripts
- for more details and options, in a powershell window, type: ./test-apps.ps1 -h
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top