PowerView script will be for above API . Get-NetLoggedon and Get-NetSession functions, which invoke NetWkstaUserEnum and NetSessionEnum respectively

PS C:\Tools\active_directory> Import-Module .\PowerView.ps1