How to install PS Exec on a Windows 10 PC?


  1. Posts : 49
    Windows 10 Enterprise 64 bit
       #1

    How to install PS Exec on a Windows 10 PC?


    I watched some Youtube videos on how to "install" PS Exec. They are mostly Windows 7 tutorials. Seems like Windows 10 is a bit different.

    I tried to add it to Environmental Variables>System Variables>Path Edit>New>%SystemRoot%\System32\PSTools but it's not working.

    I have the PS Tools here: C:\Windows\System32\PSTools

    Now what?
      My Computer


  2. Posts : 5,899
    Win 11 Pro (x64) 22H2
       #2

    What???? Is "PS Exec"?
      My Computers


  3. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #3

    PaulaJava said:
    I watched some Youtube videos on how to "install" PS Exec ...I have the PS Tools here: C:\Windows\System32\PSTools
    Paula,

    You do not have to do anything in particular. When you want to run [SysInternals, PSTools suite] PSExec you can just use its full path.
    C:\Windows\System32\PSTools\PSExec.exe

    [this was also the case in Windows 7]

    Denis

    PS Others interested in this suite of tools can see Sysinternals Suite - Microsoft Docs. Note that SysInternals is a part of Microsoft.
      My Computer


  4. Posts : 5,899
    Win 11 Pro (x64) 22H2
       #4

    Try3 said:
    PS Others interested in this suite of tools can see Sysinternals Suite - Microsoft Docs. Note that SysInternals is a part of Microsoft.
    Without any sort reference (or knowledge of Sysinternals) one would not know what PS Exec is.

    I am familiar with Sysinternals, I just don't use "PS Exec". I mostly use Process Explorer and Process Monitor.

    Thanks.
      My Computers


  5. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #5

    Paula,

    I have only ever used PSExec for one job - resolving an Error accessing the System Registry message when accessing Excel, VBA, Tools, References

    Just out of interest, what will you be using it for?

    Denis
      My Computer


  6. Posts : 49
    Windows 10 Enterprise 64 bit
    Thread Starter
       #6

    Sorry for the delay. Had to get some grub. I am using a ps1 to do a Bitlocker status on our laptop OU.

    Here is the ps1:

    Import-Module ActiveDirectory
    $searchbase = "OU=Laptops,OU=Computers,OU=FTY,OU=Service Unites,OU=PHX,OU-IHS,DC=D1,DC=NA,DC=ORG,DC=GOV"
    $computers = Get-ADComputer -Filter * -Searchbase $searchbase
    $PSScriptRoot
    $ScriptToRun= $PSScriptRoot+"\EnableWinRM.ps1"


    ForEach ($computer in $computers.name) {
    &$ScriptToRun
    Invoke-Command -ComputerName $computer -ScriptBlock {
    Import-Module xBitlocker -ErrorAction SilentlyContinue
    $bitlockstatus = Get-BitLockerVolume
    write-output "$env:computername | Bitlocker Status: $($bitlockstatus.ProtectionStatus)"
    Out-File "\\phxaoapps\bitlocker\recoverykey\fty\FTY-Bitlocker-Status.csv" -Append
    }
    }



    And it" referencing this ps1:

    Param([string]$computerName)Function enableWinRM { $result = winrm id -r:$global:compName 2>$null Write-Host if ($LastExitCode -eq 0) { Write-Host "WinRM already enabled on" $global:compName "..." -ForegroundColor green } else { Write-Host "Enabling WinRM on" $global:compName "..." -ForegroundColor red \\server\folder\pstools\psexec.exe \\$global:compName -s C:\Windows\system32\winrm.cmd qc -quiet if ($LastExitCode -eq 0) { \\server\folder\pstools\psservice.exe \\$global:compName restart WinRM $result = winrm id -r:$global:compName 2>$null if ($LastExitCode -eq 0) {Write-Host 'WinRM successfully enabled!' -ForegroundColor green} else {exit 1} } else {exit 1} }}$global:compName = $computerNameenableWinRMexit 0


    I don't know if the ps1 it will work. But I did finally get psexec to work. I just had to restart.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:48.
Find Us




Windows 10 Forums