Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [CmdletBinding()]
- Param(
- [Parameter(Position=0,
- Mandatory=$True,
- ValueFromPipeline=$True)]
- [string]$username,
- [Parameter(Position=1,
- Mandatory=$True,
- ValueFromPipeline=$True)]
- [string]$password
- )
- . "C:\powershell\include\automatedlogin-mso-import.ps1"
- #Adjust PS output for PHP
- $pshost = Get-Host
- $pswindow = $pshost.ui.rawui
- $newsize = $pswindow.buffersize
- $newsize.height = 3000
- $newsize.width = 400
- $pswindow.buffersize = $newsize
- Set-MsolUserPassword -UserPrincipalName $username -NewPassword $password -ForceChangePassword $false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement