PowerShell Handy Commands

PowerShell Handy Commands

These are very helpful commands for PowerShell Beginner, so keep them handy.

How to find installed Modules?
PS C:\> Get-Module

How to find available modules?
PS C:\> Get-Module -List

How to import a Module?
PS C:\> import-module activedirectory

How to get help for Mudules?
PS C:\> Get-Help about_module

How to get Particular CMDLET help?
PS C:\> get-help Get-ADUser

How to get full help  of a Module(like grouppolicy, activedirectory)
PS C:\> GCM -Module grouppolicy | Foreach {get-help $_.name -Examples}
PS C:\> GCM -Module activedirectory | Foreach {get-help $_.name -Examples}


How to check Powershell Version?
PS C:\> $host.Version.Major

How to find particular mudule commands ?
PS C:\> Get-Command -Module activedirectory

_____________________________________________________________
Regards
Biswajit Biswas
My Blogs|TechnetWiki Ninja



Another languages available :

Leave a Comment
  • Please add 6 and 4 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Benoit Jester edited Revision 9. Comment: Add french link

  • PS C:\> $server=Get-ADComputer -LDAPFilter "(&(objectcategory=computer)(OperatingSystem=*server*))"

    PS C:\> $server.name

    WIN-0KKDGE8VSS3

    WIN-TBPDE99QC8I

    PS C:\> $server.count

    2

Page 1 of 1 (2 items)