Change the path to wsusoffline.log file

Re: Change the path to wsusoffline.log file

Postby WSUSUpdateAdmin » 20.06.2014, 23:18

InitializationHook.cmd:
Code: Select all
@set UPDATE_LOGFILE=C:\Temp\wsusofflineupdate.log

...results in a fine C:\Temp\wsusofflineupdate.log:
Code: Select all
21.06.2014  0:06:34,81 - Info: Starting WSUS Offline Update (v. 9.3.1)
21.06.2014  0:06:34,81 - Info: Used path "C:\wsusoffline\client\cmd\" on XXX
21.06.2014  0:06:34,81 - Info: Option /updatercerts detected
21.06.2014  0:06:34,81 - Info: Option /updatecpp detected
21.06.2014  0:06:34,82 - Info: Option /updatetsc detected
21.06.2014  0:06:34,84 - Info: Option /verify detected
21.06.2014  0:06:39,52 - Info: Found Microsoft Windows version 6.1.7601.22616 (w61 x64 deu sp1)
21.06.2014  0:06:39,52 - Info: Found Microsoft Windows Software Licensing Management Tool info...
21.06.2014  0:06:39,52 - Info: Name: Windows(R) 7, Enterprise edition
21.06.2014  0:06:39,52 - Info: Beschreibung: Windows Operating System - Windows(R) 7, VOLUME_KMSCLIENT channel
21.06.2014  0:06:39,52 - Info: Teil-Product Key: XXXXXX
21.06.2014  0:06:39,52 - Info: Lizenzstatus: Lizenziert
21.06.2014  0:06:39,52 - Info: Ablauf der Volumenaktivierung: 254040 Minute(n) (176 Tag(e))
21.06.2014  0:06:39,55 - Info: Found Windows Update Agent version 7.6.7600.256
21.06.2014  0:06:39,55 - Info: Found Windows Installer version 5.0.7601.17514
21.06.2014  0:06:39,55 - Info: Found Windows Script Host version 5.8.9600.17126
21.06.2014  0:06:39,55 - Info: Found Internet Explorer version 9.11.9600.17126
21.06.2014  0:06:39,55 - Info: Found Trusted Root Certificates' version 40.0.2195.0
21.06.2014  0:06:39,55 - Info: Found Revoked Root Certificates' version 5.0.2195.0
21.06.2014  0:06:39,55 - Info: Found Microsoft Data Access Components version 6.1.7601.17514
21.06.2014  0:06:39,55 - Info: Found Microsoft Silverlight version 0.0.0.0
21.06.2014  0:06:39,55 - Info: Found Windows Media Player version 12.0.7601.17514
21.06.2014  0:06:39,55 - Info: Found Remote Desktop Client version 6.3.9600.16415
21.06.2014  0:06:39,55 - Info: Found Microsoft .NET Framework 3.5 version 3.5.30729.5420
21.06.2014  0:06:39,55 - Info: Found Windows PowerShell version 2.0
21.06.2014  0:06:39,55 - Info: Found Microsoft .NET Framework 4 version 4.5.50709
21.06.2014  0:06:39,55 - Info: Found Windows Management Framework version 3.0
21.06.2014  0:06:39,55 - Info: Found Microsoft Security Essentials version 0.0.0.0
21.06.2014  0:06:39,55 - Info: Found Microsoft Security Essentials definitions version 0.0.0.0
21.06.2014  0:06:39,55 - Info: Found Network Inspection System definitions version 0.0.0.0
21.06.2014  0:06:39,55 - Info: Found Windows Defender definitions version 1.177.270.0
21.06.2014  0:06:39,55 - Info: Found Microsoft Office 2010 Word version 14.0.7125.5000 (o2k10 x64 deu sp2)
21.06.2014  0:06:39,57 - Info: Medium build date: 18.06.2014
21.06.2014  0:06:39,57 - Info: Medium supports Microsoft Windows (w61 x64 glb)
21.06.2014  0:06:39,57 - Info: Medium supports Microsoft Office (ofc deu)
21.06.2014  0:06:40,96 - Info: Installed ..\win\glb\rootsupd.exe
21.06.2014  0:06:45,34 - Info: Detected state of service 'Windows Update': Running (start mode: Auto)
21.06.2014  0:08:46,08 - Info: Skipped update kb976002 (Browser Choice) due to matching black list entry
21.06.2014  0:08:46,15 - Info: Any missing update was either black listed or not found
21.06.2014  0:08:46,16 - Info: Ending WSUS Offline Update


:arrow: "no-prob". :)

RTW
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Re: Change the path to wsusoffline.log file

Postby arthur » 24.07.2014, 12:46

Hello ,
@WsusUpdateAdmin @Aker

I just forget to renamme the file into cmd... sorry for time cosuming .. :/
So the log is correctly stored where i wanted ! Thanks !!
I have anothr question , i try to name the logfile using the variable %COMPUTERNAME%.log , so my code for InitializationHook.cmd looks like :
Code: Select all
@echo off
set UPDATE_LOGFILE=Path to the folder\%COMPUTERNAME%.log

I have my log file , but no name appears ... Thats embarassing , is there any solution ? using another onevariable to name the file by the the computer name who running the wsus update installation ?

Thanks you again , and enjoy this summer :ugeek:
arthur
 
Posts: 20
Joined: 23.12.2013, 09:19

Re: Change the path to wsusoffline.log file

Postby aker » 24.07.2014, 16:56

Where do you want to save your log-file?
Maybe you have to use
Code: Select all
set UPDATE_LOGFILE="...\%COMPUTERNAME%.log"
Wer Rechtschreibfehler findet, darf sie behalten oder an den Meistbietenden versteigern. / Everybody finding a misspelling is allowed to keep or sell it.
aker

WSUS Offline Update „Community Edition“
https://gitlab.com/wsusoffline/wsusoffline/-/releases
aker
 
Posts: 3999
Joined: 02.03.2011, 15:32

Re: Change the path to wsusoffline.log file

Postby arthur » 25.07.2014, 06:36

@Aker ,
My log was saved in a network share , i already test the variable %computername%.log , this not working.

In fact , i mount a net drive like this :

net use F: \\Server\folder\
set UPDATE_LOGFILE=F:%computername%.log

It work , but the logfile have no name :lol: , hard to see wich computer actually install the upadte or not for me !
It looks like the %computername% was not understood by the Initialization.cmd script ?
arthur
 
Posts: 20
Joined: 23.12.2013, 09:19

Re: Change the path to wsusoffline.log file

Postby aker » 25.07.2014, 15:32

You have to use
Code: Select all
set UPDATE_LOGFILE=F:\%computername%.log

instead.
Wer Rechtschreibfehler findet, darf sie behalten oder an den Meistbietenden versteigern. / Everybody finding a misspelling is allowed to keep or sell it.
aker

WSUS Offline Update „Community Edition“
https://gitlab.com/wsusoffline/wsusoffline/-/releases
aker
 
Posts: 3999
Joined: 02.03.2011, 15:32

Previous

Return to Installation / Updating

Who is online

Users browsing this forum: No registered users and 21 guests