PowerShell Introduction
I wrote this article to show a brief introduction about how to use PowerShell daily. Many professionals work effectively with the command line in Linux, but when they need to do the same in windows I'm not a PowerShell professional, but I'd like to share a little bit of knowledge with the community.
What is PowerShell?
PowerShell is a cross-platform task automation solution consisting of a command-line shell, a scripting language, and a configuration management framework. PowerShell runs on Windows, Linux, and macOS. In addition, it's based on the .Net framework and is tightly integrated with Windows.
In the link below, you'll find more information about PowerShell.
PowerShell System
Let's start talking about the PowerShell Help System and its usability. Many professionals use the command line, but some don’t know how helpful and powerful it can be. On a daily basis when someone forgets what command to use this can be essential to help. This command shows a brief help about cmdlet or topic you wish to understand, it usually comes with various options and filters.
We can user Get-Help, Help, and -?
Please keep in mind the result is the same for the three options. So feel free to use which you think is better.
Get-Help test ?( Lists everything which contains the word process )
PowerShell Cmdlets
A cmdlet is a lightweight command that is used in the PowerShell environment. The PowerShell runtime invokes these cmdlets within the context of automation scripts that are provided at the command line. The PowerShell runtime also invokes them programmatically through PowerShell APIs.
In the link below, you'll find more information about PowerShell Cmdlets.
We can use the below command for listing all cmdlets
领英推荐
Get-Alias * ( Lists all aliases created )
Now I'll list some interesting cmdlets to use on daily basis.
I create a while using (get-process / ps) to show CPU consumption every 3 seconds used by the processes.
3 seconds after new status about the process
So this is the first approach to PowerShell and its possibilities. There are several things to use daily. First, PowerShell is essential when you don't have graphic access to the server or workstation. It can be an excellent and powerful tool to use during an incident response, pentest or solve problems. I hope this information is helpful, and I intend to create a part II to discuss more.
Information Security Coordinator / Consultant / Analyst
3 年Parabéns pelo artigo.
Chief Technologist @ YOTTABYTE | vCISO | Compliance Management
3 年Great work Zoziel F.
IT Security Analyst
3 年Congratulations Zoziel Pinto F. Powershell, since it was implemented in the Windows operating system, has brought us many facilities for data collection and remote execution, as well as facilitating some malicious activities for malicious agents. Until today many of us were lost with the commands and updates, congratulations again for the article.
Information Security and Wireless Admin at Saint Paul College-A Community and Technical College
3 年Thanks for sharing