Windows | Start powershell direct in the Command Prompt

I think some people already know but it could be useful to know. How to start powershell when you already opened a command line prompt
Run a command prompt in adminsitrative mode

To activate powershell. You need to enter the command: Powershell

if you type the command: get-help get (You will get all the powershell command’s which are available with the get command)

Active directory module for powershell:

powershell.exe -noexit -command import-module ActiveDirectory

Exchange powershell from command prompt:

powershell.exe -PSConsoleFile “C:\Program Files\Microsoft\Exchange Server\bin\exshell.psc1” -noexit -command “. ‘C:\Program Files\Microsoft\Exchange Server\bin\Exchange.ps1′”

Windows Azure Active Directory-module voor Windows PowerShell

powershell.exe  -NoExit -Command “Import-Module MSOnline”



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s