Powershell script to search for local user accounts, then provide email address and ost modified date.

Our organisation would uses an RMM tool (Kaseya) to manage several thousand endpoints. I need a Powershell script (most likely) to gather:

1. a list of the user accounts for each Windows 10 PC,

2. provide the email address of each local user account (if there is one; otherwise output 'no email account')

3. provide the last-in-use date (and time; if available) of the email account for each user profile

4. provide a count of the Local-User and Email-Accounts on each PC

5. output data to … this is difficult for me to understand ...

Here is a script from Kaseya, to list local users and 'retrieve it in a text file .. as well as writing it in the Agent Procedure log.'

<?xml version="1.0" encoding="utf-8"?>

<ScriptExport xmlns:xsi="[login to view URL]" xmlns:xsd="[login to view URL]" xmlns="[login to view URL]">

<Procedure name="Get List of Local Users" treePres="3" id="740870575" folderId="742688354078069">

<Body description="">

<Statement description="Get list of local users to local file" name="ExecuteShellCommand" continueOnFail="false">

<Parameter xsi:type="StringParameter" name="Command" value="net users &gt;&gt; #vAgentConfiguration.agentTempDir#\[login to view URL]" />

<Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />

<Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />


<If description="Save list to variable">

<Condition name="TestFile">

<Parameter xsi:type="StringParameter" name="Path" value="#vAgentConfiguration.agentTempDir#\[login to view URL]" />

<Parameter xsi:type="EnumParameter" name="Condition" value="Exists" />

<Parameter xsi:type="StringParameter" name="Value" value="" />



<Statement name="GetVariable" continueOnFail="false">

<Parameter xsi:type="EnumParameter" name="VariableType" value="FileContent" />

<Parameter xsi:type="StringParameter" name="SourceContent" value="#vAgentConfiguration.agentTempDir#\[login to view URL]" />

<Parameter xsi:type="StringParameter" name="VariableName" value="userslist" />


<Statement description="Upload file to Getfile folder and write content to Agent procedure log" name="GetFile" continueOnFail="false">

<Parameter xsi:type="StringParameter" name="RemoteFileName" value="#vAgentConfiguration.agentTempDir#\[login to view URL]" />

<Parameter xsi:type="StringParameter" name="KServerFileName" value="[login to view URL]" />

<Parameter xsi:type="EnumParameter" name="Action" value="OverwriteNoAlert" />


<Statement name="WriteScriptLogEntry" continueOnFail="false">

<Parameter xsi:type="StringParameter" name="Comment" value="#userslist#" />


<Statement description="Cleanup file" name="DeleteFile" continueOnFail="false">

<Parameter xsi:type="StringParameter" name="Path" value="#vAgentConfiguration.agentTempDir#\[login to view URL]" />




<Statement name="WriteScriptLogEntry" continueOnFail="false">

<Parameter xsi:type="StringParameter" name="Comment" value="The user list could not be retrieved from this endpoint." />






Need a freelancer with experience in this kind of work.

If you know what you are doing, please contact me. Thank you.

There will be on-going work of this nature in future projects also.

Skills: Powershell, Script Install, XML, Shell Script, Windows Desktop

See more: provide email accounts users joomla, script create user accounts file, bash script search log files send email, script create user accounts excel, powershell script add user excel file, joomla create user accounts script, powershell script create active directory user accounts excel, create local user account script multiple computers, powershell create user accounts excel, email address contact companies businesses yahoohotmaillisting net, script create local user server 2008, 2003 script create local user password, Looking for freelancer to help me search website and get the email address for company. The amount of data will be 15000-20000. , shell script to create user accounts in linux, find social media accounts with email address free, find social media accounts with email address, migrating ad mobile accounts to local user accounts, powershell script to disable inactive accounts in active directory, powershell script to get user logon information

About the Employer:
( 0 reviews ) Richmond, Australia

Project ID: #22188667

Awarded to:


I am good in powershell along with automation and development, please let me know if you are good to award this project to me

$275 AUD in 5 days
(30 Reviews)

11 freelancers are bidding on average $275 for this job


Hi, I don't have experience with Kaseya but I do have lots of Powershell experience. We can talk this trough and come up with a solution that will work. I'm open to new challenges and I think this project is interesti More

$300 AUD in 7 days
(41 Reviews)

Hey there, I'm a Systems Engineer with coding skills. I had developed tons of scripts using PowerShell. I can help. Regards.

$300 AUD in 7 days
(19 Reviews)

Hi, Alastair S.! I read the description of your project thoroughly. I understand your requirements initially and I have experiences of the field. I am a specialist of: * React.js, Angular for Front-end, * .NET Core More

$140 AUD in 2 days
(3 Reviews)

Hello, I am pleasure with your job as detailed. Thank you for the job posting. It’s a pleasure to meet you. I’d really like to work with you on this one if possible! I do have a couple of questions, but first I’d like More

$30 AUD in 1 day
(4 Reviews)

With respect to this project I would like to present myself as a candidate for your consideration. I have more than 10 years of IT experience. I have successfully completed few projects which involved Programming, scri More

$200 AUD in 7 days
(2 Reviews)

Hello there, Hope you are doing great. We are a small but excellent team of SharePoint developers and designers. We having expertise in every domain of SharePoint like SharePoint customization, custom development, mig More

$277 AUD in 3 days
(1 Review)

Hello, I'm Manuel, I can provide you perfect work as you looking for . we can discuss more in chat . I will be waiting for your response . I have very great experience about your project , if you want discuss more ple More

$140 AUD in 7 days
(0 Reviews)
$200 AUD in 5 days
(0 Reviews)

"DALLAS, TX based & AVAILABLE 24X7 TO TALK OVER CALL/CHAT" <<8+ Years of experience in Web technologies >> Hi, I have been through your project description and believe me we have sufficient amount skills to More

$1000 AUD in 7 days
(0 Reviews)

I have experience in powershell scripting for task automation in windows machines. We can use the wmi command to retrieve user accounts and output it in to txt file.. Relevant Skills and Experience 3 years experience More

$166 AUD in 7 days
(0 Reviews)