PowerShell Flashcards
What is PowerShell?
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.
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.
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