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

This site uses Akismet to reduce spam. Learn how your comment data is processed.