Showing posts with label Credential. Show all posts
Showing posts with label Credential. Show all posts

Wednesday, February 19, 2014

MS Office365: Bulk Change Password

$LiveCred = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

Import-PSSession $Session

Connect-msolservice

Get-msoluser | set-msoluserpassword -newpassword Pass1234 -forcechangepassword 0

change all password to  Pass1234, does not require to change at next logon


$LiveCred = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

Import-PSSession $Session

Connect-msolservice

Import-Csv c:\screen\password.csv|%{Set-MsolUserPassword -userPrincipalName $_.UserPrincipalName -NewPassword Pass1234 -ForceChangePassword $false}

CSV file one column 1 field

change all password to Pass1234 from a list of specify user, does not require to change at next logon



Monday, January 20, 2014

MS Office365:Set mailbox size limits for a single user

$UserCredential = Get-Credential
 
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
 
Import-PSSession $Session
 
Set-Mailbox <userid> -ProhibitSendQuota 4.8GB -ProhibitSendReceiveQuota 5GB -IssueWarningQuota 4.7GB

Remove-PSSession $Session

Related Posts Plugin for WordPress, Blogger...