Lessons In PowerShell - Calling A Static / Shared Method

   Submit to Reddit      

In order to call a static / shared .NET method from PowerShell, use the following format.





Note: In this specific example, the PowerShell alias Get-Date could be used instead of [DateTime]::Now � this is just an example!

comments powered by Disqus