Showing posts with label Powershell. Show all posts
Showing posts with label Powershell. Show all posts

Monday, January 16, 2012

bench3

Advantage Of Command Line Interface

Command Line Interface is a mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks. This text-only interface contrasts with the use of a mouse pointer with a graphical user interface (GUI) to click on options, or menus on a text user interface (TUI) to select options.

This method of instructing a computer to perform a given task is referred to as "entering" a command: the system waits for the user to conclude the submitting of the text command by pressing the "Enter" key (a descendant of the "carriage return" key of a typewriter keyboard).

A command-line interpreter then receives, parses, and executes the requested user command. The command-line interpreter may be run in a text terminal or in a terminal emulator window as a remote shell client such as PuTTY. Upon completion, the command usually returns output to the user in the form of text lines on the CLI. This output may be an answer if the command was a question, or otherwise a summary of the operation.

Advantage Of Command Line Interface:

Have you ever noticed in the movies when the “super hacker”—you know, the guy who can break into the ultra-secure military computer in under 30 seconds—sits down at the computer, he never touches a mouse? It’s because movie makers realize that we, as human beings, instinctively know the only way to really get anything done on a computer is by typing on a keyboard.

Advantage Of Command Line Interface2

Most computer users today are familiar with only the graphical user interface (GUI) and have been taught by vendors and pundits that the command line interface (CLI) is a terrifying thing of the past. This is unfortunate, because a good command line interface is a marvelously expressive way of communicating with a computer in much the same way the written word is for human beings. It’s been said that “graphical user interfaces make easy tasks easy, while command line interfaces make difficult tasks possible,” and this is still very true today.

Advantage Of Command Line Interface

Since Linux is modeled after the Unix family of operating systems, it shares the same rich heritage of command line tools as Unix. Unix came into prominence during the early 1980s (although it was first developed a decade earlier), before the widespread adoption of the graphical user interface and, as a result, developed an extensive command line interface instead. In fact, one of the strongest reasons early adopters of Linux chose it over, say, Windows NT was the powerful command line interface, which made the “difficult tasks possible.”

Currently Microsoft released Windows PowerShell, which combined features of traditional Unix shells with their object-oriented .NET Framework.

Advantage Of Command Line Interface

Aldo the latest versions of the Macintosh operating system are based on a variation of Unix called Darwin. On these computers, users can access a Unix-like command-line interface called Terminal found in the Applications Utilities folder.

Read More

Friday, October 7, 2011

bench3

What Is PowerShell And Why Was It Created

Defining what a shell is can be a bit tricky, especially at Microsoft, because pretty much everything at Microsoft has something called a shell. Windows Explorer is a shell. Visual Studio has a component called the shell. Heck, even the Xbox has something they call a shell.

Historically, the term shell describes the piece of software that sits over an operating system’s core functionality. This core functionality is known as the operating system kernel (shell…kernel…get it?).

A shell is the piece of software that lets you access the functionality provided by the operating system. Windows Explorer is properly called a shell because it lets you access the functionality of a Windows system. For our purposes, though, we’re more interested in the traditional text-based environment where the user types a command and receives a response. In other words, a shell is a command-line interpreter. The two terms can be used for the most part interchangeably.

What is PowerShell, and why was it created? PowerShell is the new command-line / scripting environment from Microsoft. The overall goal for this project was to provide the best shell scripting environment possible for Microsoft Windows. This statement has two parts, and they’re equally important, because the goal wasn’t just to produce a good generic shell environment but rather to produce one designed specifically for the Windows environment.

Although drawing heavily from existing command-line shell and scripting languages, the PowerShell language and runtime were designed from scratch to be an optimal environment for the modern Windows operating system.

Historically, the Windows command line has been weak. This is mainly the result of Microsoft’s early focus on computing for the average user, who is considered neither particularly technical nor particularly interested in computers. Most of the development effort for Windows was put into improving the graphical environment for the nontechnical user, rather than creating an environment for the computer professional.

What Is PowerShell And Was It Created

Although this was certainly an enormously successful commercial strategy for Microsoft, it has left some segments of the community underserved.

By environmental forces, I mean the various business pressures and practical requirements that needed to be satisfied.

Read More

Friday, December 31, 2010

bench3

Enable System Protection From Command Line

Swtiched my PC on, and found it wouldn't boot, crashing during bootup, with a brief flash of a blue-screen message. Is there a way to enable the system protection of the drive C (where the OS is instalated), from the command prompt option, that is available under the system recovery.?
My real problem is that when I start the system restore option, just after the selection of the restore selection point, when Its the time to confirm the disk to restore, it says "You must enable system restore protection on this drive"!!! and I cannot do it!!
Now, how do we activate the system protection. And how can we do it from a command line? Just its not even possible to boot in safe mode. As booting in safemode also crashes on startup.

Solution:
Put the following commands into Powershell file and add Powershell task at the end, if you use Microsoft Deployment Toolkit (MDT).

enable-computerrestore -drive "c:\"
vssadmin resize shadowstorage /on=c: /for=c: /maxsize=5%
checkpoint-computer -description "Done"

Note:
PS is PowerShell.
MDT is Microsoft Deployment Toolkit 2010.
Read More