Resolve-NetPath

Returns the path to Windows' net.exe command.

Syntax

Resolve-NetPath [<CommonParameters>]

Description

You can't always assume that net.exe is in your path. Use this function to return the path to net.exe regardless of paths in your path environment variable.

EXAMPLE 1

Resolve-NetPath

Returns C:\Windows\system32\net.exe. Usually.