SoSleepy

Troy Bowman

Category: PowerShell

  • ,

    AWS PowerShell Getting Started

    How to find the equivalent AWS PowerShell command to the CLI A newer method is to use Get-AWSCmdletName with -Service and -ApiOperation If you don’t know the full name of the -ApiOperation to search for, use the -MatchWithRegex switch as a wildcard option.

    Read More

  • How to Choose which Data Type to Use

    How to decide which of the following to use in a program. https://gist.github.com/kevinblumenfeld/4a698dbc90272a336ed9367b11d91f1c .Net System.Collections.Generic Namespaces: https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic?view=net-8.0 How use .Net namespaces in PowerShell. Or include the whole .Generic namespace one time at the beginning of the script. Then just use the class name instead of the full namespace.

    Read More

  • ,

    Quickly Create An Array of Strings Without Quoting Each String

    When there is a list of words that need to be quickly converted to an array of strings, use this quick method. The ql function will quickly create an array of strings without needing to use any quotes. Very handy! Example Output This is such a great tip from the book: Windows PowerShell in Action,…

    Read More

  • ,

    Various Ways to Add Values to an Array

    Declare an array of a fixed size. Adding values to an array. Declaring empty arrays and then using += add values will add a significant penalty in the time to complete the operation. It takes 383 seconds to assign 100,000 values to an array using += @() and += takes 383 seconds to complete! Fixed…

    Read More

About

Lorem ipsum dolor sit amet, consec tetur adipiscing elit. Maecenas odio lacus, dignissim sollicitudin finibus commodo, rhoncus et ante.

categories

Archives