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
Manage Mailbox permissions using PowerShell
Remove-MailboxPermission -Identity -User -AccessRights FullAccess Add-MailboxPermission -Identity Kengle -User 'Kurt Engle' -AccessRight FullAccess - InheritanceType All -Automapping $false
26
Create and configure a room mailbox user using PowerShell
New-Mailbox -Name "Second Floor Back Patio" –Room | Set-CalendarProcessing -AutomateProcessing AutoAccept
27
#Create and configure an equipment mailbox using PowerShell
New-Mailbox -Name "Trainer Laptop – Tag BR549" –Equipment | Set-CalendarProcessing -AutomateProcessing AutoAccept
28
#Change Mailbox type
Set-Mailbox -Type Regular | Get-Mailbox -Identity | Format-List RecipientTypeDetails
29
Create and view a mail-enable security group using PowerShell
New-DistributionGroup -Name "CBT Nuggets Trainers" -Alias CBTNTrainers -Type security Get-DistributionGroup CBTNTrainers | FL Name,RecipientTypeDetails,PrimarySmtpAddress
30
Create a mail-enable distribution group using PowerShell
New-DistributionGroup -Name "CBTN Managers" -Alias CBTNMngrs –MemberJoinRestriction Open
31
Create and view a dynamic distribution group using PowerShell
New-DynamicDistributionGroup -IncludedRecipients MailboxUsers -Name "CBTN Marketing Dynamic Group" -Department Marketing Get-DynamicDistributionGroup -Identity "Marketing" | Format-List
32
Connect to your SharePoint Online service using PowerShell
Connect-SPOService -Url https://cbtnuggets346-admin.sharepoint.com –credential brianalderman@cbtnuggets346.onmicrosoft.com
33
Retreive list of available site templates using PowerShell
Get-SPOWebTemplate
34
Create new site collection using PowerShell
New-SPOSite –Url https://cbtnuggets346.sharepoint.com/teams/HR –Owner Engle@cbtnuggets346.onmicrosoft.com –Template “STS#0” -Title “HR Site”
35
Retrieve information about site collection using PowerShell
Get-SPOSite or Get-SPOSite –Identity SiteCollectionUrl
36
#Configure site collection settings using PowerShell
Set-SPOSite –Identity https://cbtnuggets346.sharepoint.com/teams/HR –StorageQuota 750 -StorageQuotaWarningLevel 500
37
Delete or restore a site collection using PowerShell
Remove-SPOSite -Identity https://cbtnuggets346.sharepoint.com/teams/HR -NoWait Restore-SPODeletedSite -Identity https://cbtnuggets.sharepoint.com/teams/HR -NoWait
38
Enable or Disable push notifications using PowerShell
Set-CsPushNotificationConfiguration EnableApplePushNotificationService or EnableMicrosoftPushNotificationService
39
Retrieve information about Lync Online users using PowerShell
Get-CsOnlineUser
40
Assign audio conference number to a user using PowerShell
Set-CSUserAcp -TollNumber, -TollFreeNumbers, -ParticipantPassCode
41
Retrieve information about Lync Tenant using PowerShell
Get-CsTenant
42
Enable or disable ability to record online conferences using PowerShell
Set-CsMeetingConfiguration –AllowConferenceRecording
43
Retrieve list of blocked domains from blocked domains list using PowerShell
Get-CsTenantFederationConfiguration
44
Enable or disable federation with public IM providers using PowerShell
Set-CsTenantFederationConfiguration –AllowPublicUsers
45
Enable mailbox auditing for a specific user using PowerShell
Set-Mailbox user@domainname.com -AuditEnabled $true
46
Enable mailbox auditing for all users using PowerShell
$UserMailboxes = Get-mailbox -Filter {(RecipientTypeDetails -eq 'UserMailbox')} $UserMailboxes | ForEach {Set-Mailbox $_.Identity -AuditEnabled $true}
47
View configuration settings for current administrator audit logging
Get-AdminAuditLogConfig
48
Add comments to administrator audit log
Write-AdminAuditLog
49
Search content of administrator audit log
Search-AdminAuditLog or New-AdminAuditLogSearch
50
View accounts that bypass mailbox audit logging
Get-MailboxAuditBypassAssociation
51
Specify accounts that bypass mailbox audit logging
Set-MailboxAuditBypassAssociation
52
Retrieve data from a specific message tracking report
Get-MessageTrackingReport
53
Find unique message tracking report using search criteria provided
Search-MessageTrackingReport
54
View information about open logon sessions to specified mailbox
Get-LogonStatistics
55
View information about the folders in a specified mailbox
Get-MailboxFolderStatistics
56
View information about a specified mailbox
Get-MailboxStatistics
57
View information about total number of recipients in organization
Get-RecipientStatisticsReport