-
Operating system: Windows 7, 8, or 8.1 & Windows Server 2008 R2 or 2012
-
Microsoft .NET Framework 3.51 or higher
-
Office 365 PowerShell cmdlets:
Once all of the above listed components are installed, you are ready to connect to Office 365 or Exchange Online. Depending on your preference, open up PowerShell (run as administrator).
Â
Set-ExecutionPolicy Unrestricted  - Acepta el Warning
Â
First, import all the relevant cmdlets by running the following command.
Â
Import-Module MSOnline
Â
Second, run the code below and enter in the Office 365 administrative logon credentials.
Â
$365Logon = get-credential
Â
Now configure the remote PowerShell session variables. Note: These next two commands will make a connection to the Exchange Online management shell.
Â
$365PSSession = New-PSSession –ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $365Logon -Authentication Basic –AllowRedirection    -todo esto es solo un comando
Â
Run the code below to connect.
Â
Import-PSSession $365PSSession –AllowClobber
Â
Last, connect to Office 365 via this command line and you are now ready to run PowerShell commands.
Connect-MsolService –Credential $365Logon
Â
Finalmente, para poner todos los usuarios en Castellano/Español :
Â
Get-MsolUser | Set-MsolUser –PreferredLanguage “es-ESâ€