Шрифт и расположение консоли cmd в windows 10 версии 2

#region – From private/common.ps1

    .DESCRIPTION
        Retrieves the installed fonts.

    .EXAMPLE
        Get-Font -Name ‘Arial*’

# Specifies the name of the font to get.

#region – From public/Install-Font.ps1
#Requires -Modules Utilities

.DESCRIPTION
    Installs a font in the system

.EXAMPLE
    Install-Font -Path C:\FontFiles\Arial.ttf

.EXAMPLE
    Install-Font -Path C:\FontFiles\Arial.ttf -Force

# File or folder path(s) to the font(s) to install.

#region – From public/Uninstall-Font.ps1
#Requires -Modules Utilities

.DESCRIPTION
    Uninstalls a font from the system.

.EXAMPLE
    Uninstall-Font -Name ‘Courier New’

# Scope of the font to uninstall.

In the past I’ve created a blog post about managing the default fonts for Outlook. Someone replied to this post asking if this is also possible for the new Outlook client. This led to some investigations and this blogpost.

The documentation currently states that it only applies to Outlook Web. This is not true. Some settings do work for the new Outlook client. For example the default font and font-size setting.

Change the default font and font-size

Шрифт и расположение консоли cmd в windows 10 версии 2
  1. Connect to ExchangeOnline via Powershell
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName <UPN>

2. Change the font and font-size

Set-MailboxMessageConfiguration -Identity username@domain.com -DefaultFontName Calibri -DefaultFontSize 11

Restart the new Outlook client and verify your changes.

Шрифт и расположение консоли cmd в windows 10 версии 2

Change the default font and size for all mailboxes

# Query all the mailboxes
$Mailboxes = Get-Mailbox -ResultSize Unlimited
# Loop through each mailbox
foreach ($mailbox in $mailboxes) { # Apply desired settings Set-MailboxMessageConfiguration -Identity $mailbox.Identity -DefaultFontName Calibri -DefaultFontSize 11
}


:/>  Есть ли эквивалент "which" в командной строке Windows?