Skip to content

There is an alias for that... Retrieves PowerShell aliases from the local computer and presents the info in various table formatted formats (a Windows PowerShell script).

License

Notifications You must be signed in to change notification settings

auberginehill/get-powershell-aliases-table

Repository files navigation

Get-PowerShellAliasesTable.ps1

OS: Windows
Type: A Windows PowerShell script
Language: Windows PowerShell
Description: Get-PowerShellAliasesTable uses the Get-Alias cmdlet to gather the data and writes the info to a CSV- and a HTML-file and displays the output in a pop-up window (Out-GridView) and opens the HTML-file in the default browser.
Homepage: https://github.com/auberginehill/get-powershell-aliases-table
Short URL: http://tinyurl.com/hbkyhu7
Version: 1.0
Sources:
Emojis: Emoji Table
Martin Pugh: Get-FolderSizes
Downloads: For instance Get-PowerShellAliasesTable.ps1. Or everything as a .zip-file.

Screenshot

screenshot

Outputs

➡️
  • Displays PowerShell aliases in a pop-up window "$aliases" (Out-GridView):

      Name Description
      $aliases Displays a list of PowerShell aliases

  • ...and writes that data to a CSV- and a HTML-file as described below:
    1. Path Type Name
      $env:temp\powershell_aliases.csv CSV-file powershell_aliases.csv
      $env:temp\powershell_aliases.html HTML-file powershell_aliases.html

  • And opens the HTML-file in the default browser.

Notes

⚠️
  • PowerShell Aliases

Examples

📖 To open this code in Windows PowerShell, for instance:

  1. ./Get-PowerShellAliasesTable
    Run the script. Please notice to insert ./ or .\ before the script name.
  2. help ./Get-PowerShellAliasesTable -Full
    Display the help file.
  3. Set-ExecutionPolicy remotesigned
    This command is altering the Windows PowerShell rights to enable script execution for the default (LocalMachine) scope. Windows PowerShell has to be run with elevated rights (run as an administrator) to actually be able to change the script execution properties. The default value of the default (LocalMachine) scope is "Set-ExecutionPolicy restricted".

    Parameters:

      Restricted Does not load configuration files or run scripts. Restricted is the default execution policy.
      AllSigned Requires that all scripts and configuration files be signed by a trusted publisher, including scripts that you write on the local computer.
      RemoteSigned Requires that all scripts and configuration files downloaded from the Internet be signed by a trusted publisher.
      Unrestricted Loads all configuration files and runs all scripts. If you run an unsigned script that was downloaded from the Internet, you are prompted for permission before it runs.
      Bypass Nothing is blocked and there are no warnings or prompts.
      Undefined Removes the currently assigned execution policy from the current scope. This parameter will not remove an execution policy that is set in a Group Policy scope.

    For more information, please type "Get-ExecutionPolicy -List", "help Set-ExecutionPolicy -Full", "help about_Execution_Policies" or visit Set-ExecutionPolicy or about_Execution_Policies.

  4. New-Item -ItemType File -Path C:\Temp\Get-PowerShellAliasesTable.ps1
    Creates an empty ps1-file to the C:\Temp directory. The New-Item cmdlet has an inherent -NoClobber mode built into it, so that the procedure will halt, if overwriting (replacing the contents) of an existing file is about to happen. Overwriting a file with the New-Item cmdlet requires using the Force. If the path name includes space characters, please enclose the path name in quotation marks (single or double):

      New-Item -ItemType File -Path "C:\Folder Name\Get-PowerShellAliasesTable.ps1"

    For more information, please type "help New-Item -Full".

Contributing

Find a bug? Have a feature request? Here is how you can contribute to this project:

contributing Bugs: Submit bugs and help us verify fixes.
Feature Requests: Feature request can be submitted by creating an Issue.
Edit Source Files: Submit pull requests for bug fixes and features and discuss existing proposals.

www

www Script Homepage
Martin Pugh: Get-FolderSizes
An A-Z Index of Windows PowerShell commands
Creating Formatted HTML Output
ConvertTo-Html
about_Aliases

Related scripts

www Disable-Defrag
Firefox Customization Files
Get-AsciiTable
Get-BatteryInfo
Get-ComputerInfo
Get-CultureTables
Get-DirectorySize
Get-InstalledPrograms
Get-InstalledWindowsUpdates
Get-PowerShellSpecialFolders
Get-RAMInfo
Get-TimeDifference
Get-TimeZoneTable
Get-UnusedDriveLetters
Emoji Table
Java-Update
Remove-EmptyFoldersLite
Remove-EmptyFolders
Rename-Files
Rock-Paper-Scissors
Toss-a-Coin
Update-AdobeFlashPlayer
Update-MozillaFirefox

About

There is an alias for that... Retrieves PowerShell aliases from the local computer and presents the info in various table formatted formats (a Windows PowerShell script).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published