Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is use of Power Shell in windows server 2012?

user-image
Question added by Ali Siddiqui , Consultant Business Systems , KAUST, King Abdullah University of Science and Technology.
Date Posted: 2014/06/10
Shahin Syed
by Shahin Syed , IT Administrator, Training Officer , Al-Hamad Enterprises

Windows power shell is basically used for managing and automating windows system activities by writing user defined scripts.

Mohamed Ibrahim Abd El-Fatah
by Mohamed Ibrahim Abd El-Fatah , Infrastructure Head , TMG

you can do basic administration and networking tasks and script the tasks for applications on multiple computers, without UI.

Muhammad Siddique
by Muhammad Siddique , Monitor

it allows you to set customised values/scripts

Robin George
by Robin George , Senior Infrastructure Support Engineer , Cordiant Technologies

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. 

 

anshuman mund mund
by anshuman mund mund , L2 TECHNICAL SUPPORT ENGINEER , MERIDIAN SOLUTIONS PVT LTD

powershell automates administration by saving lots of time.

it also helps in:

Rename the computer

configure static IP

join computer to domain

Mohamed Muneeb
by Mohamed Muneeb , System Adminstrator , POSibolt Solutions

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

Millangodagedara Amila Gayan
by Millangodagedara Amila Gayan , System & Network Engineer | IT Executive , Saraya Corniche Hotel

Microsoft’s scripting language and automation engine for system administration

Muhammad Umair
by Muhammad Umair , IT Network Engineer , Al HAMRA Trading Est

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.

Ahmed Quradi
by Ahmed Quradi , IT Manager, and Systems Administrator , Arabian Group Of Companies

Simply It is Comand Prompt Screen , you canuse it to run writting commands ot script or even old DOS Commands

Qasim Hanif
by Qasim Hanif , Technical Support Analyst , Capita Software Services

Can be used to run scripts using command line on Windows Server. Automation scripts and network commands without a GUI interface.

Mohammad Yasin
by Mohammad Yasin , Desktop Support Engg , Progressive Info vision Pvt. Ltd

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 .

More Questions Like This