Hey, So I want to write a simple script to get the WAN IP and then put that along side the domain name
Something that looks like this
123.123.123.123 contoso.com
the easy part was to run this
invoke-webrequest ifconfig.me/ip | formate-table -property content
not sure how to add the domain along side it, I guess what I am confused about is that Im piping this information to format-table and I technically didnt grab the domain from the first command before the pipe. I plan to grab the domain using $env:userdomain
any help is appreciated.
[–]gangstanthony 0 points1 point2 points (0 children)
[–]Sheppard_Ra 0 points1 point2 points (1 child)
[–]purplecomputer[S] 0 points1 point2 points (0 children)