Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

PowerShell study notes-- first acquaintance of PowerShell

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Although I have been more or less exposed to some PowerShell commands before, it is the first time to learn the system, so let's count it as a "first acquaintance".

I. console program

Friends who have played with DOS should be no stranger to the PowerShell console. If it is not the "PS" logo, it will be mistaken for the DOS environment.

Before using the PowerShell console, you can configure it to suit your screen size and usage habits. Click the icon in the upper left corner and select Properties.

The [options] tab allows you to resize the buffer. The larger the buffer, the more commands the console can remember.

The [font] tab can make the default 12-point font larger. I adjusted it to 16.

[layout] tab carefully set all "widths" to the same value, according to the individual screen size, to ensure that there is no scroll bar at the bottom of the set console window, because some command output will be blocked by the scroll bar.

[color] it's best not to change it.

The console program is just an interface between us and PowerShell, and it can be run in the server core with a character-only interface.

II. Integrated scripting environment (ISE)

It is more like a Windows application, and its main body is divided into three parts: a console form, which can enter commands like a console program; a script editor, which is used to edit scripts, debug, save as ps1 files, etc.; and a command prompt window.

Command completion and intelligent prompts

Like Shell in the Linux environment, PowerShell's console program also supports the "Tab" key command completion function. You can type only part of the command, and then press Tab to automatically complete the rest, as can the command parameters. This is very useful for people like me who have a bad memory.

The integrated scripting environment has similar functionality, or even easier to use, and we become smart tips. When you type a command in the ISE console window, ISE will constantly change the contents of the command prompt window to choose from according to the input.

IV. matters needing attention

Make sure the console form does not have a horizontal scroll bar

Try to use 64-bit Windows and 64-bit PowerShell applications

Make sure to open the PowerShell application with administrator privileges

Fifth, third-party PowerShell tools

If you think the two tools provided by Microsoft are not to your taste, you can use third-party PowerShell applications, you can search for many free and commercial versions, and you can try which is more suitable for you. As a beginner, I'd better make good use of the two I brought with me first.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report