PowerShellMafia / PowerSploit

PowerSploit - A PowerShell Post-Exploitation Framework
Other
11.77k stars 4.59k forks source link

Get-DomainSubnet and Get-DomainSite throw exceptions when there aren't any #315

Open leechristensen opened 5 years ago

leechristensen commented 5 years ago

Self explanatory. If there are not sites or subnets, then Get-DomainSubnet and Get-DomainSite throw an exception. Ideally the output would be nothing. This causes issues with other cmdlets, such as Get-DomainGPO -ComputerIdentity <COMP>