Help with clear and set-content windows power shell RRS feed

  • Dotaz

  • Hello, Iam just new in windows power shell and I try to make this simple script:

    nslookup google.cz | Set-Content c:\scripts\test.txt

    result is a text file with a - Server: rvc01dc03.cz.foxconn.com Address: DNS request timed out. timeout was 2 seconds. Name: microsoft.com Addresses:,

    But I want a result like this: Server Name: microsoft.com

    Can you help me?

    čtvrtek 29. března 2012 5:51


Všechny reakce