vicuna-13b· LMSYS
from Arena Human Preference 55K
Please give me a script in powershell that restarts the computer daily at 3am
- User
Please give me a script in powershell that restarts the computer daily at 3am
- Assistant
Here is a script in PowerShell that can restart a computer daily at 3am:
code# Set the time for the restart $time = "03:00" # Get the current time $currentTime = Get-Date # Check if the current time is the desired restart time if ($currentTime.TimeOfDay -eq $time) { # Restart the computer Restart-Computer }To schedule this script to run daily at 3am, you can use the Task Scheduler in Windows. Here is how you can do this:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.