Skip to content

Commit 97570b1

Browse files
authored
Merge pull request MicrosoftDocs#10563 from MicrosoftDocs/chrisda
Removed insecure example
2 parents 96f017c + 025ced4 commit 97570b1

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

exchange/docs-conceptual/connect-to-exchange-online-powershell.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -174,17 +174,6 @@ The connection examples in the following sections use modern authentication, and
174174
175175
For complete instructions, see [App-only authentication for unattended scripts in Exchange Online PowerShell and Security & Compliance PowerShell](app-only-auth-powershell-v2.md).
176176
177-
> [!IMPORTANT]
178-
> The following example also connects without a login prompt, but the credentials are stored locally, so this method is not secure. Consider using this method only for brief testing purposes.
179-
180-
```powershell
181-
$secpasswd = ConvertTo-SecureString -String '<YourPasswordHere>' -AsPlainText -Force
182-
183-
$o365cred = New-Object System.Management.Automation.PSCredential ("[email protected]", $secpasswd)
184-
185-
Connect-ExchangeOnline -Credential $o365cred
186-
```
187-
188177
### Connect to Exchange Online PowerShell in customer organizations
189178
190179
For more information about partners and customer organizations, see the following topics:

exchange/docs-conceptual/connect-to-scc-powershell.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,17 +128,6 @@ For detailed syntax and parameter information, see [Connect-IPPSSession](/powers
128128
129129
For complete instructions, see [App-only authentication for unattended scripts in Exchange Online PowerShell and Security & Compliance PowerShell](app-only-auth-powershell-v2.md).
130130
131-
> [!IMPORTANT]
132-
> The following example also connects without a login prompt, but the credentials are stored locally, so this method is not secure. Consider using this method only for brief testing purposes.
133-
134-
```powershell
135-
$secpasswd = ConvertTo-SecureString -String '<YourPasswordHere>' -AsPlainText -Force
136-
137-
$o365cred = New-Object System.Management.Automation.PSCredential ("[email protected]", $secpasswd)
138-
139-
Connect-IPPSSession -Credential $o365cred
140-
```
141-
142131
### Connect to Security & Compliance PowerShell in customer organizations
143132
144133
The procedures in this section require version 3.0.0 or later of the module.

0 commit comments

Comments
 (0)