Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8104763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:58:19+00:00 2026-06-05T23:58:19+00:00

When working with powershell cmdlets, I often find that I need to set a

  • 0

When working with powershell cmdlets, I often find that I need to set a switch to a finite number of options, but I don’t know what options those are. I end up spending hours trying to google the option that I want. Is there a better way? I’ve tried looking at microsoft sites and Get-Help -examples, but none of those provide values for the switches that I want.

Here’s an example.

Set-SPWebApplication <a couple of switches...> -AuthenticationMethod <String>

What are the acceptable values for -AuthenticationMethod?

This is just one example, but I run into this problem a lot. Im thinking there should be something in the Get-Help that would illuminate me, but that is often unhelpful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T23:58:22+00:00Added an answer on June 5, 2026 at 11:58 pm

    The easiest way I know is to pass an invalid option and you get a list in the error message:

    PS> Set-ExecutionPolicy foo

    Set-ExecutionPolicy : Cannot bind parameter ‘ExecutionPolicy’. Cannot convert value “foo” to type “Microsoft.PowerShell.ExecutionPolicy” due to invalid enumeration values. Specify one of the following enumeration values and try again. The possible enumeration values are “Unrestricted, RemoteSigned, AllSigned, Restricted, Default, Bypass, Undefined”.

    At line:1 char:20
    + Set-ExecutionPolicy <<<< foo
        + CategoryInfo : InvalidArgument: (:) [Set-ExecutionPolicy], ParameterBindingException
        + FullyQualifiedErrorId : CannotConvertArgumentNoMessage, Microsoft.PowerShell.Commands.SetExecutionPolicyCommand

    At this point you also have the type, so you can also use tab completion to get the valid values:

    PS> [Microsoft.PowerShell.ExecutionPolicy]::Tab

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had this sqlcmd snippet working in batch but when I converted to powershell,
Working on a movie website and would love to find an API that I
Working on a simple helper function in PowerShell that takes a couple of parameters
I am working on providers and cmdlets for Powershell 1 & 2. Which version(s)
I'm using invoke-expression in PowerShell to create an archive, but it's not working due
I want to write a PowerShell script that will recursively search a directory, but
I am working on a PowerShell script that will monitor a list of servers
I am working with PowerShell to create a renaming script for a number of
I am working on a PowerShell function that is supposed to check if two
I'm trying to get this simple PowerShell script working, but I think something is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.