I use the ISE and whenever I’m connected via the pssession and It appears that when I run get-help new-mailboxsearch -full I don’t get any results.
I’m assuming this is a New-PSSessionOption I need to configure or change as my guess is it’s trying to pull the help from the CAS server and not my local machine.
Is there anything I can change to allow for local searching while in ISE and connected to the Session.
Can you run Get-Help Get-Help? In other words, does help work at all in the remote session?
In a remote session, it’s definitely attempting to access help on the remote machine, not your local machine. The remote endpoint may have disabled the Get-Help command, though.
So correction it’s when I add -Full it show’s only this.
SYNTAX
DESCRIPTION
PARAMETERS
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
RELATED LINKS
The same thing occurs when I use the -examples tag.
Well the goals itself was to run Help search-mailbox -full or New-mailboxsearch -full and get a better understanding of the -SearchQuery values and what values I can give them.
(1) You can only get help for a cmdlet if the cmdlet is installed on whatever computer you’re asking for help on. If you’re remote into a computer, that computer needs the command installed. PowerShell won’t look on your local machine for help files if you’re remoting into a machine.
(2) Not every product installs help along with commands. You may need to run Update-Help on whatever computer contains the commands.
(3) If a command is installed, but not the help, you’ll still get an automatically-constructed help file, but it won’t include examples, or detailed descriptions.
Your original thread was “why doesn’t the help work,” which is what I was trying to answer. However, reading https://technet.microsoft.com/en-us/library/dd298173(v=exchg.150).aspx (which is the same as the help for the command would be), the -SearchQuery parameter indeed seems to accept multiple OR values; see Example 4.
I tend to find the web-based help more accessible and more up-to-date, and often use that in preference to the local help. It’s also a bit easier for me to float it around in a separate window, resize the text, quickly jump to cross-references, that kind of thing.
I do use the web-based help but was hoping the -Full help for Search-Mailbox or New-Mailboxsearch would have more information on the -SearchQuery value including some examples with AND OR NOT statements, or SearchQuery ‘Subject:Value’ ‘Body:Value’ but I’ll test around with it and see if it works. If not I’ll open a new question.