![]() ![]() ![]() Unlock-ADAccount -identity $user.samaccountname Set-ADAccountPassword -identity $user.samaccountname -Reset -NewPassword (ConvertTo-SecureString -AsPlainText $PW -Force) $Phone = $(0, = Get-ADUser -Filter -Properties MobilePhone # load the property set to allow us to view the body $items = $inbox.FindItems($SearchForUnRead,10) #return only 10 unread mail items $SearchForUnRead = New-object .SearchFilter IsEqualTo(::IsRead, $false) $PropertySet = new-object .PropertySet(::FirstClassProperties) $email.Credentials = New-Object Net.NetworkCredential($Username, $Password) $email = New-Object .ExchangeService(::$ExchangeVersion) $a = Get-Random -minimum 0 -maximum $aChars.getupperbound(0) ![]() $intUpperLimit = Get-Random -minimum 8 -maximum 10 ::LoadFile("C:\Program Files\Microsoft\Exchange\Web Services\2.0\") #User who shold recieve email notifications that a password was reset or an invalid request was sent.
0 Comments
Leave a Reply. |