Windows PowerShell - Automate system administration tasks

TipsMake.com - PowerShell is the new Windows command line interface, providing a very effective interactive environment with the operating system. PowerShell is great for automating system administration tasks. PowerShell can be run on Windows XP SP2, Windows Server 2003 and Windows Vista, Windows Server 2008.

1. Install

With Windows XP SP2, Vista and Windows Server 2003, the installation steps are as follows:

1. Download the installation package at support.microsoft.com/kb/926139. With Vista, click on this link.

2. Run the downloaded file to install Windows PowerShell on the system.

Note : PowerShell needs Microsoft .NET Framework 2.0. Therefore, you need to install this framework.

With Windows Server 2008, in Server Manager , click the Add Features link. Next, click Windows PowerShell and follow the instructions screen to complete the installation of this function on Windows Server 2008.

Windows PowerShell - Automate system administration tasks Picture 1

2. Start Windows PowerShell

To start Windows PowerShell, go to Start menu> Programs > Windows PowerShell 1.0 -> Windows PowerShell .

Windows PowerShell - Automate system administration tasks Picture 2

In this screen, you can execute common MS-DOS commands. In addition, cmdlets help you perform administrative tasks efficiently and quickly. To see the script on PowerShell, use the help command. To see instructions for each command, use the Get-Help command. For example, the following command lists instructions for using Remove-Item cmdlet:

Get-Help Remove-Item

3. Create scripts

This section shows you how to create a simple script: output a screen with a notification. To get started, you use a simple editor and enter the commands for the script as follows:

$ message = "Hello Hue Security Club"
write-host $ message

After importing, save the file ( hello.ps1 ). Next, in the PowerShell screen, enter: D: scripthello.ps1

Soon, the content of the message will appear.

4.7 ★ | 3 Vote

May be interested

  • Automatically encrypt EFS in Windows XP, Vista or Windows 7Photo of Automatically encrypt EFS in Windows XP, Vista or Windows 7
    in the following article, we will show you how to create scripts to automate the efs standard data encryption process of user accounts every time they log in. the purpose of encryption in this way is to protect confidential documents, information of individuals, organizations or companies, then back them up.
  • Fix the missing iertutil.dll file in Windows XPPhoto of Fix the missing iertutil.dll file in Windows XP
    for windows xp users, it is not uncommon to see a problem or problem while using it. in the following article, we will introduce and guide you how to fix missing system errors or find iertutil.dll library on windows xp or vista ...
  • 15 things a PC user should knowPhoto of 15 things a PC user should know
    whether a technology veteran or a beginner, here are 15 important things you need to know when using a pc.
  • Bring the best of Windows 7 to XP & VistaPhoto of Bring the best of Windows 7 to XP & Vista
    people are eagerly waiting for windows 7 because microsoft promises this new os version will be fast, beautiful and has more attractive features than ever ...
  • Dual boot Windows XP and Windows 7Photo of Dual boot Windows XP and Windows 7
    although windows 7 integrates windows xp mode, in some test versions, many users are not really happy with this tool.
  • Install and use Recovery Console in Win XPPhoto of Install and use Recovery Console in Win XP
    windows recovery console is one of the tools to help restore the system when it doesn't boot as expected or can't boot. in this article we will take a look at some recovery console components including command prompt, command action, rule, recovery console removal method.