d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Powershell Ise Question
Add Reply New Topic New Poll
Member
Posts: 22,269
Joined: May 26 2007
Gold: 100.24
Apr 25 2013 12:13am
How can I see what options I have in commands?

For example, if I start to write:

import-

how can I see all the options I have that start with "import-". For example, with some systems you can get output with ?

import-

press ?

and here is listed all the import-commands



How to get these out in powershell?
Member
Posts: 10,812
Joined: Oct 15 2009
Gold: Locked
Warn: 20%
Apr 25 2013 02:17am
well you can hit tab over and over again, not sure if that is what you are asking
Member
Posts: 22,269
Joined: May 26 2007
Gold: 100.24
Apr 25 2013 03:31am
Quote (Azrad @ 25 Apr 2013 10:17)
well you can hit tab over and over again, not sure if that is what you are asking


Thanks!

is there any option to get all the possible commands with certain beginning listed? Also how do I get all the options of command out? I know get-command | select-string but is there any other way?
Member
Posts: 10,812
Joined: Oct 15 2009
Gold: Locked
Warn: 20%
Apr 25 2013 04:51am
Quote (Deppi @ Apr 25 2013 02:31am)
Thanks!

is there any option to get all the possible commands with certain beginning listed? Also how do I get all the options of command out? I know get-command | select-string but is there any other way?


still not sure what you are asking but if you type the letter "c" then spam the tab key it will list a shit load of commands that start with the letter c
Member
Posts: 7,565
Joined: Apr 10 2007
Gold: 31.65
Apr 25 2013 06:13am
Quote (Deppi @ Apr 25 2013 09:31am)
Thanks!

is there any option to get all the possible commands with certain beginning listed? Also how do I get all the options of command out? I know get-command | select-string but is there any other way?


get-help is one of the most powerful cmdlets, especially when you're a beginner,

Code
get-help {cmdlet e.g get-childitem}


otherwise, with this approach you get a list of all the cmdlets;

Code
Get-Command -CommandType cmdlet


pick one and use the first procedure to get all the necessary information

if you're at the start of your journey, take a look at the following blog;

http://blogs.technet.com/b/heyscriptingguy/

amazing guy who explains powershell on a humerous and comprehensive way,

This post was edited by uglygeorge08 on Apr 25 2013 06:18am
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll