#PSTip Invoking methods with New-Object
Note: This tip requires PowerShell 2.0 or above. Starting with PowerShell 2.0 we can create new objects and set property values with the Property parameter.
Read MoreNote: This tip requires PowerShell 2.0 or above. Starting with PowerShell 2.0 we can create new objects and set property values with the Property parameter.
Read MoreNote: This tip requires PowerShell 3.0 or above. In a couple of earlier posts, we looked at how we can get firewall rules and add new rules.
Read MoreNote: This tip requires PowerShell 3.0 or above. In an earlier tip, we looked at how we can add firewall rules in Windows 8 or Windows Server 2012.
Read MoreNote: This tip requires PowerShell 3.0 or above. Before the release of Windows Server 2012 and Windows 8, adding rules to Windows Firewall required a painful approach of using the firewall COM object.
Read MoreLet’s say you created a new TimeSpan object by using the Start parameter. PS> $ts = New-TimeSpan -Start 1/1/2014 PS> $ts Days : -324 Hours : -9 Minutes : -44 Seconds : -12 Milliseconds : -596 Ticks : -280286525960331 TotalDays : -324.
Read MoreNote: This tip requires PowerShell 2.0 or above. There are times when you need to validate the credentials of an Active Directory user account.
Read More