Social Icons

Sunday, December 10, 2017

Introduction to Windows Power Shell


1 - Windows Power Shell what is it?

PowerShell is a scripting language developed by Microsoft that is based on object-oriented programming. The PowerShell software, which has the powershell.exe executable file, is the shell interpreter for the command line interface of a larger set called Windows PowerShell.

PowerShell commands consist of a verb or prefix and a name separated by a hyphen. They can be followed by parameters. They are called commandlets or command applets. In the command line interface they are abbreviated to cmdlets.

The Windows PowerShell software suite, not only offers a series of administrative commands, and system management, as could be certain shell including its ancestor command.com with its batch files, but also a powerful language interpreter object-oriented script.


The use of structured instructions like sentences makes it possible to memorize more simply a large number of commands. This facility is limited, however, because it applies only to people who have a minimum of verbs and words in English.
Windows PowerShell, formerly Microsoft Command Shell (MSH), codename Monad, is a software suite developed by Microsoft that includes a command line interface, the PowerShell scripting language, and a development kit. It is included in Windows 7 and Windows 10 (including consumer versions) and relies on the Microsoft .NET Framework.

Originally, it was expected that Windows PowerShell would be included in Windows Vista, but in the end the two programs were disjointed. Microsoft released a beta release on September 11, 2005, a release candidate 1 on April 25, 2006, and a release candidate 2 on September 26, 2006. The final release was released on November 14, 2006. Windows PowerShell is also included in Microsoft Exchange Server 2007 , released in the fourth quarter of 2006, as well as most Microsoft products released since.

Windows PowerShell is compatible with all versions of Windows that support .NET version 2.0.

As of March 24, 2009, Windows PowerShell 1.0 for Windows XP and Vista is distributed as an optional software update by the Microsoft Windows Update Service. It is integrated natively in Windows 7 in version 2.01. This release provides an integrated scripting console called Windows PowerShell ISE (Integrated Scripting Environment) that provides an alternative solution to the PowerGUI Script Editor developed by Quest Software. Like its Windows PowerShell ISE counterpart, it features a graphical environment that allows scripting with syntax highlighting, line number display, integrated debugger, and online help.

Since Windows 8, PowerShell has a more pronounced place within the operating system with a shortcut in all windows in File Explorer, in the File menu.


2 - Requirements

It requires the previous installation of the .NET framework version 2.0 for its operation. It was presented together with the Windows Vista Operating System and is also included in Windows 7, Windows 8 and Windows 10. However, it is not installed by default in these systems. Windows 2008 Server R1 contains Powershell installed.

3 -Functions

Powershell not only allows you to interact with the operating system, but also with Microsoft programs such as SQL Server, Exchange or IIS. The main utility of Powershell is to allow to automate administrative tasks to the user.

The console language includes declaration of variables, special predefined variables, mathematical operators, including equalities and numerical inequalities, vector management, comparison among these, allocation operators, hashtables, boolean values, cycles and breaking them , expansion operators for simplifying complex executions (creation of vectors by means of procedure calls, dynamic creation of vectors, etc.); comments, binary comparison operators, escape characters, execution order, "foreach" type cycles, creation of procedures and functions, creation of filters, complex conditional structures (if / then / else / elseif / switch), invocation operator dynamics of the content of variables ($ p = "MyProcess" -> & $ p executes MyProcess), called methods of type "$ p.ToUpper ()", access to properties of object instances, redirection of normal console output to archives, return of values, handling of character strings by means of operators, handling of exceptions and explicit conversion of types.

One of the main functions of Powershell is to try to match the famous UNIX Perl language. Which is considered versatile, powerful and easily to interact with the operating system. Exchange server 2007 uses Powershell internally. The tendency is that all applications have their visual section and an option to see the code generated in Powershell.

Characteristics

The distinctive feature of PowerShell is that it is an object-oriented command interpreter. The input and output at each stage of the process (cmdlet, "comándulo") is a set of object instances, unlike what happens with traditional command interpreters, which only return and receive text.

Alias ​​of commands

In Powershell you can create aliases to the Unix style, that is, rename or name the commands in different ways.

For example to show directories dir, ls, gci is used. The programmer can nick the command as desired. This makes it easier to work with the programming environment.

Using a single statement, Powershell can easily perform the following actions:
  • Monitor counters
  • Shut down or stop services
  • Modify system records

4 - Implication of the prefix in the sentence

The prefix of the command is called verb4 although it is not always one. It is called this because it determines the action to be performed on the entities designated in the sentence.

List of verbs

  • Add allows you to add data or information about the name that follows it;
  • Get provides data or information about the name that follows it;
  • Clear resets a display or variable;
  • Import and Export allows you to import / export batch files or aliases;
  • New allows you to create new objects or variable;
  • Set allows you to define data or information about the name that follows it;
  • Write allows you to write data or information about the name that follows it and can act as the report of an order.



Younes Derfoufi

No comments:

Post a Comment

Category Of Mobile Courses

Actualités (644) Adsense (1) Affiliation (1) Algebraic Topology (2) Algorithmic (1) all-news (30) Android (5) Android App (8) Android app without code (4) Android Apps (256) Android Development (4) Android download (2) Android OS (3) AngularJS (1) Automata theory and formal language (5) C programming (5) Category and Functor (8) CMS (3) Computer Glossary (18) Create Mobile App With Ionic Framework (2) CSS (2) CSS-Cascading-Style-Sheets (4) Developpement Java (13) Differential Geometry (1) Django-Python-Framework (9) dropshiping (26) Earn Money by Internet (4) Emplois (23) Framework php (2) Fraud (2) HTML (7) Java For Beginners (10) Javascript (12) Kotlin Programming Language (8) Kotlin For Mobile Android (1) Linux Download (2) Marketing (5) Mobile (3) Mobile Courses (4) Mobile Marketing (4) MoneyGram (1) News (721) Node.js (5) Open Source (1) Photoshop (1) Protect Computer (1) Python (35) Python BeautifulSoup (1) Python For Data Science (2) Python PyQt (4) Python Reference (1) Python-Books (6) Python-DVD-Training (1) Python-Exercises (231) Python-Framework (1) Python-IDE (1) Python-Kivy-Framework (2) Python-Modules (1) Python-pdf (2) Python-pyQt (1) Référencement (2) Script PHP (2) Security (6) SEO (1) Snipping Tool: Faq (1) Social Networks (1) Source Code (1) Statistics With SPSS (2) Surveillance Software (1) Travail à domicile (6) Tutoriels php en vidéos (2) Tutoriels-MySql (6) tutoriels-php (19) Utilitaires (1) VPS (1) Web Hosting (1) Webcam (1) Webmarketing (11) Western Union (1) Windows 10 (1) Windows 7 (4) Windows 7 Faq (2) Windows 8 (1) Windows Accessories (1) Windows Download (8) Windows Drivers (1) Windows Fonts (1) Windows Power Shell (2) Windows Registry (2) Windows Security (18) Windows Software (2) Windows Spyware (2) Windows utilities (3) Windows Virus (2) Windows Vista (3) Windows Wireless (1) Windows xp (1) Wordpress (1)
 

Sample text

Sample Text

 
Blogger Templates