Это видео недоступно.
Сожалеем об этом.
Top 5 Useful PowerShell Commands
HTML-код
- Опубликовано: 2 авг 2024
- 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
Excellent presentation, very useful and practical! Well done and thank you Mike!
He explained it thoroughly of how to use such commands. Thank man.
Thanks!!
Thanks, this was a great explanation for a beginner and your patience was appreciated
Very informative. Thanks for this!
Mike your way of explanation is very effective .
Very well explained, and easy to understand.
Thanks Mike. Really handy commands.
You're welcome!
This is great content Mike I liked the test-path for registry just never thought of it before. Keep up the good work, thanks!!
Thanks, glad you learned something useful!! Test-Path is underrated!
Very useful...Big thank You...Mike
You are very welcome!
AWESOME 🔥🔥🔥🔥
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
Thanks! Good point, I'll see about adding a note above.
GREAT VIDEO!!!!!!!!!!!!!!!!!!!
Awesome…real time scenario
Enter-PSSession -VMName .
Since Windows Server 2016 or Winfows 10 1607 (and Hyper-V 8.0).
Please bring up some more useful commands. Appreciated
We'll add it to the list!
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😌
Please make a video on aircrack-ng tool in kali linux
Thanks for the suggestion! We've added it to the queue.
@@ITProTv Won't you upload the aircrack-ng tool video to RUclips