Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 673 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 673 Bytes

macOS PowerShell Core cmdlets

PowerShell Scripts vor macOS

Get-Airport

Retrieves the wireless connection of your Mac with the CLI Tool Airport.
As Output you get the same infos as the cli outputs but in an object so you can easy acces the information and use it in a script.

Copy the file to the $PSHOME directroy. Command if the files is on the desktop:

sudo cp /Users/<Username>/Desktop/Get-Airport.ps1 /usr/local/microsoft/powershell/6/Get-Airport.ps1

Start Powershell over your Terminal

pwsh

Just run like anyother cmdlet Get-Airport

Get-Airport

or save the Ouput to a variable

$Airport = Get-Airport