Это видео недоступно.
Сожалеем об этом.

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

Комментарии • 28

  • @Silvermist78
    @Silvermist78 Год назад

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

  • @angmathew4377
    @angmathew4377 3 года назад +5

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

  • @bluestripes6037
    @bluestripes6037 Год назад

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

  • @insightvideo6136
    @insightvideo6136 2 года назад

    Very informative. Thanks for this!

  • @MrRahul19770
    @MrRahul19770 Год назад

    Mike your way of explanation is very effective .

  • @tjstraw1
    @tjstraw1 Год назад

    Very well explained, and easy to understand.

  • @notoriousft
    @notoriousft 3 года назад +1

    Thanks Mike. Really handy commands.

  • @TheDTAnderson
    @TheDTAnderson 3 года назад +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 3 года назад +1

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

  • @ggz7
    @ggz7 2 года назад +1

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

    • @ITProTv
      @ITProTv  2 года назад

      You are very welcome!

  • @zagzone4843
    @zagzone4843 Год назад

    AWESOME 🔥🔥🔥🔥

  • @pdaniaful
    @pdaniaful 3 года назад +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 3 года назад

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

  • @braylondinkins1331
    @braylondinkins1331 2 года назад

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

  • @vinodkumargunnam1844
    @vinodkumargunnam1844 Год назад

    Awesome…real time scenario

  • @leshylit
    @leshylit 2 года назад

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

  • @neerajwork4353
    @neerajwork4353 3 года назад

    Please bring up some more useful commands. Appreciated

    • @ITProTv
      @ITProTv  3 года назад

      We'll add it to the list!

  • @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😌

  • @LaxmiNarayana
    @LaxmiNarayana 3 года назад +3

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

    • @ITProTv
      @ITProTv  3 года назад +1

      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 RUclips