PowerShell
PowerShell copied to clipboard
Netbiosname required rather than $Name for $domain and RPC test
If a FQDN is used on input, the returned domain is the FQDN of the server and the RPC test will always fail. It appears that $Name can be either the NetBiosName or FQDN for most things, but not for getting the domain or the RPC test.