PowerShell for Windows Admins:

Powershell


November 4, 2014  12:27 PM

WMI integer properties – alternative decoding options

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell, WMI

  WMI has many properties where the the value is an integer: £> Get-CimInstance -ClassName Win32_LogicalDisk | Format-Table DeviceId, DriveType, Size, FreeSpace -a DeviceId DriveType         Size    FreeSpace --------...

October 31, 2014  2:48 PM

DSC Resource Kit wave 8

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Wave 8 has arrived and its massive with 48 new resources – that’s a 50%+ increase Bookmark and Share     0 Comments     RSS Feed     Email a friend


October 30, 2014  11:43 AM

PowerShell Summit NA 2015 – – Registration open

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Registration for the PowerShell summit North America 2015 is open.  Details and registration link  - http://powershell.org/wp/community-events/summit/


October 29, 2014  1:56 PM

Cut and paste is not your friend

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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 out what had gone...


October 29, 2014  11:41 AM

PowerShell in Depth second edition ebook

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

The ebook for PowerShell in Depth second edition is available from Manning - http://www.manning.com/jones6/


October 28, 2014  1:19 PM

JEA ToolKIt helper

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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


October 27, 2014  4:26 PM

PowerShell classes — using methods

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

.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)...


October 25, 2014  1:20 PM

PowerShell classes – – overloading constructors

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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 known as its...


October 25, 2014  10:16 AM

PowerShell 5.0 – – classes

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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 =...


October 25, 2014  3:13 AM

PowerShell 5 – zip and unzip

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: