Top 5 Useful PowerShell Commands

Sdílet
Vložit
  • čas přidán 5. 08. 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

Komentáře • 28

  • @angmathew4377
    @angmathew4377 Před 3 lety +5

    He explained it thoroughly of how to use such commands. Thank man.

  • @Silvermist78
    @Silvermist78 Před rokem

    Excellent presentation, very useful and practical! Well done and thank you Mike!

  • @bluestripes6037
    @bluestripes6037 Před rokem

    Thanks, this was a great explanation for a beginner and your patience was appreciated

  • @insightvideo6136
    @insightvideo6136 Před 2 lety

    Very informative. Thanks for this!

  • @tjstraw1
    @tjstraw1 Před rokem

    Very well explained, and easy to understand.

  • @MrRahul19770
    @MrRahul19770 Před rokem

    Mike your way of explanation is very effective .

  • @notoriousft
    @notoriousft Před 3 lety +1

    Thanks Mike. Really handy commands.

  • @ggz7
    @ggz7 Před 2 lety +1

    Very useful...Big thank You...Mike

    • @ITProTv
      @ITProTv  Před 2 lety

      You are very welcome!

  • @TheDTAnderson
    @TheDTAnderson Před 3 lety +7

    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 Před 3 lety +1

      Thanks, glad you learned something useful!! Test-Path is underrated!

  • @zagzone4843
    @zagzone4843 Před rokem

    AWESOME 🔥🔥🔥🔥

  • @braylondinkins1331
    @braylondinkins1331 Před 2 lety

    GREAT VIDEO!!!!!!!!!!!!!!!!!!!

  • @pdaniaful
    @pdaniaful Před 3 lety +10

    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 Před 3 lety

      Thanks! Good point, I'll see about adding a note above.

  • @vinodkumargunnam1844
    @vinodkumargunnam1844 Před rokem

    Awesome…real time scenario

  • @cheapizz8641
    @cheapizz8641 Před 2 lety

    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 Před 3 lety

    Please bring up some more useful commands. Appreciated

    • @ITProTv
      @ITProTv  Před 3 lety

      We'll add it to the list!

  • @leshylit
    @leshylit Před 2 lety

    Enter-PSSession -VMName .
    Since Windows Server 2016 or Winfows 10 1607 (and Hyper-V 8.0).

  • @LaxmiNarayana
    @LaxmiNarayana Před 3 lety +3

    Please make a video on aircrack-ng tool in kali linux

    • @ITProTv
      @ITProTv  Před 3 lety +1

      Thanks for the suggestion! We've added it to the queue.

    • @LaxmiNarayana
      @LaxmiNarayana Před 3 lety

      @@ITProTv Won't you upload the aircrack-ng tool video to CZcams