1 of 31

Psexec.exe: Powerful tool for Admins

2 of 31

Who needs to learn psexec.exe?

2

  • IT students
  • Help Desk
  • IT professional who have not used the utility
  • IT professionals who have used the utility but really did not understand how it works
  • Anyone who wants to raise their technical skills

3 of 31

What can psexec.exe do?

3

4 of 31

4

5 of 31

5

Can execute CLI programs on one or many hosts

6 of 31

Psexec can create remote shells

6

7 of 31

Can redirect PowerShell �

7

8 of 31

Can be executed within a batch file or PS1 file

8

See the following PowerShell script for an example:

$Computers = Get-Content D:\MyScripts\Computers.txt

foreach ($Computer in $Computers) {

if (!(Test-Connection -ComputerName $Computer -Count 2 -Quiet)) {

Write-Host "The $Computer is not reachable..."

} else {

Write-Host "Installing software on $Computer..."

&\\192.168.0.254\Share$\PSTools\psexec -s -h -f \\$Computer -c \\192.168.0.254\Share$\Scripts\install.bat

}

}

a simple PowerShell script that can be used to perform unattended deployment of applications, the “install.bat” has the rest of the instructions/paths for the applications

9 of 31

Can silently install applications on remote hosts

9

10 of 31

How do I install?

10

11 of 31

  • Microsoft Store:
  • simple and allows all applications to run at Command prompt and PowerShell

11

12 of 31

Download and extract to favorite �file-server/share

  • Put on a network file share

12

13 of 31

Download to Admin workstation

  • Download to Admin workstation and extract to folder (C:\tools)
  • Add your new folder path to system environmental variables

13

14 of 31

Demo

Editing environmental variables

14

15 of 31

Check out our free video notes

  • Much more details on many options and information not covered in this video are in our video notes
  • Free download: *.docx or PDF file format
  • Our PowerPoints are also free downloads: *.pptx or PDF

15

16 of 31

What is Psexec.exe?

16

17 of 31

  • It is a console utility: that is command line
  • It is a self extracting executable; it does not require installation on the local PC or remote device

17

18 of 31

  • Psexec is about remote administration
  • A powerful tool to config/troubleshoot/install/uninstall on remote devices

18

19 of 31

  • Psexec can be used on a domain and workgroup hosts
  • Written by Mark Russinovich, CTO of Azure

19

20 of 31

Psexec creates and installs a temporary service on Windows called Psexesvc.exe, this service is key to it powerful functions

20

21 of 31

Leaves no mess!

  • Psexec completely cleans up all processes, threads and functions on both the remote/local host upon termination

21

22 of 31

22

I will demo how to install a powerful router/firewall and much more for $0 dollars. Using Pfsense x64 version of FreeBSD we will install it in Hyper-V and configure and launch our virtual appliance’s web interface. We will place our production servers/containers behind the virtual appliances and test throughput. We will diagram our Hyper-V layout and diagram our network topology to help you understand this technology so you can use it at home. We will share many topologies you can build with Pfsense in your home lab.

TECHSAVVYPRODUCTIONS.COM

Building cloud firewall-router appliances for free: Installing Pfsense in Hyper-V

https://youtu.be/ViqHNRvjnY4

23 of 31

23

Demonstrate how to configure powerful firewall rules using Pfsense an open-source security appliance. Pfsense is free to use and download. Using this FreeBSD firewall router and much more we will explore many of the basic LAN services needed for a LAN to connect to the internet edge. We will look at the subnet, DHCP server, and DNS resolver. I will present a step-by-step on configuring your first firewall ruleset. We will look at the greatest enemy of your firewall and why IDS/IPS and application firewalls improve your safety.

TECHSAVVYPRODUCTIONS.COM

Introduction to building SMB Firewall rules using open-source security appliances.

https://youtu.be/XqYufBjOoNk

24 of 31

24

IT students and professionals must learn networking, they need to pass certification exams and gain networking skills to be attractive to potential employers. We will look at why SOHO and SMB routers/firewall/security appliances are great equipment to gain network experience. We will look at the SOHO and SMB router market and recommend how to obtain this type of equipment at affordable prices for the limited budget individual. You will understand these products and how some can be obtained for free. In coming lectures, we will demonstrate labs you can do at home to configure complex DHPC servers, dynamic DNS, VLANs for protecting your business from your customers, configuring firewalls, setting up syslog servers, QoS, and much more. Watch for upcoming videos.

TECHSAVVYPRODUCTIONS.COM

Learn Networking Using SMB/SOHO routers

https://youtu.be/lMbat16eaNI

25 of 31

25

We will cover objectives 2.1 and 2.2 comparing and contrasting network devices and understanding protocols and their well-known port numbers. We review important concepts for the IT student and first-year help-desk employees. Understanding the real-world facts on protocols in today’s enterprise. Helping students gain an understanding of multi-function devices often called “routers or modems”. A great review for anyone preparing for the A+ exam.

TECHSAVVYPRODUCTIONS.COM

Learning Networking Part 1 and Preparing for the CompTIA A + exam

https://youtu.be/bCgXwRYwQHE

26 of 31

SOCIAL MEDIA

CREDITS

  • Social media logos and “Tech Savvy Productions” teaser created by The 11th Hour: https://www.youtube.com/user/The11thH...

26

27 of 31

Become a member

27

28 of 31

Check out our website: �https://www.techsavvyproductions.com

28

29 of 31

Want an easy and free way to support this Channel?Please Subscribe!�80% of the individuals who watch our content do not subscribe.�

29

30 of 31

We have subtitles for the following languages:

We translate subtitles on our videos into the following languages: عربى, българскиB, 简体中文), 中國傳統的), Nederlands, Suomalainen, français, Deutsche, हिंदी , , bahasa Indonesia, 日本語, 한국어, norsk, Polskie, português, Română, український, eesti keel, Española, lietuvių, latviski , Svenska, čeština, dansk, Ελληνικά, հայերեն, shqiptare, and Tiếng Việt

30

31 of 31

�A BIG THANK YOU TO ALL OF OUR VIEWERS AND SUBSCRIBERS!�

31