It gives me the output I want in the format I want for most of my quick needs: I wrote the following code and saved it as "Get-IpAddress.ps1" on all my machines. Which is fine but doesn't give you the flexibility to use that information within a powershell script to do other things, so where's the fun in that? Also, getting it with powershell is a necessary skill for anyone that administers servers (at least to my way of thinking). Typically, you would employ the CLI tool IPCONFIG to get it, and if you wanted to quickly get just the IP Addresses for your machine, you might use: Getting an IP Address from a machine is something we need to do often, for many reasons. UPDATE: : PowerShell now has built in cmdlets to handle this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |