Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Log Files wih Powershell

 
Logged in as: Guest
arrSession:exec spGetSession 2,5,44891
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Windows PowerShell >> Log Files wih Powershell
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Log Files wih Powershell - 3/24/2007 7:20:00 AM   
  blaztoff

 

Posts: 6
Score: 0
Joined: 3/20/2007
Status: offline
I am trying to figure out how to use Powershell to create a custom log file and set the properties on it. I have not been able to find any info so far on how to set the properties only how to create a log. I tried using the set-itempropety cmdlet but it doest seem to work Anyone have a tutorial on how to set properties with powershell?
 
 
Post #: 1
 
 RE: Log Files wih Powershell - 3/26/2007 1:34:00 AM   
  ebgreen


Posts: 4595
Score: 29
Joined: 7/12/2005
Status: offline
What kind of log file? An event log or a text file?

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to blaztoff)
 
 
Post #: 2
 
 RE: Log Files wih Powershell - 4/1/2007 11:20:49 PM   
  SAPIENScripter


Posts: 270
Score: 2
Joined: 11/1/2006
From: SAPIEN Technologies
Status: offline
I'm guessing you are trying to modify the registry to specify a new event log file. Not sure if that's how you create a new event log, but here's some sample code I used at Techmentor for working with the registry:


      

_____________________________

Jeffery Hicks
Windows PowerShell MVP
SAPIEN Technologies - Scripting, Simplified. www.SAPIEN.com

Follow Me: http://www.twitter.com/JeffHicks

(in reply to blaztoff)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Windows PowerShell >> Log Files wih Powershell Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts