Wave 8 has arrived and its massive with 48 new resources – that’s a 50%+ increase http://blogs.msdn.com/b/powershell/archive/2014/10/28/powershell-dsc-reskit-wave-8-now-with-100-resources.aspx New modules include: xExchange xSCDPM xSCOM xSCSMA xSCSR xSCVMM xCredSSP xDismFeature xBitlocker xPendingReboot
Archive for October, 2014
DSC Resource Kit wave 8
Posted by: richardsiddaway | October 31, 2014 Comments Off on DSC Resource Kit wave 8 |PowerShell Summit NA 2015 – – Registration open
Posted by: richardsiddaway | October 30, 2014 Comments Off on PowerShell Summit NA 2015 – – Registration open |Registration for the PowerShell summit North America 2015 is open. Details and registration link – http://powershell.org/wp/community-events/summit/
Cut and paste is not your friend
Posted by: richardsiddaway | October 29, 2014 Comments Off on Cut and paste is not your friend |I was working on some code the other day and as a block of code I needed was very similar to one I already had I did what everyone does & used cut and paste. Unfortunately, I missed out changing one of the variable names in the new block and spent a long time working […]
PowerShell in Depth second edition ebook
Posted by: richardsiddaway | October 29, 2014 Comments Off on PowerShell in Depth second edition ebook |The ebook for PowerShell in Depth second edition is available from Manning – http://www.manning.com/jones6/
JEA ToolKIt helper
Posted by: richardsiddaway | October 28, 2014 Comments Off on JEA ToolKIt helper |JEA – Just Enough Admin – brings Role Based Access Control to Windows. It enables you to delegate specific cmdlets to specific users on specific endpoints. A tool to help you create and mange JEA configurations is now available form http://blogs.technet.com/b/privatecloud/archive/2014/10/24/introducing-the-jea-toolkit-helper.aspx A white paper on JEA is also available from the […]
PowerShell classes — using methods
Posted by: richardsiddaway | October 27, 2014 Comments Off on PowerShell classes — using methods |.NET objects usually have methods as well as properties. A method enables you to do something to or with the object. PowerShell classes can implement methods: class LastBoot { [string]$ComputerName [DateTime]$LastBootime ## methods [TimeSpan] Uptime([datetime]$lbt) { $ts = (Get-Date) – $lbt return $ts } ## constructors LastBoot(){} LastBoot([string]$computer, [DateTime]$lbt) { $ComputerName = $computer […]
PowerShell classes – – overloading constructors
Posted by: richardsiddaway | October 25, 2014 Comments Off on PowerShell classes – – overloading constructors |You can usually create a .NET object from a class in one of several ways – no parameters i.e. and empty object up to an object with all of its properties populated as you create it. When you define a class you define the various ways in which it can be created – these are […]
PowerShell 5.0 – – classes
Posted by: richardsiddaway | October 25, 2014 Comments Off on PowerShell 5.0 – – classes |I’ve shown this method of creating a new object several times: $source = @" public class LastBoot { public string ComputerName {get; set;} public string LastBootime {get; set;} } "@ Add-Type -TypeDefinition $source -Language CSharpVersion3 $computer = $env:COMPUTERNAME $props = [ordered]@{ ComputerName = $computer LastBootime = Get-CimInstance -ClassName Win32_OperatingSystem -ComputerName […]
PowerShell 5 – zip and unzip
Posted by: richardsiddaway | October 25, 2014 Comments Off on PowerShell 5 – zip and unzip |One the extras in PowerShell 5.0 is a couple of cmdlets for workign with zip archives. Actually, you’ll find they are PowerShell advanced functions if you look in the module which you’ll find at C:\Windows\System32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive You get 2 cmdlets: £> Get-Command *archive | ft CommandTYpe, Name -a CommandType Name ———– —- Function Compress-Archive […]
Run with PowerShell
Posted by: richardsiddaway | October 22, 2014 Comments Off on Run with PowerShell |Came across something new today – Run with PowerShell. if you have PowerShell 3.0 or later installed – right click on your script and select “Run with PowerShell” A few rules though – The script can’t take parameters or output anything to the prompt. You can’t interact with the script or the console […]
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