Monday, May 3, 2010

MICROSOFT SHELL - Command Prompt future

In certain cases, Windows is still lagging compared to Linux. The most obvious example is the lack of features compared to Windows scripting languages scripts Linux BASH, SH, or KSH.Windows batch file is too simple for an administrator. Scripting Host itself is considered too risky. With the Microsoft Shell (MSH), the developers in Redmond hopes will be significant change. Currently MSH (formerly known as Monad) has been circulating in Beta version.

It offered new MSH
At the command prompt of Windows that has been used, there are two types of orders. First is the command that is integrated in the file 'cmd.exe', like the classic DOS command 'dir'. The second kind is the order of the programs that run through the command prompt, including orders from the XP Support Tools (see box page 154).
Image
Powerful functions: command 'get-process' in the Microsoft Shell can display all the ongoing processes in detail, including the process ID and CPU load

Important commandments in the MSH-called 'cmdlets'. Therefore, MSH memilki language separate program, a collection of orders can be extended. List MSH integrated command can be displayed with the following command.

Get-command

Cmdlet always consists of a verb and a noun which coupled with a connecting line (dash).Some commands have aliases so that users do not need to write the complete command.Instead of 'get-command' for example, can be typed following commands.

GCM


You can even create a aliasnya own. For example for the command 'get-childitem', you specify a DOS command 'dir'. For that type in the window like the following MSH

Set-alias • dir • getchildItem


Furthermore, the command 'dir' will soon be functioning as desired. The interesting thing is the possibility of using other applications with MSH. For example with the help. NET-Objects, you display a list of processes that take place in an Excel table. This clearly exceeds the capabilities of Unix or Linux shell. Unfortunately this feature has not been functioning perfectly in Beta version. Cmdlet 'get-process' is showing progress, however Excel is not capable of handling the list completely, whereas other applications such as Word actually works well.
Another novelty is the vertical line to combine two commands:

Get-Process • | • out-file


Of course, some commands can be combined in a script. But unlike a batch file that runs only a text-oriented commands, Msh script can handle variables, arrays and operators. This means you can write a program which can 'do more' from a batch file. Opening up potential security holes security experts are worried about the threat of viruses will be a new script. A group in Austria has even expressed a Proof-of-Concept which proves the vulnerability of MSH.

Microsoft plans to avert the potential hazard by providing a security feature in Windows Vista.Apaila not successful, MSH will experience the same fate as Windows Script Host is disabled by default (standard) kareno high security risk.
Info: http://beta.microsoft.com

0 komentar:

Post a Comment

 
Trends K N A Copyright © 2009
Fresh Girly Blogger Template Designed by Herro | Powered By Blogger