PowerShell Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is PowerShell?

A

PowerShell is an object-oriented programming language and interactive command line shell for Microsoft Windows. PowerShell was designed to automate system tasks, such as batch processing, and create systems management tools for commonly implemented processes. The PowerShell language is similar to Perl.

PowerShell (including Windows PowerShell and PowerShell Core) is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework.

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

Simple example if I was working with a Server Core and needed to get it onto the domain. First I would name it, give it an IP address, assign DNS, etc.

A
cmd prompt  type   powershell to change to that environment.
rename -computer Server01  rename
key  new-netipaddress  (with the following arguments)
-ipaddress 192.168.2.100               
-interfacealias "Ethernet"
-DefaultGateway 192.168.2.1
-AddressFamily IPv4
-PrefixLength 24
key Enter

Now lets set DNS

key set-DNSclientserveraddress

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