0% found this document useful (0 votes)
36 views

PowerShell On Remote Computer

This document provides instructions for using PowerShell to manage software and registry items on remote computers. It describes how to start a PowerShell session on a remote computer, check and remove specific registry items, automatically process multiple computers listed in a file, get a list of installed software, find software by name, and uninstall applications.

Uploaded by

derek chan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

PowerShell On Remote Computer

This document provides instructions for using PowerShell to manage software and registry items on remote computers. It describes how to start a PowerShell session on a remote computer, check and remove specific registry items, automatically process multiple computers listed in a file, get a list of installed software, find software by name, and uninstall applications.

Uploaded by

derek chan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

PowerShell on the Remote Computer

PowerShell

 Run PowerShell with Run as Administrator on server.


Enter-PSSession ComputerName

Exit-PSSession

 Check 360safe registry item


Get-Item Registry::HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\360safe

 Remove 360safe registry item


Remove-Item Registry::HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\360safe /f

 Automatic remove 360 reg. items for multiple computers, one computer name each line in
the txt file.
Get-Content .\computer.txt | Enter-PSSesion | reg delete
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\360safe /f

 Get installed software


Get-WmiObject -Class Win32_Product

 Get installed software by name


Get-WmiObject -Class Win32_Product | sort-object Name | select Name | where { $_.Name -Like
“*Kaspersky*”}

 Uninstall KAV by Name


$application = Get-WmiObject -Class Win32_Product -Filter "Name = 'Kaspersky Endpoint Security
10 for Windows'"
$application.Uninstall()

 Uninstall all software with the same name


Get-WmiObject -Class Win32_Product -Filter "Name = 'Kaspersky Endpoint Security 10 for
Windows'" | ForEach-Object { $_.Uninstall()}

You might also like