40. How to get the local Administrators of one or many computers remotely with PowerShell.

Опубликовано: 23 Август 2019
на канале: CyberAutomate
11,770
83

🖥️ Retrieving Local Administrators Remotely: Demonstrates a PowerShell script to fetch the list of local administrators from one or multiple machines.

⚙️ Function Overview: Introduces Get-LocalAdmins, a custom function that pings machines, retrieves local admin details using WMI, and formats the output.

📋 Flexible Output Options: Results can be displayed in the console or exported to a CSV file for reporting.

🔄 Error Handling and Efficiency: Incorporates checks for unreachable machines and ensures clean outputs by skipping unnecessary data.

Download Link: https://github.com/cyberautomate/PubP...

BlueSky: https://bsky.app/profile/cyberautomat...
LinkedIn:   / david-hall10  
Github: https://github.com/cyberautomate

#PowerShell #PowerShellTraining #CyberAutomate #LearnPowerShell #PowerShellAutomation