PowerShell command in Windows

Windows PowerShell is an executable command line and a scripting language specifically designed for system administrators.

Windows PowerShell is an executable command line and a scripting language specifically designed for system administrators.Windows PowerShell is built on the .NET Framework, which helps IT professionals and users have control and automation of the administration of Windows operating systems and Windows-based applications.

The PowerShell.exe command-line tool starts the Windows PowerShell session in the Command Prompt window.When you use PowerShell.exe, you can use its optional parameters to customize the session.For example, you can start a session using a specific execution policy or a session that includes Windows PowerShell configuration.If not customized, that session will look like any other session started in the Windows PowerShell console.

Use PowerShell.exe

You can use the PowerShell.exe command-line tool to start the Windows PowerShell session in the Command Prompt window.

- To start the Windows PowerShell session in the command prompt window, type PowerShell . The PS prefix is ​​added to the command prompt to indicate that you are in the Windows PowerShell session.

- To start a session with a specific execution policy, use the ExecutionPolicy parameter:

 PowerShell.exe -ExecutionPolicy Restricted 

- To start the Windows PowerShell session without your Windows PowerShell configuration, use the NoProfile parameter:

 -NoProfile PowerShell.exe 

- To start a session, use the ExecutionPolicy parameter:

 PowerShell.exe -ExecutionPolicy Restricted 

- To view the PowerShell.exe help file, use the following command format:

 PowerShell.exe -help, - ?, /? 

To end Windows PowerShell session in the Command Prompt window, type exit .The command prompt will be returned to the normal state.

Note

Windows PowerShell runs on the Server Core installation option of Windows Server operating systems.However, features that require a graphical user interface, such as Windows PowerShell Integrated Scripting Environment (ISE), Out-GridView and Show-Command cmdlets, will not run on Server Core installations.

See more:

  1. Bitsadmin getowner, get priority and getproxybypasslist commands in Windows
  2. Popd and pushd commands in Windows
  3. Bitsadmin create command in Windows
  4. The nlbmgr command in Windows
Update 26 May 2019
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile