A question on the forums – the user wanted to append data to a file. This is a common scenario when you’re creating a log file. There’s 2 easy ways to do this. Lets create a couple of variables with multi-line data PS> $data = @’ >> This is >> multiline data >> […]
Archive for January, 2017
Append data to a file
Posted by: richardsiddaway | January 31, 2017 Comments Off on Append data to a file |Powershell versions
Posted by: richardsiddaway | January 31, 2017 Comments Off on Powershell versions |An explanation of PowerShell versions is available here – http://itknowledgeexchange.techtarget.com/powershell/powershell-versions-2/
Finding DNS static records
Posted by: richardsiddaway | January 29, 2017 Comments Off on Finding DNS static records |An interesting question from the forums about finding DNS static records You can view the records in a DNS zone Get-CimInstance -Namespace root\MicrosoftDNS -ClassName MicrosoftDNs_Atype -ComputerName W16DC01 -Filter "DomainName = ‘manticore.org’" | select OwnerName, Timestamp, IPAddress but how do you know which are static records. There isn’t an obvious way to do […]
When you think of using Hyper-V most people think of virtualising their infrastructure – big servers running 10s, 100s or even 1000s of virtual machines. There is another reason for using Hyper-V You can use Hyper-V to create a VM so you can install an application that may conflict with you standard workstation […]
Summit 2017–seats going fast
Posted by: richardsiddaway | January 28, 2017 Comments Off on Summit 2017–seats going fast |Seats at eh PowerShell Summit - https://eventloom.com/event/home/summit2017 – are going fast. We’ve sold over 70% of the seats – they’re current 55 seats left split between 4-day and 3-day passes. The 3-day passes don’t go on sale until 12 February and we’ll be moving 3-day to 4-day as sales happen between now and then. […]
Learn Hyper-V – Deal of the day – January 28 2017
Posted by: richardsiddaway | January 27, 2017 Comments Off on Learn Hyper-V – Deal of the day – January 28 2017 |I saw a forum post today where the question involved the use of the wmi command line tool wmic. Wmic was deprecated in Windows Server 2012 – https://technet.microsoft.com/en-us/library/hh831568(v=ws.11).aspx. It will eventually be removed. You should use the CIM cmdlets instead of wmic. The syntax is much easier and the resultant code is easier […]
Community Lightning Demos
Posted by: richardsiddaway | January 24, 2017 Comments Off on Community Lightning Demos |We are continually evolving the content we present at the PowerShell Summit. This year we’re bringing back something that was a feature of the early PowerShell Deep Dives and Summits – the Community Lightning Demos. We have a session set aside on Wednesday afternoon for this. Timescales will depend on the number of people wanting […]
WMF 5.1 now available
Posted by: richardsiddaway | January 24, 2017 Comments Off on WMF 5.1 now available |The download for WMF 5.1 for down level operating systems is now available: https://blogs.msdn.microsoft.com/powershell/2017/01/19/windows-management-framework-wmf-5-1-released/ WMF 5.1 can be installed on Windows 7 and 8.1 plus Windows Server 2008 R2, 2012, 2012 R2 Windows 10 and Server 2016 already have PowerShell 5.1 and don’t need this install. if installing on Windows 7 or Server 2008 R2 […]
The $_ symbol seems to be causing confusion from some recent forum questions I’ve seen. $_ represents the current object on the pipeline – if you want to know why $_ was chosen you’ll have to read PowerShell in Action! You can use $_ in a number of situations – in commands that […]
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