$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
Nerd in IT and provide you as much as IT solution. You may send requests to itweirdo@gmail.com. Thanks for support =)
Showing posts with label Credential. Show all posts
Showing posts with label Credential. Show all posts
Wednesday, February 19, 2014
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
Subscribe to:
Posts (Atom)

