Showing results for January 2011 - Page 2 of 6 - Scripting Blog [archived]

Jan 26, 2011
1
0

Use a PowerShell Cmdlet to Work with File Attributes

ScriptingGuy1
ScriptingGuy1

  Summary: Learn how to use the Windows PowerShell cmdlet Set-ItemProperty to work with file attributes. Hey, Scripting Guy! I often find myself working with file attributes. Our backup program reads the archive flag, and our users are always creating read-only copies of their spreadsheets. I have an old VBScript script that will manipulate f...

Scripting Guy!Windows PowerShellscripting techniques
Jan 25, 2011
0
0

Use PowerShell to Parse Saved Event Logs for Errors

ScriptingGuy1
ScriptingGuy1

  Summary: Simplify Windows auditing and monitoring by using Windows PowerShell to parse archived event logs for errors. Hey, Scripting Guy! I have been using a scheduled job and a Windows PowerShell script to archive our event logs to .evt files. When I need to check something, I need to import the .evtx file in to Event Viewer so that I...

Scripting Guy!Windows PowerShellscripting techniques
Jan 24, 2011
0
0

Use PowerShell Cmdlet to Filter Event Log for Easy Parsing

ScriptingGuy1
ScriptingGuy1

  Summary: Learn how to use the Get-WinEvent Windows PowerShell cmdlet to filter the event log prior to parsing it. Hey, Scripting Guy! I am confused. I have enjoyed using the Get-EventLog Windows PowerShell cmdlet. It is fast, and easy to use. However, I do not always like the way it seems to return all the records from a remote computer bef...

Scripting Guy!Windows PowerShellscripting techniques
Jan 23, 2011
0
0

Simplify Importing PowerShell Command History

ScriptingGuy1
ScriptingGuy1

Summary: Use a custom Windows PowerShell function to simplify importing command history into the current environment. Microsoft Scripting Guy Ed Wilson here, well it has been a fun week. I got to thaw out in Florida after my presentation to SQL Saturday in Tampa. I made some new friends on Twitter, Facebook, and Linked In. I had several really p...

Scripting Guy!Windows PowerShellscripting techniques
Jan 22, 2011
0
0

Use the Export-History PowerShell Function to Save Commands

ScriptingGuy1
ScriptingGuy1

  Summary: Use the Export-History Windows PowerShell function to simplify saving command history. Microsoft Scripting Guy Ed Wilson here. One of the things I was thinking about when I was writing the article this week about the History cmdlets was that I wish it were a bit easier to export my history. This gave me an idea: Why don’t I write ...