Register now or log in to join your professional community.
Windows power shell is basically used for managing and automating windows system activities by writing user defined scripts.
you can do basic administration and networking tasks and script the tasks for applications on multiple computers, without UI.
it allows you to set customised values/scripts
PowerShell in Windows Server2012
Windows PowerShell is a task automation and configuration management framework for windows server2012, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to COM and WMI, enabling administrators to perform administrative tasks on both local and remote Windows server2012.
Using Windows PowerShell commands in Windows Server2012 for basic administration and networking tasks can save a lot of time. You can script the tasks for application on multiple computers, and also save time by not having to navigate through sometimes complex user interface (UI) dialog boxes when you use PowerShell to configure individual computers.
Rename the computer
After you install Windows Server2012, the computer is assigned an automatically generated name. In most cases, you won't want to keep the random name, you'll want to assign a name for the computer that matches your organization's naming conventions. Instead of navigating through all of the Windows UI to rename and restart the computer, try opening Windows PowerShell and typing the following commands, making sure to replace "ComputerName" with the actual name that you want to use:
Rename-Computer [-NewName] <String> [-ComputerName <String> ] [-DomainCredential <PSCredential> ] [-Force] [-LocalCredential <PSCredential> ] [-PassThru] [-Restart] [-Confirm] [-WhatIf] [ <CommonParameters>]
PS C:\\>Rename-Computer -NewName Server044 -DomainCredential Domain01\\Admin01 -Restart
Configure a static IP address
Most servers are configured with a static IP address rather than having DHCP client enabled and receiving an IP address dynamically from a DHCP server. You can use the command below to configure the Internet Protocol version4 (IPv4) properties of a network connection with a static IP address. Before running this command, ensure that you replace the example parameter values with values that are appropriate for your network.
New-NetIPAddress –InterfaceIndex12 –IPAddress -192.0.2.2 –PrefixLength24 –DefaultGateway -192.0.2.1
Configure a network connection with a new DNS server address
If you add a DNS server to your network, you can use the following command to configure IPv4 properties of a statically configured network connection with the IP address of the new DNS server.
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses10.10.10.1
Join a computer to a domain
To join a computer to a domain, you can run the following command after replacing the domain name with one that's appropriate for your deployment:
net localgroup administrators /add <DomainName>\\<UserName>
When you're prompted to do so, type the user name and password for an account that has permission to join a computer to the domain.
powershell automates administration by saving lots of time.
it also helps in:
Rename the computer
configure static IP
join computer to domain
Windows PowerShell is a task-based command-line shell and scripting language designed especially for system administration. Built on the .NET Framework, Windows PowerShell helps IT professionals and power users control and automate the administration of the Windows operating system and applications that run on Windows
Microsoft’s scripting language and automation engine for system administration
Windows powershel is used for basic administration and management and also for basic network activities to save pelnty of time. poweshel scripting can save a lot of time for administrators to work on multiple systems in less time.
Simply It is Comand Prompt Screen , you canuse it to run writting commands ot script or even old DOS Commands
Can be used to run scripts using command line on Windows Server. Automation scripts and network commands without a GUI interface.
Window Power shell can be command-line based or it can include a graphical user interface (GUI). Windows PowerShell is a shell developed by Microsoft for purposes of task automation and configuration management .