Wednesday, December 30, 2020

Calculated Properties in PowerShell Functions


Many times a returned property from an object in PowerShell may not be ideally named, or the value is not quite in the necessary format. For those instances, PowerShell has the calculated properties construct. This useful feature allows for modifying the returned value easily during select operations and quickly and easily return what’s needed in the pipelined output. In practice, what does this look like? How about taking one date format, and changing to a different format?

Read This Article on CloudSavvy IT ›



from How-To Geek https://ift.tt/3n0ENnW

No comments:

Post a Comment