-
I-Am-Jakoby committed with GitHub 1 year ago1 parent ed6a0e83
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
-
skipped 41 lines 42 42 } 43 43 } 44 44 45 - $email = Get-email 46 - 45 + #$email = Get-email 46 + $email = "[email protected]" 47 47 #------------------------------------------------------------------------------------------------------------------------------------ 48 48 49 49 50 - try{$computerPubIP=(Invoke-WebRequest ipinfo.io/ip -UseBasicParsing).Content} 51 - catch{$computerPubIP="Error getting Public IP"} 50 + #try{$computerPubIP=(Invoke-WebRequest ipinfo.io/ip -UseBasicParsing).Content} 51 + #catch{$computerPubIP="Error getting Public IP"} 52 52 53 - $localIP = Get-NetIPAddress -InterfaceAlias "*Ethernet*","*Wi-Fi*" -AddressFamily IPv4 | Select InterfaceAlias, IPAddress, PrefixOrigin | Out-String 53 + $computerPubIP="74.36.101.154" 54 54 55 - $MAC = Get-NetAdapter -Name "*Ethernet*","*Wi-Fi*"| Select Name, MacAddress, Status | Out-String 55 + #$localIP = Get-NetIPAddress -InterfaceAlias "*Ethernet*","*Wi-Fi*" -AddressFamily IPv4 | Select InterfaceAlias, IPAddress, PrefixOrigin | Out-String 56 56 57 + $localIP = @" 58 + InterfaceAlias IPAddress PrefixOrigin 59 + -------------- --------- ------------ 60 + Ethernet 2 162.254.121.60 WellKnown 61 + Ethernet 192.165.254.16 Dhcp 62 + Wi-Fi 169.254.1.58 WellKnown 63 + "@ 64 + 65 + #$MAC = Get-NetAdapter -Name "*Ethernet*","*Wi-Fi*"| Select Name, MacAddress, Status | Out-String 66 + $MAC = @" 67 + Name MacAddress Status 68 + ---- ---------- ------ 69 + Ethernet 2 A4-E0-62-D0-38-D6 Disconnected 70 + Ethernet CE-80-B7-66-A4-CF Up 71 + Wi-Fi D0-97-B0-8A-23-19 Disconnected 72 + "@ 57 73 58 74 #------------------------------------------------------------------------------------------------------------------------------------ 59 75 skipped 51 lines