[wpkg-users] Collecting config data from Client PCs via WPKG
Alt, Franz
franz.alt at wi.tum.de
Mon Apr 4 16:41:46 CEST 2016
Hello everybody,
I wanted to use our quite well established WPKG infrastructure to collect some data from the client machines. 2 Scripts should be executed and write data in the WPKG logfile folder.
For example I try to "Retrieving a program's version" once for every client:
http://lists.wpkg.org/pipermail/wpkg-users/2014-March/030204.html
with
<install cmd='\\SERVER\deploy\software\wpkg_scripting\cscript.bat' />
## cscript.bat ##
@echo off
c:\windows\system32\cscript "C:\Program files (x86)\Microsoft Office\Office14\OSPP.VBS" /dstatus >"\\SERVER\deploy\log13\%computername%_MSOFFICE_%date%.txt" 2>&1
.. and try to retrieve Office Keys (every time PC starts) and with:
<check type="execute" path='\\ SERVER \deploy\software\wpkg_wmic_inventarisierung\wmic_liste.bat' />
## wmic_liste.bat ##
@echo off
%COMSPEC% /C wmic product get InstallDate, Name, Version, InstallLocation, Vendor, IdentifyingNumber >"\\SERVER\deploy\log13\%computername%_%date%_SOFTWARELISTE.txt" 2>&1
Unfortunaly there's an error "access denied" (in the WPKG log) for most of the PCs ... oddly enough it works on my PC (Win7 64bit prof.) when I restart the WPKG Service!? All wpkg client services run with "local SYSTEM account" and "data exchange between service and desktop is allowed.
The logfilefolder has NTFS Rights for User SYSTEM and WPKGuser (user while installing WPKG-Client-Service) incl. "change" and Rights for share "\\SERVER\deploy\" the same way.
Logfile:
2016-04-04 13:50:21, INFO : Package '*** WPKG liesst Office Key aus ***' (wpkg_scriptingall): Not installed (checks failed). Preparing installation.
2016-04-04 13:50:21, INFO : Installing '*** WPKG liesst Office Key aus ***' (wpkg_scriptingall)...
2016-04-04 13:50:21, INFO : User notification suppressed. Message: Die automatische Software-Verteilung läuft gerade. Bitte speichern Sie ihre offenen Dokumente, weil das System unter Umständen ohne weitere Warnung neu startet. Danke.
ENGLISH 2016-04-04 13:50:21, INFO : User notification suppressed. Message: Automatic software deployment is currently updating your system. Please save all your documents as the the system might reboot without further notice. Thank you.
2016-04-04 13:50:21, ERROR : Command '\\SERVER\deploy\software\wpkg_scripting\cscript.bat' was unsuccessful.|Zugriff verweigert|
2016-04-04 13:50:21, ERROR : Could not process (install) package '*** WPKG liesst Office Key aus ***' (wpkg_scriptingall):|Exit code returned non-successful value (-1) on command '\\SERVER\deploy\software\wpkg_scripting\cscript.bat'.
[...]
2016-04-04 13:50:55, ERROR : Command '\\SERVER\deploy\software\wpkg_wmic_inventarisierung\wmic_liste.bat' was unsuccessful.|Zugriff verweigert|
2016-04-04 13:50:55, INFO : Package '*** WPKG INVENTARISIERUNG Software WMIC ***' (wpkg_wmic_sw-inventarisierung): Not installed (checks failed). Preparing installation.
2016-04-04 13:50:55, INFO : Installing '*** WPKG INVENTARISIERUNG Software WMIC ***' (wpkg_wmic_sw-inventarisierung)...
2016-04-04 13:50:55, ERROR : Command '\\SERVER\deploy\software\wpkg_wmic_inventarisierung\wmic_liste.bat' was unsuccessful.|Zugriff verweigert|
2016-04-04 13:50:55, ERROR : Could not process (install) *** WPKG INVENTARISIERUNG Software WMIC ***.|Failed checking after installation.
2016-04-04 13:50:55, INFO : User notification suppressed. Message: Das WPKG Software-Installationstool hat die Installation oder Aktualisierung von Software auf Ihrem System beendet. Es war kein Neustart notwendig. Alle Updates sind komplett.
ENGLISH 2016-04-04 13:50:55, INFO : User notification suppressed. Message: The automated software installation utility has completed installing or updating software on your system. No reboot was necessary. All updates are complete.
Any suggestions?
Regards
Franz
More information about the wpkg-users
mailing list