Skip to content

noaboa97/macOS-PowerShell-Core-cmdlets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published