{"id":72966,"date":"2020-03-06T08:42:03","date_gmt":"2020-03-06T05:42:03","guid":{"rendered":"https:\/\/prohoster.info\/blog\/administrirovanie\/chto-takoe-windows-powershell-i-s-chem-ego-edyat-chast-1-osnovnye-vozmozhnosti"},"modified":"2020-03-06T08:42:03","modified_gmt":"2020-03-06T05:42:03","slug":"chto-takoe-windows-powershell-i-s-chem-ego-edyat-chast-1-osnovnye-vozmozhnosti","status":"publish","type":"post","link":"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/chto-takoe-windows-powershell-i-s-chem-ego-edyat-chast-1-osnovnye-vozmozhnosti","title":{"rendered":"What is Windows PowerShell and how is it used? Part 1: Key Features","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><i>Historically, command-line utilities in Unix systems have been more developed than in Windows, but with the emergence of new solutions, the situation has changed.<\/i><\/p>\n<p>Windows PowerShell enables system administrators to automate most routine tasks. It allows you to change settings, stop and start services, and maintain most installed applications. Considering the blue window as just another command interpreter would be incorrect. This perspective does not reflect the essence of the innovations proposed by Microsoft. In reality, Windows PowerShell's capabilities are much broader: in a short series of articles, we will attempt to understand how Microsoft's solution differs from the more familiar tools.<\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/487876\/\"><img decoding=\"async\" alt=\"What is Windows PowerShell and how is it used? Part 1: Key Features\" src=\"\/wp-content\/uploads\/2020\/03\/57911997d520dd5eeef9d87ddcecb125.png\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h2>Key Features\u00a0<\/h2>\n<p>\nIndeed, Windows PowerShell is primarily a command shell with a scripting language, originally built on the .NET Framework and later on .NET Core. Unlike shells that accept and return text data, Windows PowerShell works with .NET classes, which have properties and methods. PowerShell allows for the execution of standard commands while also providing access to COM, WMI, and ADSI objects. It utilizes various stores, such as the file system or the Windows registry, accessed through so-called providers. It is also worth noting the ability to embed executable PowerShell components into other applications for various operations, including through graphical interfaces. Conversely, many Windows applications provide access to their management interfaces via PowerShell.\u00a0<\/p>\n<p>Windows PowerShell allows:<\/p>\n<ul>\n<li>To change operating system settings;<\/li>\n<li>To manage services and processes;<\/li>\n<li>To configure server roles and components;<\/li>\n<li>To install software;<\/li>\n<li>To manage installed software through specialized interfaces;<\/li>\n<li>To embed executables into third-party programs;<\/li>\n<li>To create scripts for automating administrative tasks;<\/li>\n<li>To work with the file system, Windows registry, certificate store, etc.<\/li>\n<\/ul>\n<p><\/p>\n<h2>Shell and development environment<\/h2>\n<p>\nWindows PowerShell exists in two forms: in addition to the console emulator with a command shell, there is an Integrated Scripting Environment (ISE). To access the command line interface, simply select the corresponding shortcut from the Windows menu or start powershell.exe from the Run menu. A blue window will appear on the screen, significantly different in capabilities from the outdated cmd.exe. It features autocomplete and other functionalities familiar to users of Unix shell environments.<\/p>\n<p><img decoding=\"async\" alt=\"What is Windows PowerShell and how is it used? Part 1: Key Features\" src=\"\/wp-content\/uploads\/2020\/03\/2b2d6fa0a82530ddedc7c106160a883e.png\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p>To work with the shell, you need to remember some keyboard shortcuts:<\/p>\n<ul>\n<li>The up and down arrows scroll through the history to repeat previously entered commands;<\/li>\n<li>The right arrow at the end of the line retypes the previous command character by character;<\/li>\n<li>Ctrl+Home deletes text from the cursor position to the beginning of the line;<\/li>\n<li>Ctrl+End deletes text from the cursor to the end of the line.<\/li>\n<\/ul>\n<p>\nF7 displays a window with entered commands, allowing you to select one of them. The console also supports mouse text selection, copy-pasting, cursor positioning, deletion, backspace\u2014everything we love.<\/p>\n<p><img decoding=\"async\" alt=\"What is Windows PowerShell and how is it used? Part 1: Key Features\" src=\"\/wp-content\/uploads\/2020\/03\/217b3584c4ffbbfaea8f4fcd97512505.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\nWindows PowerShell ISE is a full-fledged development environment with a tab-supporting code editor and syntax highlighting, a command builder, an integrated debugger, and other programmer conveniences. If you type a hyphen after the command name in the development environment editor, you will get a dropdown list of all available parameters with their types. You can launch PowerShell ISE either through a shortcut from the system menu or using the executable file powershell_ise.exe.<\/p>\n<p><img decoding=\"async\" alt=\"What is Windows PowerShell and how is it used? Part 1: Key Features\" src=\"\/wp-content\/uploads\/2020\/03\/f80df64ede3d89759757c87709d62155.png\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<h2>Cmdlets\u00a0<\/h2>\n<p>\nWindows PowerShell has introduced so-called cmdlets. These are specialized .NET classes that incorporate various functionalities. They are named based on the \"Action-Object\" principle (or \"Verb-Noun,\" if you prefer), and the hyphen-separated combination resembles the subject and predicate in natural language sentences. For instance, Get-Help literally means \"Get-Help\" or, in the context of PowerShell: \"Show-Help.\" Essentially, this is analogous to the man command in Unix systems, and manuals in PowerShell should be requested in this way, rather than invoking cmdlets with the --help key or \\\/?. Don't forget about the online documentation for PowerShell: Microsoft's is pretty detailed.<\/p>\n<p>In addition to Get, other verbs (and not only verbs, strictly speaking) are used in cmdlets to denote actions. Below is a list with several examples:<\/p>\n<p><code>Add<\/code> \u2014 add;<br \/>\n<code>Clear<\/code> \u2014 clear;<br \/>\n<code>Enable<\/code> \u2014 enable;<br \/>\n<code>Disable<\/code> \u2014 disable;<br \/>\n<code>New<\/code> \u2014 create;<br \/>\n<code>Remove<\/code> \u2014 remove;<br \/>\n<code>Set<\/code> \u2014 set;<br \/>\n<code>Start<\/code> \u2014 start;<br \/>\n<code>Stop<\/code> \u2014 stop;<br \/>\n<code>Export<\/code> \u2014 export;<br \/>\n<code>Import<\/code> \u2014 import.<\/p>\n<p>There are system, user, and optional cmdlets: as a result of their executions, all of them return an object or an array of objects. They are not case-sensitive, meaning there is no difference in the command interpreter between Get-Help and get-help. The semicolon \u2018;\u2019 is used for separation, but you must use it only if multiple cmdlets are executed on the same line.\u00a0<\/p>\n<p>Windows PowerShell cmdlets are grouped into modules (NetTCPIP, Hyper-V, etc.), and the cmdlet Get-Command exists for searching by object and action. You can show help for it like this:<\/p>\n<pre><code class=\"powershell\">Get-Help Get-Command<\/code><\/pre>\n<p>\n<img decoding=\"async\" alt=\"What is Windows PowerShell and how is it used? Part 1: Key Features\" src=\"\/wp-content\/uploads\/2020\/03\/394c5af2fa8183b22403848f07756118.png\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p>By default, the command displays a brief help, but parameters (arguments) can be passed to cmdlets if necessary. With them, you can, for example, obtain detailed help (parameter -Detailed) or full help (parameter -Full), as well as display examples (parameter -Examples) on the screen:<\/p>\n<pre><code class=\"powershell\">Get-Help Get-Command -Examples<\/code><\/pre>\n<p>\nHelp in Windows PowerShell is updated with the cmdlet Update-Help. If the command line becomes too long, cmdlet arguments can be moved to the next line by writing the escape character \u2018`\u2019 and pressing Enter \u2014 simply finishing the command on one line and continuing on another will not work.<\/p>\n<p>Below are some examples of common cmdlets:\u00a0<\/p>\n<p><code>Get-Process<\/code> \u2014 display the processes running in the system;<br \/>\n<code>Get-Service<\/code> \u2014 display services and their status;<br \/>\n<code>Get-Content<\/code> \u2014 output the content of a file.<\/p>\n<p>For frequently used cmdlets and external utilities in Windows PowerShell, there are short aliases (from the English Alias). For example, dir is an alias for Get-ChildItem. The list of aliases also includes analogs of commands from Unix systems (ls, ps, etc.), and the cmdlet Get-Help is invoked by the command help. A complete list of aliases can be viewed with the cmdlet Get-Alias:<\/p>\n<p><img decoding=\"async\" alt=\"What is Windows PowerShell and how is it used? Part 1: Key Features\" src=\"\/wp-content\/uploads\/2020\/03\/94f8cf9fd6c346e5b250d994ef1f7661.png\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<h2>Scripts, functions, modules, and the PowerShell language.<\/h2>\n<p>\nWindows PowerShell scripts are stored as plain text files with a .ps1 extension. They cannot be run by double-clicking: you need to right-click to bring up the context menu and select the 'Run with PowerShell' option. From the console, you will either have to specify the full path to the script or navigate to the appropriate directory and type the filename. Running scripts is also restricted by system policy, and to check the current settings, you can use the Get-ExecutionPolicy cmdlet, which will return one of the following values: <\/p>\n<p><code>Restricted<\/code> \u2014 running scripts is forbidden (by default);<br \/>\n<code>AllSigned<\/code> \u2014 only running scripts signed by a trusted developer is allowed;<br \/>\n<code>RemoteSigned<\/code> \u2014 running signed and local scripts is allowed;<br \/>\n<code>Unrestricted<\/code> \u2014 running any scripts is allowed.<\/p>\n<p>The administrator has two options. The safest approach involves signing scripts, but this is quite complex\u2014we will cover it in upcoming articles. For now, we will take the path of least resistance and change the policy:<\/p>\n<pre><code class=\"powershell\">Set-ExecutionPolicy RemoteSigned<\/code><\/pre>\n<p>\n<img decoding=\"async\" alt=\"What is Windows PowerShell and how is it used? Part 1: Key Features\" src=\"\/wp-content\/uploads\/2020\/03\/139949e0da3470b866d4b54f3e2a0498.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\nPowerShell will need to be run as an administrator for this, although with a special parameter, you can modify the policy for the current user as well.<\/p>\n<p>Scripts are written in an object-oriented programming language, with commands named in the same way as the previously discussed cmdlets: 'Action-Object' ('Verb-Noun'). Its main purpose is to automate administration tasks, but it is a full-fledged interpreted language that includes all the necessary constructs: conditional statements, loops, variables, arrays, objects, error handling, etc. Any text editor can be used to write scripts, but the most convenient is to launch Windows PowerShell ISE.<\/p>\n<p>You can pass parameters to the script, make them mandatory, and set default values. Additionally, Windows PowerShell allows for creating functions and calling them the same way as cmdlets: this uses the Function construct and curly braces. A script containing functions is called a module and has the .psm1 extension. Modules must be stored in directories defined in the PowerShell environment variables. You can view them using the following command:<\/p>\n<pre><code class=\"powershell\">Get-ChildItem Env:PSModulePath | Format-Table -AutoSize<\/code><\/pre>\n<p><\/p>\n<h2>Pipelines<\/h2>\n<p>\nIn the last example, we applied a familiar construct for Unix shell users. In Windows PowerShell, the vertical bar also allows passing the output of one command to the input of another, but there is a significant difference in the implementation of the pipeline: here we are not just dealing with a set of characters or some text. Built-in cmdlets or custom functions return objects or arrays of objects, and they can also accept them as input. As in the Bourne shell and its many successors, PowerShell simplifies performing complex tasks using the pipeline.<\/p>\n<p>The simplest example of a pipeline looks like this:<\/p>\n<pre><code class=\"powershell\">Get-Service | Sort-Object -property Status<\/code><\/pre>\n<p>\n<img decoding=\"async\" alt=\"What is Windows PowerShell and how is it used? Part 1: Key Features\" src=\"\/wp-content\/uploads\/2020\/03\/0bb6e0e00d97d23fa2384d40c7419d71.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\nFirst, the Get-Service cmdlet is executed, and then all obtained services are passed to Sort-Object to be sorted by the Status property. The specific argument to which the result of the previous pipeline segment is passed depends on its type \u2014 it is usually InputObject. This issue will be discussed further in the article dedicated to the PowerShell programming language.\u00a0<\/p>\n<p>If desired, you can extend the chain and pass the result of Sort-Object to another cmdlet (they will execute from left to right). By the way, users in Windows also have access to the familiar construct for paginated output:\u00a0<\/p>\n<pre><code class=\"powershell\">Get-Service | Sort-Object -property Status | more<\/code><\/pre>\n<p><\/p>\n<h2>Running Background Tasks\u00a0<\/h2>\n<p>\nOften, there is a need to run a command in the background so that you do not have to wait for its execution result in the shell session. Windows PowerShell has several cmdlets for such cases:<\/p>\n<p><code>Start-Job<\/code> \u2014 starts a background job;<br \/>\n<code>Stop-Job<\/code> \u2014 stops a background job;<br \/>\n<code>Get-Job<\/code> \u2014 views the list of background jobs;<br \/>\n<code>Receive-Job<\/code> \u2014 views the result of a background job;<br \/>\n<code>Remove-Job<\/code> \u2014 removes a background job;<br \/>\n<code>Wait-Job<\/code> \u2014 brings a background job back to the console.<\/p>\n<p>To start a background job, we use the Start-Job cmdlet and specify the command or set of commands within curly braces:<\/p>\n<pre><code class=\"powershell\">Start-Job {Get-Service}<\/code><\/pre>\n<p>\n<img decoding=\"async\" alt=\"What is Windows PowerShell and how is it used? Part 1: Key Features\" src=\"\/wp-content\/uploads\/2020\/03\/0a75c1f4af75e5aec66df909ca4adb70.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\nYou can manipulate background jobs in Windows PowerShell by knowing their names. First, let's learn how to display them:<\/p>\n<pre><code class=\"powershell\">Get-Job<\/code><\/pre>\n<p>\n<img decoding=\"async\" alt=\"What is Windows PowerShell and how is it used? Part 1: Key Features\" src=\"\/wp-content\/uploads\/2020\/03\/664dba26ddcfb54bef79717c86f3c8ec.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\nNow let's show the result of Job1:<\/p>\n<pre><code class=\"powershell\">Receive-Job Job1 | more<\/code><\/pre>\n<p>\n<img decoding=\"async\" alt=\"What is Windows PowerShell and how is it used? Part 1: Key Features\" src=\"\/wp-content\/uploads\/2020\/03\/02d930327929af463cf506f9d90357e6.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\nEverything is quite simple.<\/p>\n<h2>Remote Command Execution<\/h2>\n<p>\nWindows PowerShell allows you to run commands and scripts not only on a local computer but also on a remote machine and even on a whole group of machines. There are several ways to do this:<\/p>\n<ul>\n<li>Many cmdlets have a parameter <code>-ComputerName<\/code>, but using this method, it's not possible, for example, to create a pipeline;<\/li>\n<li>The cmdlet <code>Enter-PSSession<\/code> creates an interactive session on a remote machine;\u00a0<\/li>\n<li>Using the cmdlet <code>Invoke-Command<\/code> you can execute commands or scripts on one or multiple remote computers.<\/li>\n<\/ul>\n<p><\/p>\n<h2>PowerShell Versions<\/h2>\n<p>\nSince its first release in 2006, PowerShell has undergone significant changes. The tool is available for many systems running on different hardware platforms (x86, x86-64, Itanium, ARM): Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008\/2008 R2, Windows 7, Windows 8, Windows 8.1, Windows RT, Windows RT 8.1, Windows Server 2012\/2012 R2, Windows 10, Windows Server 2016, GNU\/Linux, and OS X. The latest release 6.2 was released on January 10, 2018. Scripts written for earlier versions are likely to work in later versions, but there may be issues with backward compatibility, as many new cmdlets have been introduced over the years. You can find out the version of the command shell installed on your computer using the PSVersion property of the built-in variable $PSVersionTable:<\/p>\n<pre><code class=\"powershell\">$PSVersionTable.PSVersion<\/code><\/pre>\n<p>\n<img decoding=\"async\" alt=\"What is Windows PowerShell and how is it used? Part 1: Key Features\" src=\"\/wp-content\/uploads\/2020\/03\/c2d422d1489f88ef8631ee82cc2f60c8.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\nYou can also use the cmdlet:<\/p>\n<pre><code class=\"powershell\">Get-Variable -Name PSVersionTable \u2013ValueOnly<\/code><\/pre>\n<p>\n<img decoding=\"async\" alt=\"What is Windows PowerShell and how is it used? Part 1: Key Features\" src=\"\/wp-content\/uploads\/2020\/03\/5cffcfe260243235e8f91a6c543191f7.png\" style=\"display:block;margin: 0 auto;\" \/><br \/>\nThe same can be done using the Get-Host cmdlet. In fact, there are many options, but to use them, you need to learn the PowerShell programming language, which we will do in <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/490924\/\"><b>the next article<\/b><\/a><\/noindex>.\u00a0<\/p>\n<h2>Summary\u00a0<\/h2>\n<p>\nMicrosoft has managed to create a truly powerful command shell with a convenient integrated environment for script development. Unlike the familiar tools from the Unix world, it is deeply integrated with Windows family operating systems, as well as the software for them and the .NET Core platform. PowerShell can be called an object-oriented shell because cmdlets and user functions return objects or arrays of objects and can receive them as input. We believe that all Windows server administrators should master this tool: the time has passed when they could do without the command line. An advanced console shell is particularly necessary on <noindex><a rel=\"nofollow\" href=\"https:\/\/ruvds.com\/ru-rub\/marketplace\/servercore#order\">our inexpensive VPS running Windows Server Core<\/a><\/noindex>, but that's a whole different story.<\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/ruvds.com\/ru-rub\/#order\"><img decoding=\"async\" alt=\"What is Windows PowerShell and how is it used? Part 1: Key Features\" src=\"\/wp-content\/uploads\/2020\/03\/0683e52726ae6d7def7206e5974a74b2.png\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><\/p>\n<p class=\"for_users_only_msg\">Only registered users can participate in the survey. <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/auth\/login\/\">Please log in<\/a><\/noindex>, please.<\/p>\n<h2 class=\"default-block__polling-title\">What topics should be addressed first in the upcoming articles of the series?<\/h2>\n<ul class=\"poll-result\">\n<li class=\"poll-result__item\">\n<p>                <strong class=\"poll-result__data-percent\">53,2%<\/strong>Programming in PowerShell123<\/p>\n<\/li>\n<li class=\"poll-result__item\">\n<p>                <strong class=\"poll-result__data-percent\">42,4%<\/strong>PowerShell Functions and Modules98<\/p>\n<\/li>\n<li class=\"poll-result__item\">\n<p>                <strong class=\"poll-result__data-percent\">22,1%<\/strong>How to Sign Your Own Scripts?51<\/p>\n<\/li>\n<li class=\"poll-result__item\">\n<p>                <strong class=\"poll-result__data-percent\">12,1%<\/strong>Working with Repositories Through Providers (providers)28<\/p>\n<\/li>\n<li class=\"poll-result__item\">\n<p>                <strong class=\"poll-result__data-percent  poll-result__data-percent_winner\">57,6%<\/strong>Automating Computer Administration Using PowerShell133<\/p>\n<\/li>\n<li class=\"poll-result__item\">\n<p>                <strong class=\"poll-result__data-percent\">30,7%<\/strong>Managing Software and Integrating PowerShell Executables into Third-Party Products71<\/p>\n<\/li>\n<\/ul>\n<p>    231 users voted. 37 users abstained.<br \/>\n<br \/>Source: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/487876\/\">habr.com<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 Unix-\u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u0440\u0430\u0437\u0432\u0438\u0442\u044b \u043b\u0443\u0447\u0448\u0435 \u0447\u0435\u043c \u0432 Windows, \u043e\u0434\u043d\u0430\u043a\u043e \u0441 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c. Windows PowerShell \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0440\u0443\u0442\u0438\u043d\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447. \u0421 \u0435\u0435 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0436\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u0412\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u0438\u043d\u0435\u0435 \u043e\u043a\u043e\u0448\u043a\u043e \u043a\u0430\u043a \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u043a\u043e\u043c\u0430\u043d\u0434 \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":72967,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-72966","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 Unix-\u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u0440\u0430\u0437\u0432\u0438\u0442\u044b \u043b\u0443\u0447\u0448\u0435 \u0447\u0435\u043c \u0432 Windows, \u043e\u0434\u043d\u0430\u043a\u043e \u0441 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c. Windows PowerShell \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\u043c.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/chto-takoe-windows-powershell-i-s-chem-ego-edyat-chast-1-osnovnye-vozmozhnosti\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Windows PowerShell \u0438 \u0441 \u0447\u0435\u043c \u0435\u0433\u043e \u0435\u0434\u044f\u0442? \u0427\u0430\u0441\u0442\u044c 1: \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 Unix-\u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u0440\u0430\u0437\u0432\u0438\u0442\u044b \u043b\u0443\u0447\u0448\u0435 \u0447\u0435\u043c \u0432 Windows, \u043e\u0434\u043d\u0430\u043a\u043e \u0441 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c. Windows PowerShell \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\u043c.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/chto-takoe-windows-powershell-i-s-chem-ego-edyat-chast-1-osnovnye-vozmozhnosti\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-03-06T05:42:03+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-03-06T05:42:03+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47What is Windows PowerShell and How is it Used? Part 1: Key Features | ProHoster","description":"Historically, command-line utilities in Unix systems have been more advanced than in Windows; however, with the emergence of a new solution, the situation has changed. Windows PowerShell allows system administrators.","canonical_url":"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/chto-takoe-windows-powershell-i-s-chem-ego-edyat-chast-1-osnovnye-vozmozhnosti","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"en_US","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Windows PowerShell \u0438 \u0441 \u0447\u0435\u043c \u0435\u0433\u043e \u0435\u0434\u044f\u0442? \u0427\u0430\u0441\u0442\u044c 1: \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 | ProHoster","og:description":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 Unix-\u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u0440\u0430\u0437\u0432\u0438\u0442\u044b \u043b\u0443\u0447\u0448\u0435 \u0447\u0435\u043c \u0432 Windows, \u043e\u0434\u043d\u0430\u043a\u043e \u0441 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c. Windows PowerShell \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\u043c.","og:url":"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/chto-takoe-windows-powershell-i-s-chem-ego-edyat-chast-1-osnovnye-vozmozhnosti","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-03-06T05:42:03+00:00","article:modified_time":"2020-03-06T05:42:03+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"72966","title":null,"description":null,"keywords":null,"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 18:42:52","updated":"2026-08-11 12:50:23","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/72966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/comments?post=72966"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/72966\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/media\/72967"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/media?parent=72966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/categories?post=72966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/tags?post=72966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}