Posted On August 15, 2019

PowerShell: Quick 1-Liner to Locate Path to Executable

kimconnect 0 comments
blog.KimConnect.com >> Windows >> PowerShell: Quick 1-Liner to Locate Path to Executable
PS C:\Users\tester> (get-command robocopy.exe) | select Definition

Definition
----------
C:\Program Files (x86)\Windows Resource Kits\Tools\robocopy.exe
C:\Windows\system32\Robocopy.exe

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Excel MD5 Hash Function

Go to the VB editor (Alt-F11), right-click on your workbook in theproject window, and click…

Storage: Cohesity(tm) Basics

The intention of this posting is to critique a product known as Cohesity, a trademark…

PowerShell: How To Configure Static IP Address

$nicName='NIC1' $ipaddress='192.168.0.222' $cidrPrefix=24 $defaultGateway='192.168.0.1' $dnsServers=@('8.8.8.8','4.4.2.2') $disableIpv6=$true function setNic($nicName,$ipAddress,$cidrPrefix,$defaultGateway,$dnsServers,$disableIpv6=$true ){ $ifIndex=(get-netadapter|?{$_.Name -eq $nicName}).ifIndex New-NetIPAddress -InterfaceIndex $ifIndex…