Petri IT Knowledgebase Forums
 

Petri.co.il forums Home Forums Start Page Forums Frequently Asked Questions FAQ Member List Members List
Go Back   Petri IT Knowledgebase Forums > Server Operating Systems > Windows Server 2008 / 2008 R2
Petri.co.il is happy to award auglan the title of Most Valuable Member !!!
Register Calendar Calendar Search Petri IT Knowledgebase Forums Search Todays Posts Today's Posts Mark Forums Read

Notices

Duplicate Parameter Names in Event Log

Duplicate Parameter Names in Event Log

this thread has 3 replies and has been viewed 609 times

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th August 2012, 13:19
Dave_Lincs Dave_Lincs is offline
Junior Member
It's not a coincidence
 
 Join Date: Apr 2008
  6 month star 12 month star
 Posts: 145
 Reputation: Dave_Lincs is on a distinguished road (10)
Default Duplicate Parameter Names in Event Log

I am trying to report on print usage via our Win 2008 R2 64bit server using Get-WinEvent.

Part of the code is this

Code:
		#Get print job details
		$time = $LogEntry.TimeCreated
		$entry = [xml]$LogEntry.ToXml() 
		$docName = $entry.Event.UserData.DocumentPrinted.Param2
		$Username = $entry.Event.UserData.DocumentPrinted.Param3
		$Computer = $entry.Event.UserData.DocumentPrinted.Param4
		$PrinterName = $entry.Event.UserData.DocumentPrinted.Param5
		$PrintSize = $entry.Event.UserData.DocumentPrinted.Param7
		$PrintPages = $entry.Event.UserData.DocumentPrinted.Param8
Having run the code we were not getting page numbers returned looking into the 307 event log in PrintService event log looking at the XML view Param7 is specified twice. Now I assume this is a issue within Windows? Is there any way to edit the XML being used by the event log?

Code:
- <DocumentPrinted xmlns:auto-ns3="http://schemas.microsoft.com/win/2004/08/events" xmlns="http://manifests.microsoft.com/win/2005/08/windows/printing/spooler/core/events">
  <Param1>125</Param1> 
  <Param2>document</Param2> 
  <Param3>test1</Param3> 
  <Param4>\\IP ADDRESS</Param4> 
  <Param5>property1</Param5> 
  <Param6>property1</Param6> 
  <Param7>296244</Param7> 
  <Param7>1</Param7> 
  </DocumentPrinted>
Thanks

Dave
Reply With Quote
  #2  
Old 14th December 2012, 17:07
dhindel dhindel is offline
Casual
Casual
 
 Join Date: Dec 2012
 Posts: 2
 Reputation: dhindel is on a distinguished road (10)
Default Re: Duplicate Parameter Names in Event Log

Did you ever figure out how to get the parameter's fixed? Was there a hotfix for it? I'm having the same exact problem.
Reply With Quote
  #3  
Old 14th December 2012, 17:26
Dave_Lincs Dave_Lincs is offline
Junior Member
It's not a coincidence
 
 Join Date: Apr 2008
  6 month star 12 month star
 Posts: 145
 Reputation: Dave_Lincs is on a distinguished road (10)
Default Re: Duplicate Parameter Names in Event Log

Quote:
Originally Posted by dhindel View Post
Did you ever figure out how to get the parameter's fixed? Was there a hotfix for it? I'm having the same exact problem.
Hi,

Off the top of my head I am not sure, I will go back through my scripts to see what I did, but I seem to remeber we did something clever in Excel to get the page count

Dave
Reply With Quote
  #4  
Old 14th December 2012, 20:53
dhindel dhindel is offline
Casual
Casual
 
 Join Date: Dec 2012
 Posts: 2
 Reputation: dhindel is on a distinguished road (10)
Default Re: Duplicate Parameter Names in Event Log

Ah ha! I performed all of the Windows Updates (including Service Pack 1) and that fixed the Param7 issue. The second Param7 is now Param8 in the XML data. Thanks!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NetBT Duplicate name event verbalh Windows Server 2000 / 2003 7 14th June 2009 07:14
KDC Event ID 11 - Cannot find the duplicate name wullieb1 Active Directory 11 16th February 2009 07:53
Duplicate ALias Names Jimleslie77 Exchange 2000 / 2003 2 4th March 2008 15:20
tcp/ip parameter gaddo Windows Server 2000 / 2003 1 12th September 2005 11:16
Duplicate computer names tonyyeb Windows 2000 Pro, XP Pro 1 31st August 2005 17:23


All times are GMT +3. The time now is 06:56.

Steel Blue 3.5.4 vBulletin Style ©2006 vBEnhanced
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
 

Valid XHTML 1.0!   Valid CSS!

Copyright 2005 Daniel Petri