Commands PowerShell Flashcards

1
Q

Get-MsolRole

A

Will display all possible that are available.

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

Get-MsolRoleMember

A

display what members are part of a specific role.

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

Add-MsolRoleMember

A

Add users to a roll

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

Remove-MsolRoleMember

A

Removes user from a roll

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

Get-MsolUser

A

○ Will show you a max of 500 users anymore you would have to run “-all” command

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

Export-Csv

A

○ Can provide a list of all user and then export to a Csv file

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

Set-MSolUserPassword

A

○ Make any major password updates, eg if you have had a breach and want everybody to change their password can do so by using this command.
○ Can set multiple user passwordds at once

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

Import-Csv

A

Import modification into O365

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

Get-MSOLUser -UserPrincipalName | Select PasswordNeverExpires

A

This checks to see whether password never expires is enable.
This is for an individual user

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

Get-MSOLUser |UserPrincipalName, PasswordNeverExpires

A

This checks to see whether password never expires is enable.
This is for everyone.

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

Set-MsolUser -UserPrincipalName -PasswordNeverExpires $true

A

Sets Password to never expire. Pay attention to the”true or false” at the end.
False removes
True adds
§ Helpful for system account normal users should not really have this enabled
§ Individual account

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

Get-MSOLUser | Set MsolUser -PasswordNeverExpires $false

A

Sets Password to never expire. Pay attention to the”true or false” at the end.
This is for everyone

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

Get- MsolUser | Set-Msoluser - StrongPasswordRequired $false

A

○ This is command saying that it is isn’t requiring a strong password.

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

Set-MsolPasswordPolicy -ValidityPeriod 730 -NotificationDays 30

A

○ Used to configure the password expiration policy. The validity period can be a number between 14 and 730 and specifies the number of days the password remains valid.
○ NotificationDays argument speciedies the grace period between the time the user is first notified that the password must be changed and the password expiration date. The vaild range for this argument is 1 to 30 days.

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

Get MsolAccountSku

A

This will present a list of license types and the exact wording you will need to apply licenses to users

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

§ Set-MsolUserLicense -UserPrincipalName -AddLicenses

A

Add licenses to bulk imported users

17
Q

§ Get-MSolUser -UnLicensedUsersOnly | Set-MsolUserLicense-AddLicenses

A

Add licenses to bulk imported users

18
Q

Get-MsolUser -ReturnDeletedusers

A

Returns all soft deleted users.

19
Q

Get-MsolUser -ReturnDeletedUsers | Remove-MsolUser -RemoveFromRecycleBin -Force

A

Hard deletes a user.

20
Q

Add-AadrmRoleBasedAdministrator

A

cmdlet cam be used to assign either global administration permission over Azure Rights Management (RMS) or permission to install and RMS connector. A user or group granted global admin permission can run any Azure RMS cmdlet and configure RMS through Azure management protal or office 365 admin.

21
Q

Add-AadrmSuperUser

A

cmdlet is used to assign super user permission to a user. A super user can decrypt protected files and remove RMS protection. You must enable the super user feature before you can add a super user account. Can be enable with the following cmdlet Enable-AadrmSuperUserFeature.

22
Q

Enable-AadrmSuperUserFeature.

A

Enables SuperUserFeature which need to be done before you add a super user account.