This months meeting is the first of two looking at the new PowerShell functionality in Windows Server 8. Yes, there is so much it will take two sessions! When: Tuesday, Apr 24, 2012 7:30 PM (BST)Where: Virtual *~*~*~*~*~*~*~*~*~* This is the first of two meetings looking at the new PowerShell functionality available in Windows Server […]
Archive for April, 2012
Scripting Games 2012 comments: #5 using WHERE
Posted by: richardsiddaway | April 13, 2012 | No Comment |I have seen a few interesting variations on using where-object during the games. This is normally aliased to where. You can use ? if you are fanatical about aliases but to me your PowerShell starts to become unreadable if its heavily aliased. Consider get-process. It returns a set of process objects. Where-Object is used […]
Scripting Games 2012 comments: #4 Beginners Event 2
Posted by: richardsiddaway | April 12, 2012 | No Comment |Second event is to find running services that can be stopped http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/03/2012-scripting-games-beginner-event-2-find-stoppable-running-services.aspx Lets start with the requirements we can pick out of the event information: Find all services that are running that will accept a Stop Command Need to run remotely against trusted remote computers Assume appropriate ports are open of firewalls Don’t need a […]
Scripting Games 2012 Comments: #3 Beginners Event 1
Posted by: richardsiddaway | April 11, 2012 | No Comment |I thought I’d publish a series on how I would go about solving these plus some comments and observations on the submitted scripts. First event of the games http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/02/the-2012-scripting-games-beginner-event-1-use-windows-powershell-to-identify-a-working-set-of-processes.aspx Firstly pick out the salient points of the event Need to: Identify Top 10 processes consuming memory resources on each computer Decided that working set is […]
Using aliases and the myth of the one-liner
Posted by: richardsiddaway | April 10, 2012 | No Comment |The beginners section of the scripting games can be often answered with one pipeline of PowerShell. Notice that I stated one pipeline not one line Since the early days of PowerShell there has been an almost mystical reverence paid to the concept of the “one-liner” ie boiling the PowerShell script down to a single line. […]
Scripting Games 2012 Comments: #2 Read the help file
Posted by: richardsiddaway | April 9, 2012 | No Comment |I’m seeing a lot of scripts where code is used to perform an action that is available as a parameter on a cmdlet that is used earlier in the pipeline. Read the help file for the cmdlets you are going to use to see how you can get PowerShell to do the work for […]
Scripting Games 2012 Comments: #1 Line Continuation
Posted by: richardsiddaway | April 8, 2012 | 1 Comment |As with previous games I’ll publish a series of comments on the games. I won’t deal with any event specific issues until the games events are all closed but there are some things coming through that while not affecting any gradings don’t make the best use of PowerShell. The first one that’s jumped out is […]
We’re just about at the halfway point with 5 events available – remember there is only a week to complete an event. Deadlines start on Monday. The overall quality of submissions from what I’ve seen so far is up on last year which is an achievement. What is staggering is that we’ve already had as […]
Jump over to http://blogs.technet.com/b/heyscriptingguy/ for event 1 in the beginners and advanced categories
Finding the primary name of a DNS alias record
Posted by: richardsiddaway | April 2, 2012 | No Comment |A forum question asked how to find the primary name from an alias or CNAME record. Get-WmiObject -Namespace ‘root\MicrosoftDNS’ -Class MicrosoftDNS_CNAMEType ` -Filter "ContainerName = ‘Manticore.org’" -ComputerName server02 | select @{N=’Alias’; E={$_.Ownername}}, Primaryname use the MicrosoftDNS_CNAMEType class. Filter on the domain ie containername. ComputerName holds the DNS server name. Change OwnerName to Alias in […]
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