CMDlets Flashcards

1
Q

Create eDiscovery mailbox

A

New-MailboxSearchResults –Discovery –UserPrincipalName SearchResults@CBTNuggets.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Sets OWA Mailbox policy to allow .pdf files

A

Set-OWAMailboxPolicy –Identity Default –AllowedFileTypes ‘.pdf’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Retrieve list of devices in organization using Exchange Active Sync

A

Set-OWAMailboxPolicy –Identity Default –AllowedFileTypes ‘.pdf’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Enable in-place archiving

A

Enable-Mailbox “User Name” – Archive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Check mailboxes enabled for archiving

A

Get-Mailbox –Archive –ResultSize Unlimited

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Disable in-place archive

A

Disable-Mailbox –Identity “User Name” –Archive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

(1) Retrieve GUID, (2) then connect disabled archive to mailbox user by replacing GUID with one retrieved in (1)

A

(1) Get-MailboxDatabase | Get-MailboxStatistics-Filter ‘DisconnectDate –ne $null’
(2) Connect-Mailbox Identity “8734c04e-981e-4ccf-a547-1c1ac7ebf3e2” –Archive –User “User Name”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Connect to your Exchange Online service

A

Connect-MSolService

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

(1)Create and (2)change a retention policy

A

(1) New-RetentionPolicy -RetentionPolicyTagLinks

(2) Set-MailBox “Mailbox Name” –RetentionPolicy “Retention Policy Name”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Change old retention policy to new one

A

$OldPolicy={Get-RetentionPolicy “Old-Retention-Policy”}.distinguishedName
Get-Mailbox -Filter {RetentionPolicy -eq $OldPolicy} -Resultsize Unlimited | Set-Mailbox -RetentionPolicy “New-Retention-Policy”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Test whether mailbox policy was applied

A

Get-Mailbox “Mailbox Name” | Select RetentionPolicy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Create additional discovery mailbox

A

New-MailBox SearchResults -Discovery –PrimarySmtpAddress Searchresults@cbtnuggets.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Display available discovery mailboxes

A

Get-Mailbox -Resultsize unlimited -Filter {RecipientTypeDetails -eq “DiscoveryMailbox”}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Create In-place hold

A

New-MailBoxSearch “Search Name” –SourceMailboxes Kengle@cbtnuggets.com –InPlaceHoldEnabled $true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Create new malware filter

A

New-MalwareFilterPolicy -Name “CBT Nuggets Defense System” -EnableInternalSenderAdminNotifications $true –InternalSenderAdminAddress admin@cbtnuggets346.onmicrosoft.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Configure existing malware filter

A

Set-MalwareFilterPolicy –Identity “CBT Nuggets Defense System”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Connect to your Exchange Online service

A

Connect-MSolService –Credentials $Credentials

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Configure additional proxy addresses

A

$users = Get-Mailbox foreach ($a in $users) {$a.emailaddresses.Add(“smtp:$($a.alias)@thenewdomainname”)}
$users | %{Set-Mailbox $.Identity -EmailAddresses $.EmailAddresses}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Configure additional addresses using .csv file

A

Import-CSV “C:\Users\Administrator\Desktop\AddEmailAddress.csv” | ForEach {Set-Mailbox
$.Mailbox -EmailAddresses @{add=$.NewEmailAddress}}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Create contacts using PowerShell with a .csv file

A

Import-Csv .\ExternalContacts.csv|%{New-MailContact -Name $.Name -DisplayName $.Name -
ExternalEmailAddress $.ExternalEmailAddress -FirstName $.FirstName -LastName $_.LastName}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Add more information to each existing contact using .csv file

A

(1) $Contacts = Import-CSV .\externalcontacts.csv
(2) $contacts | ForEach {Set-Contact $.Name -StreetAddress $.StreetAddress -City $.City -
StateorProvince $
.StateorProvince -PostalCode $.PostalCode -Phone $.Phone -MobilePhone
$.MobilePhone -Pager $.Pager -HomePhone $.HomePhone -Company $.Company -Title
$.Title -OtherTelephone $.OtherTelephone -Department $.Department -Fax $.Fax -Initials
$.Initials -Notes $.Notes -Office $.Office -Manager $.Manager}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Hide contacts using PowerShell

A

Set-MailContact HiddenFromAddressListsEnabled $true

Get-Contact -ResultSize unlimited -Filter {(RecipientTypeDetails -eq ‘MailContact’)} | Set-MailContact -HiddenFromAddressListsEnabled $true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Create and configure a mail user using PowerShell

A

New-MailUser -Name -WindowsLiveID -Password (ConvertTo-SecureString -String ‘’ -AsPlainText -Force)

Set-MailUser LindaAdams-ExternalEmailAddress LindaAdams@cbtnuggets.org

24
Q

Create and configure a shared mailbox using PowerShell

A

New-Mailbox -Name “CBT Nuggets Trainers” -Alias CBTNTrainers –Shared
Set-Mailbox CBTNTrainers -ProhibitSendReceiveQuota 5GB -ProhibitSendQuota 4.75GB -IssueWarningQuota 4.5GB

25
Q

Manage Mailbox permissions using PowerShell

A

Remove-MailboxPermission -Identity -User -AccessRights FullAccess
Add-MailboxPermission -Identity Kengle -User ‘Kurt Engle’ -AccessRight FullAccess -
InheritanceType All -Automapping $false

26
Q

Create and configure a room mailbox user using PowerShell

A

New-Mailbox -Name “Second Floor Back Patio” –Room

Set-CalendarProcessing -AutomateProcessing AutoAccept

27
Q

Create and configure an equipment mailbox using PowerShell

A

New-Mailbox -Name “Trainer Laptop – Tag BR549” –Equipment

Set-CalendarProcessing -AutomateProcessing AutoAccept

28
Q

Change Mailbox type

A

Set-Mailbox -Type Regular

Get-Mailbox -Identity | Format-List RecipientTypeDetails

29
Q

Create and view a mail-enable security group using PowerShell

A

New-DistributionGroup -Name “CBT Nuggets Trainers” -Alias CBTNTrainers -Type security
Get-DistributionGroup CBTNTrainers | FL Name,RecipientTypeDetails,PrimarySmtpAddress

30
Q

Create a mail-enable distribution group using PowerShell

A

New-DistributionGroup -Name “CBTN Managers” -Alias CBTNMngrs –MemberJoinRestriction Open

31
Q

Create and view a dynamic distribution group using PowerShell

A

New-DynamicDistributionGroup -IncludedRecipients MailboxUsers -Name “CBTN Marketing Dynamic Group” -Department Marketing
Get-DynamicDistributionGroup -Identity “Marketing” | Format-List

32
Q

Connect to your SharePoint Online service using PowerShell

A

Connect-SPOService -Url https://cbtnuggets346-admin.sharepoint.com –credential brianalderman@cbtnuggets346.onmicrosoft.com

33
Q

Retreive list of available site templates using PowerShell

A

Get-SPOWebTemplate

34
Q

Create new site collection using PowerShell

A

New-SPOSite –Url https://cbtnuggets346.sharepoint.com/teams/HR –Owner Engle@cbtnuggets346.onmicrosoft.com –Template “STS#0” -Title “HR Site”

35
Q

Retrieve information about site collection using PowerShell

A

Get-SPOSite or Get-SPOSite –Identity SiteCollectionUrl

36
Q

Configure site collection settings using PowerShell

A

Set-SPOSite –Identity https://cbtnuggets346.sharepoint.com/teams/HR –StorageQuota 750 -StorageQuotaWarningLevel 500

37
Q

Delete or restore a site collection using PowerShell

A

Remove-SPOSite -Identity https://cbtnuggets346.sharepoint.com/teams/HR -NoWait
Restore-SPODeletedSite -Identity https://cbtnuggets.sharepoint.com/teams/HR -NoWait

38
Q

Enable or Disable push notifications using PowerShell

A

Set-CsPushNotificationConfiguration EnableApplePushNotificationService or EnableMicrosoftPushNotificationService

39
Q

Retrieve information about Lync Online users using PowerShell

A

Get-CsOnlineUser

40
Q

Assign audio conference number to a user using PowerShell

A

Set-CSUserAcp -TollNumber, -TollFreeNumbers, -ParticipantPassCode

41
Q

Retrieve information about Lync Tenant using PowerShell

A

Get-CsTenant

42
Q

Enable or disable ability to record online conferences using PowerShell

A

Set-CsMeetingConfiguration –AllowConferenceRecording

43
Q

Retrieve list of blocked domains from blocked domains list using PowerShell

A

Get-CsTenantFederationConfiguration

44
Q

Enable or disable federation with public IM providers using PowerShell

A

Set-CsTenantFederationConfiguration –AllowPublicUsers

45
Q

Enable mailbox auditing for a specific user using PowerShell

A

Set-Mailbox user@domainname.com -AuditEnabled $true

46
Q

Enable mailbox auditing for all users using PowerShell

A

$UserMailboxes = Get-mailbox -Filter {(RecipientTypeDetails -eq ‘UserMailbox’)}
$UserMailboxes | ForEach {Set-Mailbox $_.Identity -AuditEnabled $true}

47
Q

View configuration settings for current administrator audit logging

A

Get-AdminAuditLogConfig

48
Q

Add comments to administrator audit log

A

Write-AdminAuditLog

49
Q

Search content of administrator audit log

A

Search-AdminAuditLog or New-AdminAuditLogSearch

50
Q

View accounts that bypass mailbox audit logging

A

Get-MailboxAuditBypassAssociation

51
Q

Specify accounts that bypass mailbox audit logging

A

Set-MailboxAuditBypassAssociation

52
Q

Retrieve data from a specific message tracking report

A

Get-MessageTrackingReport

53
Q

Find unique message tracking report using search criteria provided

A

Search-MessageTrackingReport

54
Q

View information about open logon sessions to specified mailbox

A

Get-LogonStatistics

55
Q

View information about the folders in a specified mailbox

A

Get-MailboxFolderStatistics

56
Q

View information about a specified mailbox

A

Get-MailboxStatistics

57
Q

View information about total number of recipients in organization

A

Get-RecipientStatisticsReport