This article is for sharing the
basics of Windows PowerShell. First of all, a shell is an interface that
gives the users to access various system resources so we can conclude what is PowerShell. It
is a very powerful command-line shell and scripting language and this mainly designed for System Administrator to make their daily
tasks easy. Also, the PowerShell help to automate the task and managing the
operating systems through the various customized scripts.
Open PowerShell
Open PowerShell
Cortana Search – Type ‘PowerShell’ in the search and click the icon
Browse the Folder - C:\Windows\System32\WindowsPowerShell\v1.0 (can create a shortcut on the desktop for easy access)
kBasic Commands and Applications
The PowerShell is an open-source tool which is developed by Microsoft and it also supports macOS and Linux based
operation systems. Using the PowerShell we can manage different
resources like Active Directory, Microsoft Exchange, Azure, Office 365, etc. but
here I am showing only the basic usage of the PowerShell.
cmdlets – This cmdlet is known as PowerShell commands. We
can get all available list using the below command
Get-Command
-Type Cmdlet – list
all available commands$PSVersionTable – This command is using for checking the current version
Get-Help – Will display all information about the PowerShell
Get-Service – We can get all services on the system
Get-DscResource – Display all the resources on the local system
Get-process – Display the running process
Stop-process –id xxxxxx – Stop the process, replace xxxxx to process id
New-Item – Used to create new folder
Create a
TheWanTricks.com in E drive -
New-Item -Path 'E:\TheWanTricks.com' -ItemType Directory
Create a new
.txt file using the same command
New-Item
-Path 'E:\thewantricks.txt' -ItemType File
Rename-Item – This command is used to rename the itemTopic Conclusion
We have talked
about the basics of PowerShell and commands that are used for normal
operations. This is just an intro of the PowerShell and will post advanced
sections in the coming PowerShell sections. Always keep in touch.
COMMENTS