o365:pshellconnect
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
o365:pshellconnect [2014/03/28 11:49] – gfsadministrator | o365:pshellconnect [2014/04/14 09:34] (current) – gfsadministrator | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | [[:o365|<-- torna a Office 365]] | + | > |
+ | ><[[:o365|Torna alla pagina principale della sezione]]> | ||
====== Connessione alla PowerShell ====== | ====== Connessione alla PowerShell ====== | ||
+ | Questo codice farà comparire il popup di richiesta password per l' | ||
<file ps PShell-Start.ps1> | <file ps PShell-Start.ps1> | ||
$UserCredential = Get-Credential -Credential utente@dominio.tld | $UserCredential = Get-Credential -Credential utente@dominio.tld | ||
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:// | $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:// | ||
+ | Import-PSSession $Session | ||
+ | </ | ||
+ | |||
+ | ====== Connessione alla PowerShell con un file password ====== | ||
+ | Questo codice farà si autenticherà alla console Exchange senza l' | ||
+ | |||
+ | <file ps PShell-Start.ps1> | ||
+ | $User = " | ||
+ | $PWord = Get-Content C: | ||
+ | $Credential = New-Object –TypeName System.Management.Automation.PSCredential –ArgumentList $User, $PWord | ||
+ | $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:// | ||
Import-PSSession $Session | Import-PSSession $Session | ||
</ | </ |
o365/pshellconnect.1396003772.txt.gz · Last modified: 2014/03/28 11:49 by gfsadministrator