(imported topic written by SystemAdmin)
All,
I have a VBScript that runs fine and works when run locally, but when downloaded and run (successfully) by a fixlet, the change that is supposed to be made by the script isn’t made. Any thoughts on why? Anyone know if there’s a VBS log file? (I can’t find one…)
The stuff:
VBS
Option Explicit Dim shell, net, result, compName, expDate Set shell = WScript.CreateObject(
"WScript.Shell") Set net = WScript.CreateObject(
"WScript.Network") compName = net.ComputerName select
case compName
case
"CDSS2140" expDate =
"2013.08.22"
case
"CDSS2431",
"CDSS2432" expDate =
"2013.06.16"
case
"CDSS2376",
"CDSS2378" expDate =
"2013.04.06"
case
"CDSS1997" expDate =
"2013.03.07"
case
"CDSS2275" expDate =
"2013.01.17"
case
"CDSS2270" expDate =
"2013.01.12"
case
"CDSS2157",
"CDSS2158" expDate =
"2012.09.15"
' lots more cases, no case else end select
' Write out Warranty Expiration Date result = shell.RegWrite(
"HKLM\SOFTWARE\BigFix\EnterpriseClient\Settings\Client\Warranty Expiration Date\value", expDate,
"REG_SZ")
Fixlet
Relevance
true Success Criteria This action will be considered successful when it runs to completion. Action Script Script Type BigFix Action Script download http:
//file.server/files/WarrantyExpDate.vbs waithidden cscript.exe WarrantyExpDate.vbs
BF log
At 16:52:23 -0400 - ActionLogMessage: (action 114494 ) starting action At 16:52:24 -0400 - actionsite (http:
//bigfix.server:52311/cgi-bin/bfgather.exe/actionsite) Command succeeded (Using download manager collected file) download http:
//file.server/files/WarrantyExpDate.vbs (fixlet 114494) At 16:52:25 -0400 - actionsite (http:
//bigfix.server:52311/cgi-bin/bfgather.exe/actionsite) Command succeeded (Exit Code=1) waithidden cscript.exe WarrantyExpDate.vbs (fixlet 114494) Not Relevant - Deploy WarrantyExpDate.vbs to unconfigured CDSS machines (fixlet:114494)