Lukket

Powershell - Remove user accounts that haven't been logged into in 90 days

Job Description:

Script Overview:

I'm looking for a Powershell script to be created that can remove all evidence of user accounts (both local users and domain users), from a Windows computer, that haven't been logged into after 90 days.

My intention for this script is to run it automatically on a schedule to automate the cleaning and freeing up of storage space on individual computers by removing unused (greater than 90 days without being logged into) user accounts that are, or are not, part of a domain.

Script Requirements:

If a local user account is included in any other group, built-in group or custom group, *except* the Users group, then evidence of these accounts should NOT be deleted after 90 days.

If a domain user account is part of the Domain Admin group, evidence of these accounts should NOT be deleted after 90 days.

Examples:

> If a user account is in the Users group, this WOULD be deleted after 90 days not being logged into.

> If a user account is in the Remote Desktop Users group, this would NOT be deleted after 90 days of not being logged into.

> If a domain user account is not logged into after 90 days, then it WOULD be removed from the computer after 90 days.

> If a domain user account that's part of the Domain Admin group is not logged into after 90 days, this user would NOT be deleted after 90 days.

The following accounts should be included in the script as explicitly NOT to be deleted after 90 days:

> Match: Administrator

> Match: DefaultAccount

> Match: Guest

> Match: WDAGUtilityAccount

> Match: Public

> Match: NetworkService

> Match: Localservice

> Match: systemprofile

> Like: LocalAdmin*

> Like: SID *500

I need all evidence of user accounts (local and domain) that fit the above removal criteria to be removed in Windows, after 90 days of not being logged into, from the following areas:

> Computer Management > Local Users and Groups > Users

> C:\Users\

> Settings > Accounts > Other Users

> HKLM:\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\

IMPORTANT! When it comes to the domain users, I am NOT looking to delete these users from Active Directory as part of this script. I am ONLY looking to remove any evidence of the domain user having logged into the computer on which the script is running.

This script should be able to successfully run in the Windows 8, Windows 8.1, Windows 10, and Windows 11 environments, supporting a minimum of Powershell version 5.1.

Færdigheder: Powershell, Active Directory, Windows Skrivebord

Om klienten:
( 0 bedømmelser ) East Providence, United States

Projekt ID: #35383993

13 freelancere byder i gennemsnit $22/timen for dette job

sohailhost

Hi, I have the good knowledge of Azure, Office 365 and PowerShell scripting. Kindly send me a message so that we can discuss further regarding the requirements. I am systems administrator with over 12 years of experien Flere

$20 USD / time
(22 bedømmelser)
5.8
AwaisChaudhry

Hi Good afternoon , How are you? I just saw your job posting . I see you have been looking for someone experience with these technologies Windows Desktop, Powershell and Active Directory. I believe this is some thing Flere

$30 USD / time
(5 bedømmelser)
4.9
AhmadSameer

Hey there, I had developed tons of PowerShell scripts. I have the required skills and experience. I can develop your required script to remove inactive users for 90 days. Regards!

$25 USD / time
(15 bedømmelser)
4.6
Varshabhamare492

Hello, I am working as a PowerShell developer from last 8 years. Have created many such automation related to AD We can connect to work further on this

$30 USD / time
(7 bedømmelser)
3.2
nursultansaudir2

⭐⭐⭐⭐⭐⭐⭐Hello client! I have spent 11+ years on reversing projects including reversing c++ and system windows program and very familiar with Powershell and bash scripting. I would like to discuss more regarding project Flere

$20 USD / time
(1 bedømmelse)
2.8
freelancepraful

I can help you with powershell queries , please ping/connect me now I am available. Please check my reviews and project which I have completed. I can create powershell queries for server as per design, let me know when Flere

$15 USD / time
(2 bedømmelser)
2.4
savchukmykhailo3

Thank you for this wonderful opportunity. As I am a senior .NET developer, I have 6+ years of experience in C# WPF, XAML, Entity, LINQ, MSSQL and Oracle. I am also familiar with the MVC, MVVM, Singleton, IoC Container, Flere

$15 USD / time
(0 bedømmelser)
0.0
alimamacentre

♛♛♛ A Talented C/C++, C#/.NET(Winform/WPF), VB/VBA, Python, Qt, PyQT Developer ♛♛♛ I HAVE CONFIDENT TO COMPLETE YOUR PROJECT "" dear, you are welcome! i have rich experienced of C/C++(VC++, Qt), C#/.NET(Winform, WP Flere

$20 USD / time
(0 bedømmelser)
0.0
yusufjameel123

I have experience developing such a script. I understand that currently it's hard to determine the last usage date of any user account, but I have successfully implemented such a script and could help you with it. Let Flere

$25 USD / time
(0 bedømmelser)
0.0
inigoherrerag

Hello⭐⭐⭐⭐⭐I am senior Reverse Engineer & Shell Script ,C,C++ and C# ,Python Developer⭐⭐⭐⭐⭐ I've seriously read your post and I have understood what you need. I am sure that I can be the best developer who can perfect Flere

$20 USD / time
(0 bedømmelser)
0.0
dmen91

Hi there, I am writing to propose my services as a PowerShell script developer for your upcoming project. I have experience creating and implementing PowerShell scripts for various purposes, and I am confident that my Flere

$15 USD / time
(0 bedømmelser)
0.0