Feature Request - Target variable

Comments

2 comments

  • Nathan Borup (HeedfulCrayon)

    Or even better, create a "New Step" where you can enter a variable that can then be referred to in scripts whether it be command line, or powershell

    0
    Comment actions Permalink
  • Edmon Uyan

    in my case where i have to do an inventory of my target devices and show their hostnames, this is my command

    for /f "tokens=14" %%a in ('ipconfig ^| findstr IPv4') do echo %%a>\\Public\temp\%computername%---%%a.txt
    

    One dilemma i have for this is that the resulting file doesn't show the actual computer name. Hostname mismatch is the case. One thing I would want to know if there's a %target% environment variable i can use to determine which host has the mismatch.

    0
    Comment actions Permalink

Please sign in to leave a comment.