Showing 6 Result(s)

Sending an email using PowerShell

PowerShell is proving to be a wonderful tool for Microsoft System Admins. The ability to send emails in a PowerShell script can be quite useful, you can use this simple little function to send an email from PowerShell. You could potentially use this function to send you an email when an automatic PowerShell task runs and …

How to set Office 365 password to never expire

First you need to make sure you have the Azure AD Module installed on the computer. If you do not have the the Azure AD Module installed you need to: Open PowerShell as administrator Run the command (get-item C:\Windows\System32\WindowsPowerShell\v1.0\Modules\MSOnline\Microsoft.Online.Administration.Automation.PSModule.dll).VersionInfo.FileVersion Then you need to run the following commands in powershell: $msolcred = get-credential connect-msolservice -credential $msolcred …

How to connect to Office 365 Exchange using Powershell

***Please note this article is out of date and no longer current** I use these commands to connect to Exchange Online in Office365. To do this you need to open powershell and run these command: $LiveCred = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange-ConnectionUri https://ps.outlook.com/powershell -Credential $LiveCred -Authentication Basic -AllowRedirection Import-PSSession $Session After the first line it …