• Complain

Ashiedu - 40 Most Useful PowerShell and Command Prompt Commands for Windows Administrators

Here you can read online Ashiedu - 40 Most Useful PowerShell and Command Prompt Commands for Windows Administrators full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2020, publisher: Itechguides.com, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    40 Most Useful PowerShell and Command Prompt Commands for Windows Administrators
  • Author:
  • Publisher:
    Itechguides.com
  • Genre:
  • Year:
    2020
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

40 Most Useful PowerShell and Command Prompt Commands for Windows Administrators: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "40 Most Useful PowerShell and Command Prompt Commands for Windows Administrators" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

40 Most Useful PowerShell and Command Prompt Commands for Windows Administrators lists and explains the 40 most useful PowerShell commands and Command Prompt commands. Each command comes with examples. The book is divided into 2 chapters. Chapter 1 covers the 20 most useful PowerShell commands. Chapter 2 covers the 20 most useful Command Prompt commands.40 Most Useful PowerShell and Command Prompt Commands for Windows Administrators is for administrators that want to learn the skills to automate Windows tasks with PowerShell or Command Prompt commands.Whats Inside...Here are the command categories covered in this eBook:1.1 PowerShell Commands to Find and Get Help with Cmdlets1.2 PowerShell Commands to Manage Files and Folders1.3 PowerShell Commands for Reporting1.4 PowerShell Commands to Manage Processes1.5 PowerShell Commands to Manage Event logs1.6 PowerShell Commands to Get Computer Information1.7 PowerShell Commands to Connect to Remote PowerShell Sessions2.1 General Command Prompt Commands2.2 Command Prompt Commands to Manage Disks & Partitions2.3 Command Prompt Commands to Copy Files and Folders2.4 Command Prompt Commands for System Administration and Reporting2.5 Command Prompt Commands for Managing Files and FoldersAbout the AuthorVictor Ashiedu has over 17 years in the IT industry. He worked extensively with Microsoft technologies including PowerShell. He use PowerShell to automate Windows tasks inluding Active Directory and Office 365. Victor is currently the Lead Editor of one of the fastest growing tech websites - Itechguides.

Ashiedu: author's other books


Who wrote 40 Most Useful PowerShell and Command Prompt Commands for Windows Administrators? Find out the surname, the name of the author of the book and a list of all author's works by series.

40 Most Useful PowerShell and Command Prompt Commands for Windows Administrators — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "40 Most Useful PowerShell and Command Prompt Commands for Windows Administrators" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
40 Most Useful PowerShell and Command Prompt Commands for Windows Administrators
By Victor ASHIEDU
Sign up to my PowerShell mailing list.
To receive PowerShell Freebies from Itechguides.com, click this link:
Itechguides.com/powershell-list-amazon/
To get the best of this FREE PowerShell & CMD eBook, use the Table of Contents
(See next page).
Table of Contents
Introduction
This free eBook lists and explains the 40 most useful PowerShell commands and Command Prompt commands. Each command comes with examples.
The book is divided into 2 chapters. Chapter 1 covers the 20 most useful PowerShell commands. Chapter 2 covers the 20 most useful Command Prompt commands.
40 Most Useful PowerShell and Command Prompt Commands for Windows Administrators is for administrators that want to learn the skills to automate Windows tasks with PowerShell or Command Prompt commands.
Chapter 1: 20 Most Useful PowerShell Commands
This guide teaches you how to use the 20 most useful PowerShell commands for Systems Administrators.
In this guide, I will share commands required to perform common tasks in Windows. Most Windows administrators will find this tutorial both useful and handy.
1.0 PowerShell Commands to Find and Get Help with Cmdlets
You cannot talk about the most useful PowerShell commands without learning how to find them. Below are the PowerShell commands that will help you find Cmdlets (Command Lets).
Get-Command
The Get-Command Cmdlet is the first and most important command a PowerShell newbie should learn and know how to use. Why? It helps you find other PowerShell Cmdlets. What command can be more important than a command that can do this?
To find all PS Commands in your computer, simply execute this command below:
Get-Command
Understanding the Results of the Get-Command Cmdlet There are four columns in - photo 1
Understanding the Results of the Get-Command Cmdlet
There are four columns in the results of the Get-Command Output
  1. CommandType : This tells you whether a command is an Alias, a Cmdlet, or a Function.
  2. Name : The name is the actual command you execute.
  3. Version : This is the PowerShell version
  4. Source : The module of the PS command.
With this information, you can filter the results from Get-Command. Say you want to see PowerShell commands containing the word "EventLog", running the command below will get the job done:
Get-Command -Name *EventLog
Notice where I added the asterisks. This is because I am aware that
"EventLog" is the "Noun" part of the Cmdlets. However, if you don't even know you could try adding the asterisks at the beginning then try the end.
Below is the result of the previous command.
Get-Command Parameters Lastly before we move on lets discuss the parameters - photo 2
Get-Command Parameters
Lastly, before we move on, lets discuss the parameters of the Get-Command Cmdlet.
To get all the parameters and information about the Get-Command command, execute this command below:
Get-Help Get-Command -Full
This will give you all the information regarding the Get-Command Cmdlet. I will discuss the Get-Help Cmdlet next.
Get-Help
While the Get-Command Cmdlet finds the Cmdlets, the Get-Help PowerShell command gives you the information you need to use the command.
The easiest way to use the Get-Help Cmdlet is to enter Get-Help followed by the command you want information on. To find more information about the Get-EventLog Cmdlet, run the command below:
Get-Help Get-EventLog
This will give you the basic information about Get-EventLog PowerShell Command. See the result below:
Some Important Parameters of the Get-Help Command Like any other PowerShell - photo 3
Some Important Parameters of the Get-Help Command
Like any other PowerShell Cmdlet, the Get-Help Cmdlet has several parameters. Below are the most important parameters you will need.
  1. -Detailed : The Detailed parameter gives you the command SYNTAX, PARAMETERS, ALIASES, and REMARKS.
  2. -Full : The Full gives similar information provided by the Detailed parameter with more information about each parameter
  3. -Examples : Gives examples of how to use the Cmdlet. This can be very useful if you have never used the Cmdlet before.
  4. -Online : Opens the online help page of the Cmdlet.
To see the parameters of a PS Cmdlet, type the Cmdlet in PS, hit the space key, type hyphen "-" followed by the tab key. As you press the tab key you will scroll through available parameters.
1.1 PowerShell Commands to Manage Files and Folders
Now that you know how to find PowerShell commands, let's get you in the hood. The next set of the most useful PowerShell commands are Cmdlets to help you manage files and folders.
Get-ChildItem
Gets items in a specified location. To list the folders in my drive C, I will run the command below:
Get-ChildItem c:/
This will list all the top-level folders. To list all files, folders include sub-folders use the - Recurse parameter.
Tip
You can combine the Get-ChildItem Cmdlet let with other Cmdlet to calculate the size of each folder in a specified directory.
Copy-Item and Move-Item
You could use the Get-ChildItem Cmdlet to list items in a folder, then pipe the result to Copy-Item Cmdlet to copy the items to a new location. The command below will do the job:
Get-ChildItem C:\Dropbox | Copy-Item -Destination C:\NewFolder
The above PowerShell command will only copy the top-level folders and files - it will NOT copy sub-folders and files. To copy all files and folders including sub-folders, include the - Recurse parameter in the Get-ChildItem command as shown below:
Get-ChildItem C:\Dropbox -Recurse | Copy-Item -Destination C:\NewFolder
While the Copy-Item Cmdlet copies items from one location to another the Move-Item Cmdlet moves the item.
Remove-Item
This Cmdlet deletes specified items. Like the Copy-Item and Move-Item Cmdlets, you could pipe the output of Get-ChildItem to Remove-Item.
Use the Remove-Item Cmdlet with caution as it can delete all files and folders in your computer including Windows files!
Tip
By piping the output of Get-ChildItem to Remove-Item, you could create a simple script that will delete some log files on regular bases. You could schedule the PS script to run at a specified time using Windows Scheduler.
New-Item
This Cmdlet creates a new item in Windows. New-Item can be used to create files, folders and registry keys and entries. The command below creates a text file called weekly_file.txt in c:\logfiles folder:
New-Item -Path c:\logfiles -Name weekly_file.txt
Here is the command in PowerShell
Rename-Item Rename-Item Cmdlet is used to rename things in Windows This Cmdlet - photo 4
Rename-Item
Rename-Item Cmdlet is used to rename things in Windows. This Cmdlet can rename files, folders and registry keys. This command will rename weekly_file.txt to monthly_file.txt
Rename-Item -Path C:\logfiles\weekly_file.txt -NewName monthly_file.txt
When you run the command, it appears that nothing happened, but when you check the folder, the text file has been renamed!
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «40 Most Useful PowerShell and Command Prompt Commands for Windows Administrators»

Look at similar books to 40 Most Useful PowerShell and Command Prompt Commands for Windows Administrators. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «40 Most Useful PowerShell and Command Prompt Commands for Windows Administrators»

Discussion, reviews of the book 40 Most Useful PowerShell and Command Prompt Commands for Windows Administrators and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.