troubleshooting Question

vbscript logging

Avatar of Smith and Andersen
Smith and AndersenFlag for Canada asked on
Programming
17 Comments1 Solution451 ViewsLast Modified:
This script uninstalls the app but doesnt create a log file
Can anyone tell me how to adjust??
I basically need to know if it actually does its job

on error resume next
Dim oLogFile, Log_File_Path
CONST ForAppending = 8
CONST LOG_FILE_NAME = "adobeUninstall.log"
CONST LOG_Path = "\\torsrvdc1\gpo\"

Set oLogFile = FSO.OpenTextFile(LOG_PATH & "\" & LOG_FILE_NAME, ForAppending, True)
oLogFile.WriteLine Date & " " & Time & vbTab & "Info" & vbTab & "COMPUTERNAME : " & sComputerName


Set WshShell = CreateObject("WScript.Shell")
' Uninstall Acrobat
WshShell.Run "msiexec /x {AC76BA86-1033-F400-7760-000000000005} /q",1,true

oLogFile.Close
ASKER CERTIFIED SOLUTION
NotLogical

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 17 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros