Following on from my previous post about creating a reverse lookup zone in DNS here’s a function to create records in that zone. The function takes an IP address and name (of host) and uses Add-DnsServerResourceRecordA to add the record to the forward lookup zone – I use my default AD zone. The […]
Archive for October, 2015
Creating DNS records
Posted by: richardsiddaway | October 30, 2015 Comments Off on Creating DNS records |Create a reverse lookup zone
Posted by: richardsiddaway | October 30, 2015 Comments Off on Create a reverse lookup zone |I needed to create a DNS reverse lookup zone for my test environment. With Windows Server 2012 R2 I’ve got cmdlets available for managing DNS servers – the DnsServer module. You need to install the DNS role or the DNS RSAT tools to get access to the module. To create a new reverse lookup […]
Win free entry to the PowerShell Summit
Posted by: richardsiddaway | October 29, 2015 Comments Off on Win free entry to the PowerShell Summit |Want to go to the PowerShell Summit? Want to go for free? You can win free entry to the Summit (need to pay your own travel & hotel) through the competition at http://powershell.org/wp/2015/10/28/win-a-free-4-day-pass-to-powershell-and-devops-summit-2016/
As an alternative to the –contains operator you can use the –in operator Repeating the tests from the previous post on –contains PS> $primes = 1,3,5,7,11,13,17,19,23,29,31,37,41,43,47 PS> $candidate = 7 PS> $candidate -in $primes True PS> $candidate = 4 PS> $candidate -in $primes False The –in operator can be used in the […]
-contains operator
Posted by: richardsiddaway | October 26, 2015 Comments Off on -contains operator |Sometimes you may want to test if a value is in a collection of values For instance $primes = 1,3,5,7,11,13,17,19,23,29,31,37,41,43,47 if you want to test if 7 is a member of the collection $candidate = 7 $primes -contains $candidate True Likewise testing 4 $candidate = 4 $primes -contains $candidate False
DSC resource kit update–October 2015
Posted by: richardsiddaway | October 26, 2015 Comments Off on DSC resource kit update–October 2015 |The DSC resource kit is the primary place to look for DSC resources beyond those baked into Windows. An update to the resources in the kit has been announced. Some new resources and lots of bug fixes. see http://blogs.msdn.com/b/powershell/archive/2015/10/23/dsc-resource-kit-updates-are-here.aspx for details
Testing connectivity before Invoke-Command
Posted by: richardsiddaway | October 24, 2015 Comments Off on Testing connectivity before Invoke-Command |A question on the forum asked about testing if a remote machine could be reached before using Invoke-Command against it. The usual way to test if you can reach a remote machine is to ping it PS> Test-Connection -ComputerName $env:COMPUTERNAME -Quiet True That shows you can reach the machine but it doesn’t mean […]
UK PowerShell User Group
Posted by: richardsiddaway | October 23, 2015 Comments Off on UK PowerShell User Group |Two meetings of the UK PowerShell group have been announced Tuesday 24 November in Manchester Thursday 26 November at Rackspace, in Hayes Middlesex Details from www.get-psuguk.eventbrite.co.uk There is a rumour that I might be speaking at the 26 November event
PowerShell and SSH
Posted by: richardsiddaway | October 20, 2015 Comments Off on PowerShell and SSH |The PowerShell team have announced the availability of OpenSSH 7.1 for Windows – http://blogs.msdn.com/b/powershell/archive/2015/10/19/openssh-for-windows-update.aspx This is their first step in bringing SSH support into PowerShell. The roadmap for next steps is available on their blog at the link above
PowerShell resources–you tube
Posted by: richardsiddaway | October 19, 2015 Comments Off on PowerShell resources–you tube |One place you might not think of looking for PowerShell resources is you tube. PowerShell.org has its own channel on you tube – https://www.youtube.com/user/powershellorg – where we’ve posted the session recordings from: PowerShell Summit Europe 2015 PowerShell summit Europe 2014 PowerShell Summit NA 2015 selected sessions from PowerShell Summit NA 2014 and PowerShell Summit […]
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