Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

get-dns problem

$
0
0

Colleagues,

i type get-dns cmdlet, and i got

PS C:\powershell_v3> get-dns

get-dns : Index was outside the bounds of the array.

At line:1 char:1

+ get-dns

+ ~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Get-Dns], IndexOutOfRangeException

    + FullyQualifiedErrorId : System.IndexOutOfRangeException,DnsShell.PowerShell.CmdLet.GetDns

 

2)

 

PS C:\powershell_v3> get-dns -Name google.com -Type mx

get-dns : Index was outside the bounds of the array.

At line:1 char:1

+ get-dns -Name google.com -Type mx

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Get-Dns], IndexOutOfRangeException

    + FullyQualifiedErrorId : System.IndexOutOfRangeException,DnsShell.PowerShell.CmdLet.GetDns

 

PS C:\powershell_v3>

what is the problem?


Viewing all articles
Browse latest Browse all 6937

Trending Articles