mikefrobbins.com
open-menu closeme
Home
About
mikefrobbins.com
twitter github linkedin rss
  • Use PowerShell to Identify the Process ID for SQL Server Services

    calendar Apr 25, 2019 · PowerShell SQL Server  ·
    Share on: twitter facebook linkedin copy

    I recently saw a blog article on How to Identify Process ID for SQL Server Services? – Interview Question of the Week #185 written by Pinal Dave. While his answer is simple with TSQL, what if you're not a SQL guy? You can also retrieve this information with PowerShell from Windows itself. When it comes to retrieving …


    Read More
  • Enable Tab Completion in VSCode for a PowerShell ISE like Experience

    calendar Apr 16, 2019 · PowerShell VSCode  ·
    Share on: twitter facebook linkedin copy

    I'm using VSCode for all of my PowerShell development at this point. I reloaded my system from scratch on March 13th of this year. Yesterday was the first time I've opened the PowerShell ISE since then and it was only to determine if something worked differently between the two (I tweeted this out yesterday). One of …


    Read More
  • Run SQL Server PowerShell Cmdlets as a Different User

    calendar Apr 11, 2019 · PowerShell SQL Server  ·
    Share on: twitter facebook linkedin copy

    One of the ways I practice the principal of least privilege is by logging into my computer as a domain user who is also a standard local user. I typically run PowerShell as a domain user who is a local admin and elevate on a per command basis using a domain account with more access only when absolutely necessary. The …


    Read More
  • Audit Membership of the Local Admins Group with PowerShell

    calendar Apr 4, 2019 · PowerShell  ·
    Share on: twitter facebook linkedin copy

    Recently, I needed to make sure that specific accounts were members of the local administrators group on several servers along with making sure that no other users were members of it. PowerShell version 5.1 introduced a module named Microsoft.PowerShell.LocalAccounts that contains the following commands for managing …


    Read More
  • Backup and Synchronize VSCode Settings with a GitHub Gist

    calendar Mar 21, 2019 · PowerShell VSCode  ·
    Share on: twitter facebook linkedin copy

    Earlier this year, I watched a recording of the January 2019 Arizona PowerShell User Group meeting where Tim Warner presented a session on Easing your transition from the PowerShell ISE to Visual Studio Code. One of the things Tim demonstrated was a VSCode extension named Settings Sync where you can synchronize your …


    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
  • My Solution to Iron Scripter 2019 Preparatory Challenge 1

    calendar Feb 16, 2019 · PowerShell PowerShell Summit Scripting Games  ·
    Share on: twitter facebook linkedin copy

    Anyone who has competed in the scripting games before knows that I'm always looking for a challenge when it comes to writing PowerShell code. While the scripting games haven't been held in the last several years, they've somewhat been replaced by the Iron Scripter competition at the PowerShell + DevOps Global Summit …


    Read More
  • Unexpected Results when Comparing Different Datatypes in PowerShell

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

    Earlier this week, I saw a tweet from a fellow PowerShell community member who mentioned PowerShell was returning inaccurate results. The command shown in the tweet was similar to the one in the following example. 1Get-AppxPackage | 2Where-Object -Property IsFramework -eq 'False' | 3Select-Object -Property …


    Read More
  • What’s a PowerShell One-Liner & NOT a PowerShell One-Liner?

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

    Lately, I've seen a few examples of commands that aren't PowerShell one-liners being passed off as such by people in the PowerShell community who "should" know better. If I were interviewing someone who claimed to be a PowerShell expert with more than five years of experience, I would definitely ask these …


    Read More
  • Return a List of the Private Functions in a PowerShell Module

    calendar Jan 31, 2019 · PowerShell  ·
    Share on: twitter facebook linkedin copy

    In my quest to build a PowerShell module to convert a non-monolithic PowerShell module from development to a monolithic one for production, I wanted some way to validate that all of the functions were indeed migrated. While I'm pointing my tools to the public and private sub-folders within my development module and …


    Read More
    • ««
    • «
    • 2
    • 3
    • 4
    • 5
    • 6
    • »
    • »»

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