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 9218515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:52:57+00:00 2026-06-18T02:52:57+00:00

The Powershell Community Extensions (pscx) override the standard help function when the module is

  • 0

The Powershell Community Extensions (pscx) override the standard “help” function when the module is imported, to use the supplied “less” function which in turn calls the less.exe command supplied with pscx. Unfortunately, less.exe crashes the “Console2” command shell wrapper that I use extensively, so I want to override what pscx does.

I know PSCX has a preference option to make help use the standard “more” function rather than “less”. I also know that I can manually override the “less” function. But I only use pscx occasionally, so I don’t load it in my profile, and if I forget either of these overrides, I can crash my powershell session with something as simple as typing “help”!

What I would like is to be able to put something in my profile that detects when pscx is imported, and at that point overrides the less function and sets the help preference appropriately.

Is it possible to define an “after import” type of event like this in powershell?

  • 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-18T02:52:58+00:00Added an answer on June 18, 2026 at 2:52 am

    In your $profile add set-alias less more.com

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

Sidebar

Related Questions

I want to create a new Hardlink with the PowerShell Community Extensions PSCX commandlet
PowerShell snippet: Import-Module Pscx Expand-Archive ConsoleApplication1.zip ./ Write-Host $? Write-Host $LastExitCode Neither $? nor
I have a PowerShell script/function that works great when I use it in my
I'm attempting to write a Twitter Powershell script that will use community created interfaces
I want to install the PowerShell Community Extensions using only the command-line. I don't
Powershell provides the New-WebServiceProxy cmdlet which allows for a web service proxy object to
In PowerShell you can use pushd (an alias for Push-Location ) and popd (an
In PowerShell you can use the Get-WmiObject cmdlet to grab WMI classes. I have
PowerShell's help ( powershell -? ) states: -Version Starts the specified version of Windows
In PowerShell you can use [xml] to mean [System.Xml.XmlDocument]. Do you know where I

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.