How to run Power shell commands Remotely?

It's tedious to log on to server(s) just to check something simple or even complicated. You can create a remote session to the server instead of manually logging on to it and run the commands / programs like if you were physically logged on to it. Open Power shell as admin.Type in Enter-PSSession -Computername fqdn... Continue Reading →

Office 365 Autodiscover

Outlook 2016 and on wards, outlook client will connect you directly to O365 if there is no auto discover set up. It's called direct connect. It's a good feature if the mailbox is on O365 but there are cases where companies are using outlook 2016 / outlook 365 clients but their mailboxes are not O365.... Continue Reading →

Power shell Truncated Output

Type in FormatEnumerationLimit=-1 Run the command again now and output should display full results. If that doesn't work, please try the following, add switch -wrap -autosize after fl or ft.

Connecting to Exchange Online Power shell

Open Power shell as an admin. $Username = "admin@xxx.onmicrosoft.com" $Password = ConvertTo-SecureString ‘12345678’ -AsPlainText -Force $LiveCred = New-Object System.Management.Automation.PSCredential $Username, $Password $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection OR (If the above doesn't work) $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection Import-PSSession $Session Connect-MsolService –Credential... Continue Reading →

Create a website or blog at WordPress.com

Up ↑