This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gwmi win32_OperatingSystem -cn localhost|select P*me,*j*,V*,@{N=’BIOSSERIAL';E={(gwmi -cn $_.pscomputername win32_bios).serialnumber}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Use of WebClient Class | |
$webClient = New-Object System.Net.WebClient | |
$webClient.DownloadString("http://www.telize.com/geoip")| ConvertFrom-Json | Select-Object longitude,latitude,country_code,timezone | Format-Table -AutoSize | |
#This is a simple function to wrap the above | |
$webClient = New-Object System.Net.WebClient | |
$url="http://www.telize.com/geoip" | |
function Get-GeoInformation | |
{ | |
[CmdletBinding()] | |
param |