A powershell script to be run as a service on a server. The script should find all user…
- User
A powershell script to be run as a service on a server. The script should find all user accounts that have passwords about to expire, and the email them a warning. It should also output a log.
Assistant
Here's a PowerShell script that you can use to find all user accounts with passwords that are about to expire and send a warning email to their email address:
code
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.