Find Jobs
Hire Freelancers

Powershell - Remove user accounts that haven't been logged into in 90 days - 31/01/2023 00:47 EST

$250-750 USD

进行中
已发布大约 1 年前

$250-750 USD

货到付款
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.
项目 ID: 35875539

关于此项目

6提案
远程项目
活跃1 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作

关于客户

UNITED STATES的国旗
East Providence, United States
5.0
1
付款方式已验证
会员自12月 1, 2022起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。