PowerShell Flashcards

1
Q

Active Directory Module:

A

The Active Directory module for Windows PowerShell provides cmdlets to manage and automate Active Directory.

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

Get-ADUser

A

Retrieves one or more Active Directory

Code:

Get-ADUser -Identity “Username”

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

Set-ADUser

A

Modifies properties of an Active Directory

Code:

Set-ADUser -Identity “Username” -Title “New Title”


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

New-ADGroup:

A

Creates a new Active Directory

New-ADGroup -Name “GroupName” -GroupScope Global -Path “OU=Groups,DC=domain,DC=com”

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

Add-ADGroupMember:

A

Adds one or more members to an Active Directory

Code:

Add-ADGroupMember -Identity “GroupName” -Members “Username”

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

Networking Module:

A

The Networking module provides cmdlets to manage network settings on Windows.

Code:

Get-NetIPAddress -InterfaceAlias “Ethernet”

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

New-NetIPAddress

A

Configures a new IP address on a network interface

Code:

New-NetIPAddress -InterfaceAlias “Ethernet” -IPAddress “192.168.1.100” -PrefixLength 24 -DefaultGateway “192.168.1.1”

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

Set-DnsClientServerAddress:

A

Configures the DNS server addresses of a network interface

Code:

Set-DnsClientServerAddress -InterfaceAlias “Ethernet” -ServerAddresses “8.8.8.8”,”8.8.4.4”

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

Hyper-V Module:

A

The Hyper-V module allows you to manage Hyper-V virtual machines

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

New-VM

A

Creates a new virtual machine.

Code:

New-VM -Name “VMName” -MemoryStartupBytes 1GB -NewVHDPath “C:\VMs\VMName\disk.vhdx” -NewVHDSizeBytes 20GB -Generation 2

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

Start-VM

A

Starts a virtual machine.powershell

Code:

Start-VM -Name “VMName”

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

Stop-VM

A

Powers off a virtual machine

Code:


Stop-VM -VM “VMName”

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

Configuration Manager Module:

A

The Configuration Manager module for PowerShell is used to automate SCCM/MECM tasks.

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

Get-CMDevice

A

Retrieves devices managed by Configuration Manager

Code:

Get-CMDevice -Name “DeviceName”

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

Invoke-CMSoftwareUpdateScan

A

Initiates a software update scan on a client device

Code:

Invoke-CMSoftwareUpdateScan -CollectionName “DeviceCollection”

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