12

Exchange Online PowerShell v2 Module Preview – Now More Secure

 2 years ago
source link: https://techcommunity.microsoft.com/t5/exchange-team-blog/exchange-online-powershell-v2-module-preview-now-more-secure/ba-p/2922946?WT_mc_id=DOP-MVP-4025064
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Exchange Online PowerShell v2 Module Preview – Now More Secure

Exchange Online PowerShell v2 Module Preview – Now More Secure

Published Nov 03 2021 11:56 AM 3,682 Views

We’re excited to let you know that we are working on a new version of the Exchange Online PowerShell v2 module, built to provide a more secure experience for Exchange Online management. This module (available now in preview as Module 2.0.6-Preview3) enables IT admins to use their Windows client machines for day-to-day management of Exchange Online in their organization without enabling WinRM basic auth!

What’s new in this Preview?

The new module allows admins to connect to Exchange Online using Connect-ExchangeOnline, which now invokes a REST API in the background, making the cmdlets more reliable. Because a Remote PowerShell connection is not established in new version, this version doesn’t require WinRM basic auth to be enabled. You can disable WinRM basic auth by running the command below:

winrm set winrm/config/client/auth '@{Basic="false"}'

Read more about WinRM basic auth here.

A few things to note:

Installing the Preview Module

You can use the following command to install the preview module in PowerShell Core:

Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.6-Preview3 -AllowPrerelease

Let us know what you think! Send your product improvement suggestions and feedback to exocmdletpreview(AT)service.microsoft.com. Remember this is a preview and we plan to continue adding more cmdlets to the list of those able to run without WinRM basic auth. As we make progress, we will make more announcements!

The Exchange Team

Cmdlets Released in 2.0.6-Preview3.zip
3 Comments

‎Nov 03 2021 06:59 PM

‎Nov 04 2021 08:24 AM

‎Nov 04 2021 10:52 AM

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

%3CLINGO-SUB%20id%3D%22lingo-sub-2924732%22%20slang%3D%22en-US%22%3ERe%3A%20Exchange%20Online%20PowerShell%20v2%20Module%20Preview%20%E2%80%93%20Now%20More%20Secure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2924732%22%20slang%3D%22en-US%22%3E%3CP%3ENoice%20!%3CBR%20%2F%3E%3CBR%20%2F%3EAny%20plans%20to%20move%20the%20legacy%20CmdLets%20like%20Get-DistributionGroupMember%20etc.%20over%20to%20Get-ExoDistributionGroupMember%20(i.e.%20REST-based%20CmdLets)%3F%20...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOr%20is%20there%20a%20plan%20to%20add%20the%20administration%20capabilitys%20to%20Graph%20and%20just%20have%20everyone%20go%20that%20way%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELove%20your%20work%20!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2922946%22%20slang%3D%22en-US%22%3EExchange%20Online%20PowerShell%20v2%20Module%20Preview%20%E2%80%93%20Now%20More%20Secure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2922946%22%20slang%3D%22en-US%22%3E%3CP%3EWe%E2%80%99re%20excited%20to%20let%20you%20know%20that%20we%20are%20working%20on%20a%20new%20version%20of%20the%20Exchange%20Online%20PowerShell%20v2%20module%2C%20built%20to%20provide%20a%20more%20secure%20experience%20for%20Exchange%20Online%20management.%20This%20module%20(available%20now%20in%20%3CA%20href%3D%22https%3A%2F%2Fwww.powershellgallery.com%2Fpackages%2FExchangeOnlineManagement%2F2.0.6-Preview3%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Epreview%3C%2FA%3E%20as%20Module%202.0.6-Preview3)%20enables%20IT%20admins%20to%20use%20their%20Windows%20client%20machines%20for%20day-to-day%20management%20of%20Exchange%20Online%20in%20their%20organization%20without%20enabling%20WinRM%20basic%20auth!%3C%2FP%3EWhat%E2%80%99s%20new%20in%20this%20Preview%3F%3CP%3EThe%20new%20module%20allows%20admins%20to%20connect%20to%20Exchange%20Online%20using%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Fconnect-exchangeonline%3Fview%3Dexchange-ps%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3EConnect-ExchangeOnline%3C%2FA%3E%2C%20which%20now%20invokes%20a%20REST%20API%20in%20the%20background%2C%20making%20the%20cmdlets%20more%20reliable.%20Because%20a%20Remote%20PowerShell%20connection%20is%20not%20established%20in%20new%20version%2C%20this%20version%20doesn%E2%80%99t%20require%20WinRM%20basic%20auth%20to%20be%20enabled.%20You%20can%20disable%20WinRM%20basic%20auth%20by%20running%20the%20command%20below%3A%3C%2FP%3E%3CP%3Ewinrm%20set%20winrm%2Fconfig%2Fclient%2Fauth%20'%40%7BBasic%3D%22false%22%7D'%3C%2FP%3E%3CP%3ERead%20more%20about%20WinRM%20basic%20auth%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fexchange%2Fexchange-online-powershell-v2%3Fview%3Dexchange-ps%23prerequisites-for-the-exo-v2-module%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%3CP%3EA%20few%20things%20to%20note%3A%3C%2FP%3EThis%20is%20important%20to%20understand%3A%20not%20all%20cmdlets%20have%20been%20converted%20to%20use%20REST%20at%20this%20time.%20This%20is%20a%20preview%20module%20that%20supports%20only%20a%20portion%20of%20all%20cmdlets.%20The%20complete%20list%20of%20229%20cmdlets%20available%20with%20this%20release%20is%20in%20the%20attached%20file%20(see%20the%20file%20attached%20to%20this%20post%20for%20current%20list).%20This%20version%20allows%20you%20to%20use%20all%20cmdlets%20via%20a%20Remote%20PowerShell%20connection%20as%20well.%20For%20that%2C%20you%20need%20to%20pass%20the%20-UseRPSSession%20parameter%20while%20running%20Connect-ExchangeOnline.%20If%20you%20disable%20WinRM%20basic%20auth%2C%20the%20only%20cmdlets%20that%20will%20work%20with%20this%20module%20are%20the%20ones%20in%20the%20attached%20list%3B%20other%20RPS%20cmdlets%20will%20not%20work%20without%20WinRM%20basic%20auth%20at%20this%20time.%20Please%20note%20that%20the%20work%20to%20enable%20cmdlets%20to%20run%20without%20WinRM%20basic%20auth%20is%20not%20the%20same%20as%20what%20we%20did%20to%20release%20specific%20REST-based%20cmdlets%20(see%20Get-ExchangeOnline*%20cmdlets%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fexchange%2Fexchange-online-powershell-v2%3Fview%3Dexchange-ps%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Elisted%20here%3C%2FA%3E).%20This%20new%20work%20(enabling%20cmdlets%20to%20run%20without%20WinRM%20basic%20auth%20on%20a%20local%20client%20machine)%20is%20simply%20enabling%20regular%20cmdlets%20to%20run%20without%20WinRM%20basic%20auth.%20Therefore%2C%20you%20should%20not%20expect%20significant%20performance%20increases%20based%20on%20this%20work%2C%20as%20the%20goal%20is%20to%20not%20change%20any%20cmdlet%20names%20or%20change%20parameters%2C%20but%20to%20begin%20enabling%20all%20cmdlets%20to%20run%20without%20WinRM%20basic%20auth.%20Installing%20the%20Preview%20Module%3CP%3EYou%20can%20use%20the%20following%20command%20to%20install%20the%20preview%20module%20in%20PowerShell%20Core%3A%3C%2FP%3E%3CP%3EInstall-Module%20-Name%20ExchangeOnlineManagement%20-RequiredVersion%202.0.6-Preview3%20-AllowPrerelease%3C%2FP%3E%3CP%3ELet%20us%20know%20what%20you%20think!%20Send%20your%20product%20improvement%20suggestions%20and%20feedback%20to%20exocmdletpreview(AT)service.microsoft.com.%20Remember%20this%20is%20a%20preview%20and%20we%20plan%20to%20continue%20adding%20more%20cmdlets%20to%20the%20list%20of%20those%20able%20to%20run%20without%20WinRM%20basic%20auth.%20As%20we%20make%20progress%2C%20we%20will%20make%20more%20announcements!%3C%2FP%3E%3CP%3EThe%20Exchange%20Team%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2922946%22%20slang%3D%22en-US%22%3E%3CP%3EWe%E2%80%99re%20excited%20to%20let%20you%20know%20that%20we%20are%20working%20on%20a%20new%20version%20of%20the%20Exchange%20Online%20PowerShell%20v2%20module%2C%20built%20to%20provide%20a%20more%20secure%20experience%20for%20Exchange%20Online%20management.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2922946%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministration%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAnnouncements%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHybrid%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2927405%22%20slang%3D%22en-US%22%3ERe%3A%20Exchange%20Online%20PowerShell%20v2%20Module%20Preview%20%E2%80%93%20Now%20More%20Secure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2927405%22%20slang%3D%22en-US%22%3E%3CP%3EFinally%2C%20a%20module%20that%20works%20properly%20on%20MacOS%20as%20well.%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3ENow%2C%20that%20it%20doesn't%20use%20basic%20auth%20anymore%2C%20the%20legacy%20commands%20are%20working%20as%20well%2C%20not%20only%20the%20Verb-EXO*%20cmdlets.%20So%20you%20can%20do%20Get-Mailbox%20as%20well%20as%20Get-EXOMailbox.%3C%2FP%3E%3CP%3EWe%20can%20now%20use%20PowerShell%20core%20on%20more%20OSes.%20(not%20that%20I%20don't%20like%20Windows%2C%20I%20do%2C%20a%20lot)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2928013%22%20slang%3D%22en-US%22%3ERe%3A%20Exchange%20Online%20PowerShell%20v2%20Module%20Preview%20%E2%80%93%20Now%20More%20Secure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2928013%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F55238%22%20target%3D%22_blank%22%3E%40Jamie%20BRANDWOOD%3C%2FA%3E%26nbsp%3BThe%20focus%20of%20this%20particular%20work%20is%20to%20move%20the%20existing%20cmdlets%20to%20not%20require%20WinRM%20basic%20auth...%20but%20this%20is%20not%20the%20same%20thing%20as%20making%20them%20into%20%22Get-EXO*%22%20cmdlets.%20It%20is%20not%20planned%20to%20move%20all%20of%20the%20Exchange%20cmdlets%20into%20full-REST%20%22Get-EXO*%22%20model%2C%20rather%20move%20them%20all%20to%20nor%20require%20WinRM%20basic%20auth.%3C%2FP%3E%3C%2FLINGO-BODY%3E

Version history
Last update:

‎Nov 03 2021 12:40 PM

Updated by:
Labels

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK