Two meetings are planned for early 2009. January 21st – Microsoft Reading – Webcast with Jeffrey Snover February 10th – Microsoft Cardinal Place London – After the Powershell event in the afternoon – Jonathan Noble will be speaking More details on both events to follow. Happy New Year to everyone in PowerShell land. […]
Archive for December, 2008
Last of the new event log cmdlets is Write-EventLog. I showed how to write to the event log here http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!275.entry. This is still valid for PowerShell v1 or v2. In v2 we can make life a bit simpler by using Write-EventLog. Like the other EventLog cmdlets it only works with the classic event logs and […]
I have shown how to create an event log using simple .NET code a couple of times including http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!278.entry. CTP 3 brings us a cmdlet that we can use to perform this act. New-EventLog is used as follows. New-EventLog -LogName TestLog -Source TestSource All we provide is the name of the log and a Source […]
I have mentioned PowerGUI many times – I especially like the editor. There is a large, and growing, library of PowerGUI powerpacks (additional functionality) available for download from www.powergui.org. I have just added the PowerShell Help powerpack to my system. Written by Kirk Munro (PowerShell MVP) it gives many views into the PowerShell help system. […]
Remove-EventLog is a new cmdlet in CTP3. It brings the following parameters: ComputerNameLogNameSourceVerboseDebugErrorActionWarningActionErrorVariableWarningVariableOutVariableOutBufferWhatIfConfirm The Source is how applications write to the event log – it is possible to just remove one or more sources rather than the whole event log. To remove an event log Remove-EventLog -LogName test23 Assuming you have the correct privileges the […]
Continuing our tour around the event log cmdlets we come to Clear-EventLog. This does exactly what it says – it clears the entries out of one or more logs. Note that it does not backup the entries in anyway – it is just a clear. We can clear a single log Clear-EventLog -LogName "Windows PowerShell" […]
If we look at the event logs that are present on our system we will see how the logs are configured in terms of maximum size, retention days and the action to take in the event of the log becoming full (overflow). PS> Get-EventLog -List Max(K) Retain OverflowAction Entries Name —— —— ————– ——- […]
Show-EventLog is a very straight forward cmdlet with a minimum of parameters. Outside of the common parameters it can only take a computer name. As it says in the name the cmdlet opens Event Viewer on the local or remote machine (remember need for admin privileges on Vista and later so start PowerShell using Run […]
No doubt there will be a mass of posts on the new features in CTP3 over the next weeks and months. What I want to try and do is concentrate on those features that are of most benefit to administrators. I am going to start with functionality to work with event logs. I have blogged […]
In my series on System.DirectoryServices.ActiveDirectory I was going to cover creating sites and sitelinks – Rolf has just covered this material so I will point you there instead. http://www.powershell-ag.de/ps/Blog/tabid/73/EntryID/1123/Default.aspx Technorati Tags: PowerShell,Active Directory
Categories
- .NET
- Active Directory
- Architecture
- Azure
- Bash
- BITS
- Books
- CDXML
- CIM
- Cloud
- COM
- Containers
- Deep Dive
- Desired State Configuration
- DevOps
- DHCP
- DNS
- DSC
- European Summit
- Events
- Exchange
- File System
- Firewall
- General
- General IT Matters
- Hyper-V
- IIS
- Infrastructure
- IT Community
- IT Security
- Learning PowerShell
- Linux
- Math
- Microsoft
- Modules
- Nano Server
- Networking
- Office 2010
- Office 2013
- Open Source
- Opinion
- Outlook
- Philosophy
- PowerShell
- PowerShell 7
- PowerShell and .NET
- PowerShell and Active Directory
- PowerShell and CIM
- PowerShell and Exchange 2007
- PowerShell and IIS
- PowerShell and SQL Server
- PowerShell and WMI
- PowerShell Basics
- PowerShell original
- PowerShell Summit
- PowerShell User Group
- PowerShell User Group 2
- PowerShell v2
- PowerShell V3
- PowerShell v4
- PowerShell v5
- PowerShell v6
- PowerShell.org
- PowerShellGet
- PowerShellV2
- PSAM
- Rant
- Registry
- Scripting
- Scripting Games
- Scripting Games 2104
- Security
- SQL Server
- Storage
- Strings
- Summit
- Technology
- Uncategorized
- Virtualization
- Windows 10
- Windows 2012 R2
- Windows 7
- Windows 8
- Windows 8 Server
- Windows 8.1
- Windows Server
- Windows server 1709
- Windows Server 2008
- Windows Server 2008 R2
- Windows Server 2012
- Windows Server 2012 R2
- Windows Server 2016
- Windows Server 2019
- WMFv5
- WPF
- WSUS