OpsaC - Operating as PowerShell code
published: January 29, 2019 author: Tinu tags: PowerShell categories: PowerShell-Class
A file, could have a psm1-Extension.
Class PsNetTools {...}
[string]$message = $null
PsNetTools(){
$this.message = "Loading PsNetTools"
}
[object]static dig() {...}
[object]static tping() {...}
[object]static uping() {...}
[object]static wping() {...}
The Function should be exported within a Module manifest, see here Module
About Classes on Microsoft Docs