Finding Object Types with Powershell

Anything in PowerShell is an object. You can use GetType() to get the object type:

'Hallo'.GetType().FullName
(4).GetType().FullName
(2.6).GetType().FullName
(Get-Date).GetType().FullName

Twitter This Tip! ReTweet this Tip!


Posted Aug 25 2010, 08:00 AM by ps1
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.