PowerShell script to start, stop and cleanup all the three major browsers Internet Explorer (IE), Firefox (FF) & Chrome (GC)
Script: # # PowerShell Script #=============================================================================== # Objective: # ———- # This is a basic template script that comes with default script sections along # with debug options set. # # # $Header: $ #=============================================================================== # Process-Arguments #=============================================================================== param ( [ValidateSet(‘IE’, ‘FF’, ‘GC’)][string]$BROWSER, [ValidateSet(‘Start’, ‘Stop’, ‘Cleanup’)][string]$OPERATION, [string]$LOG = $LogFile, [bool]$DEBUG ) #=============================================================================== # Include Modules #=============================================================================== #=============================================================================== # Global Variables TEMP #=============================================================================== $Global:LogFile = "" $Global:BrowserExes = "" #=============================================================================== # function Initialize-Globals #=============================================================================== function Initialize-Globals { $LogPath = $env:TEMP $ScriptName = "Template-Script.log" $Global:LogFile = $LogPath + ” + $ScriptName $Global:BrowserExes = […]
Read more