No video

Top 5 Useful PowerShell Commands

  Рет қаралды 33,363

ITPro

ITPro

Күн бұрын

If you're a PowerShell user, then you likely have a handful of commands you use on a regular basis. Among the hundreds of cmdlets, there are likely a few useful ones that you're unaware of. Join Mike in this video as he shares his top 5 PowerShell commands!
Looking for PowerShell training? Start learning today with ITProTV: go.itpro.tv/courses-all
00:00 Intro
01:09 #1: Test-Path
05:50 #2: Get-ExecutionPolicy
08:22 #3: Get-Credential
10:58 #4: Invoke-Command
15:20 #5: Enter-PSSession
Commands used in video:
Test-Path “c:\test.txt”
Test-Path “c:\test2.txt”
New-Item -ItemType File “c:\test.txt”
If (!(Test-Path “c:\test.txt”)){ New-Item -ItemType File “c:\test.txt” }
Test-Path -Path "HKLM:\Software\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell"
Test-Path $pshome\pwsh.exe -NewerThan "July 24, 2019"
Get-ExecutionPolicy
Set-ExecutionPolicy -ExecutionPolicy
$creds = Get-Credential
Invoke-Command -ComputerName svr01 -Credential $creds -ScriptBlock { Get-ExecutionPolicy}
Invoke-Command -ComputerName svr01 -Credential $creds -FilePath “e:\scripts\demo.ps1”
Enter-PSSession
Exit-PSSession
#toppowershellcommands #usefulpowershellcommands #bestpowershellcmdlets

Пікірлер: 28
@angmathew4377
@angmathew4377 3 жыл бұрын
He explained it thoroughly of how to use such commands. Thank man.
@mikerodrick5354
@mikerodrick5354 3 жыл бұрын
Thanks!!
@pdaniaful
@pdaniaful 3 жыл бұрын
Great teaching, just one comment, you forgot to mention that enter-pssession only works if the remote windows Pc has The WinRM service running and A WinRM listener needs to be configured
@mikerodrick5354
@mikerodrick5354 3 жыл бұрын
Thanks! Good point, I'll see about adding a note above.
@MrRahul19770
@MrRahul19770 Жыл бұрын
Mike your way of explanation is very effective .
@tjstraw1
@tjstraw1 Жыл бұрын
Very well explained, and easy to understand.
@Silvermist78
@Silvermist78 Жыл бұрын
Excellent presentation, very useful and practical! Well done and thank you Mike!
@bluestripes6037
@bluestripes6037 Жыл бұрын
Thanks, this was a great explanation for a beginner and your patience was appreciated
@TheDTAnderson
@TheDTAnderson 3 жыл бұрын
This is great content Mike I liked the test-path for registry just never thought of it before. Keep up the good work, thanks!!
@mikerodrick5354
@mikerodrick5354 3 жыл бұрын
Thanks, glad you learned something useful!! Test-Path is underrated!
@ggz7
@ggz7 2 жыл бұрын
Very useful...Big thank You...Mike
@ITProTv
@ITProTv 2 жыл бұрын
You are very welcome!
@notoriousft
@notoriousft 3 жыл бұрын
Thanks Mike. Really handy commands.
@mikerodrick5354
@mikerodrick5354 3 жыл бұрын
You're welcome!
@insightvideo6136
@insightvideo6136 2 жыл бұрын
Very informative. Thanks for this!
@vinodkumargunnam1844
@vinodkumargunnam1844 Жыл бұрын
Awesome…real time scenario
@braylondinkins1331
@braylondinkins1331 2 жыл бұрын
GREAT VIDEO!!!!!!!!!!!!!!!!!!!
@zagzone4843
@zagzone4843 Жыл бұрын
AWESOME 🔥🔥🔥🔥
@LaxmiNarayana
@LaxmiNarayana 3 жыл бұрын
Please make a video on aircrack-ng tool in kali linux
@ITProTv
@ITProTv 3 жыл бұрын
Thanks for the suggestion! We've added it to the queue.
@LaxmiNarayana
@LaxmiNarayana 3 жыл бұрын
@@ITProTv Won't you upload the aircrack-ng tool video to KZfaq
@leshylit
@leshylit 2 жыл бұрын
Enter-PSSession -VMName . Since Windows Server 2016 or Winfows 10 1607 (and Hyper-V 8.0).
@cheapizz8641
@cheapizz8641 2 жыл бұрын
How to stop Powershell pop out every single time i open my laptop or restart it, i already turn off it but still come out every single time😌
@neerajwork4353
@neerajwork4353 3 жыл бұрын
Please bring up some more useful commands. Appreciated
@ITProTv
@ITProTv 3 жыл бұрын
We'll add it to the list!
Learn and use PowerShell with just three commands
16:08
TechThoughts
Рет қаралды 56 М.
Каха заблудился в горах
00:57
К-Media
Рет қаралды 10 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 23 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,8 МЛН
PowerShell Unplugged with Jeffrey Snover (The Blueprint Files) | BRK260
1:02:07
PowerShell Quick Tips : Get-ChildItem
19:46
JackedProgrammer
Рет қаралды 4,3 М.
PowerShell Made Easy
25:39
Andy Malone MVP
Рет қаралды 96 М.
Network Troubleshooting with PowerShell
5:07
Carl Hill IT
Рет қаралды 17 М.
PowerShell and Active Directory Essentials
5:02:45
Varonis
Рет қаралды 65 М.
You Should Learn PowerShell
13:18
Pro Tech Show
Рет қаралды 26 М.
PowerShell Remoting
37:12
TechThoughts
Рет қаралды 70 М.
30 Windows Commands you CAN’T live without
14:35
NetworkChuck
Рет қаралды 2,3 МЛН
5 Tips to Help You Learn Windows PowerShell
18:34
Gary Explains
Рет қаралды 42 М.
Каха заблудился в горах
00:57
К-Media
Рет қаралды 10 МЛН