mikefrobbins.com
open-menu closeme
Home
About
mikefrobbins.com
twitter github linkedin rss
  • Use the Abstract Syntax Tree (AST) to list parameters and variables in PowerShell functions

    calendar May 12, 2022 · AST PowerShell  ·
    Share on: twitter facebook linkedin copy

    One thing I've missed during the past couple of years with virtual-only conferences is the hallway track. While at the PowerShell + DevOps Global Summit 2022, there was a discussion about using PascalCase for parameter names and camelCase for user-defined variables in your PowerShell functions. Specifying different …


    Read More
  • Use the Abstract Syntax Tree (AST) to inspect PowerShell command syntax in scripts

    calendar Apr 8, 2022 · AST PowerShell  ·
    Share on: twitter facebook linkedin copy

    I recently needed to determine the PowerShell commands and parameters used in multiple scripts. What better way to accomplish this task than to use the Abstract Syntax Tree (AST)? The Get-MrSyntax function begins by requiring at least PowerShell version 3.0. This is the oldest version that exposes the AST. The Path …


    Read More
  • Using the AST to Find Module Dependencies in PowerShell Functions and Scripts

    calendar May 17, 2019 · AST PowerShell  ·
    Share on: twitter facebook linkedin copy

    Earlier this week, Chris Gardner presented a session on Managing dependencies in PowerShell for the Mississippi PowerShell User Group. I mentioned that I had written a function to retrieve PowerShell module dependencies that's part of my ModuleBuildTools module. Get-MrAST is one of the primary functions that numerous …


    Read More
  • PowerShell Tokenizer more Accurate than AST in Certain Scenarios

    calendar Feb 21, 2019 · AST PowerShell  ·
    Share on: twitter facebook linkedin copy

    As many of you know, I've been working on some module building tools. One of the things I needed was to retrieve a list of PowerShell modules that each function required (a list of dependencies). This seemed simple enough through PowerShell's AST (Abstract Syntax Tree) as shown in the following example. 1$File = …


    Read More

Mike F. Robbins photo

Mike F. Robbins

Scripting | Automation | Efficiency
Read More

Disclaimer

All information and code on this site is for informational purposes only and provided as-is. This site does not provide any warranty, either express or implied. All thoughts and opinions are my own.

Recent Posts

  • What does sudo apt update on Linux do?
  • How to configure Azure PowerShell global settings with the *-AzConfig cmdlets
  • Opening specific panes in system settings from the command line on macOS
  • Determine disk usage from the command line on macOS
  • Splitting the PowerShell PSModulePath Cross-Platform
  • Sync VS Code Settings between Computers with Different User Profile Paths
  • Rendering Images in Markdown Preview of Hugo Site
  • Enable PowerShell remoting on ArcoLinux

Categories

POWERSHELL 335 ACTIVE-DIRECTORY 34 SCRIPTING-GAMES 32 SQL-SERVER 20 DESIRED-STATE-CONFIGURATION 18 AZURE 10 HYPER-V 10 LINUX 8 POWERSHELL-SUMMIT 8 VSCODE 8 IIS 6 OFFICE-365 6 PESTER 6 GIT 5 WINDOWS-10 5 ARCOLINUX 4 AST 4 OPERATIONAL-VALIDATION 4
All Categories
ACTIVE-DIRECTORY34 ALTARO-VM-BACKUP2 APPASSURE1 ARCOLINUX4 AST4 AWS1 AZURE10 AZURE-POWERSHELL2 CENTOS1 CROSS-PLATFORM1 DEBIAN1 DESIRED-STATE-CONFIGURATION18 DHCP-SERVER2 EXCHANGE-SERVER2 EXCHANGE-SERVER-20102 GIT5 GROUP-POLICY1 HARDWARE1 HUGO2 HYPER-V10 IIS6 LINUX8 MACOS3 MARKDOWN1 MICROSOFT-SQL-SERVER3 NANO-SERVER1 OFFICE-3656 OPERATIONAL-VALIDATION4 PACMAN1 PAMAC1 PARU1 PESTER6 PLASTER2 POWERSHELL335 POWERSHELL-CORE3 POWERSHELL-STUDIO1 POWERSHELL-SUMMIT8 POWERSHELL-WEB-ACCESS1 RASPBERRY-PI1 REGULAR-EXPRESSIONS1 SAPIEN-TECHNOLOGIES3 SCRIPTING-GAMES32 SERVER-CORE2 SQL-SERVER20 STORAGE-AREA-NETWORK2 TRAINING-VIDEOS4 UBUNTU1 VERSION-CONTROL4 VIRTUALIZATION1 VSCODE8 VWORKSPACE1 WINDOWS1 WINDOWS-105 WINDOWS-81 WINDOWS-8.11 WINDOWS-SERVER-2003-R21 WINDOWS-SERVER-20081 WINDOWS-SERVER-2008-R21 WINDOWS-SERVER-20123 WINDOWS-SERVER-2012-R22 WINDOWS-SERVER-20161 WINDOWS-SERVER-20192
[A~Z][0~9]

Tags

POWERSHELL 328 ACTIVE-DIRECTORY 32 SCRIPTING-GAMES 30 SQL-SERVER 21 DSC 19 DESIRED-STATE-CONFIGURATION 18 HYPER-V 11 VIDEO 11 AZURE 10 PESTER 10 AST 8 LINUX 8 POWERSHELL-VERSION-5 8 VSCODE 8 IIS 6 OFFICE-365 6 POWERSHELL-SCRIPT-MODULE-DESIGN 6 POWERSHELL-SUMMIT 6
All Tags
ACTIVE-DIRECTORY32 ALTARO-VM-BACKUP2 APPASSURE1 ARCOLINUX4 AST8 AWS1 AZ1 AZURE10 AZURE-POWERSHELL2 AZURERM1 CENTOS1 CROSS-PLATFORM1 DEBIAN1 DEDUPLICATION1 DESIRED-STATE-CONFIGURATION18 DHCP1 DHCP-SERVER2 DSC19 EQUALLOGIC1 EXCHANGE-20101 EXCHANGE-SERVER2 EXCHANGE-SERVER-20101 GIT5 GITHUB3 GROUP-POLICY1 HARDWARE1 HUGO2 HYPER-V11 IIS6 LINUX8 MACOS3 MARKDOWN1 NANO-SERVER1 NIMBLE1 OFFICE-3656 ONEGET5 OPERATION-VALIDATION-FRAMEWORK1 OPERATIONAL-VALIDATION4 PACMAN1 PAMAC1 PARU1 PESTER10 PLASTER2 POWERSHELL328 POWERSHELL-CORE3 POWERSHELL-SCRIPT-MODULE-DESIGN6 POWERSHELL-STUDIO1 POWERSHELL-SUMMIT6 POWERSHELL-VERSION-58 POWERSHELL-WEB-ACCESS1 POWERSHELLGET2 PRODUCTIVITY-HACKS1 PSBLOGWEEK1 RASPBERRY-PI1 REGULAR-EXPRESSIONS1 SAN2 SCRIPT-ANALYZER1 SCRIPTING-GAMES30 SERVER-CORE2 SOURCE-CONTROL4 SQL-SERVER21 STORAGE-AREA-NETWORK2 UBUNTU1 VERSION-CONTROL4 VIDEO11 VISUAL-STUDIO-CODE3 VSCODE8 VWORKSPACE1 WINDOWS1 WINDOWS-106 WINDOWS-82 WINDOWS-8.11 WINDOWS-SERVER-2003-R21 WINDOWS-SERVER-20124 WINDOWS-SERVER-2012-R21 WINDOWS-SERVER-20192 WMI2
[A~Z][0~9]
mikefrobbins.com

Copyright  MIKEFROBBINS.COM. All Rights Reserved

to-top