Loading... 在DC上启用登录会话记录,将该服务器上登录成功的用户,记录到“http://172.16.100.1/”站点; 例如:![image.png](https://cdn.xt6a.com/usr/uploads/2023/06/1721699925.png) 打开ISE编辑器,添加以下内容 ``` $date = Get-Date -Format yyyy/MM/dd $week = Get-Date -Format dddd $time = Get-Date -Format HH:mm:ss echo "LOGIN USER: $env:UserName <br>" > C:\wwwroot\index.html echo "LOGIN TIME:$date $week GMT $time" >> C:\wwwroot\index.html ``` ![image.png](https://cdn.xt6a.com/usr/uploads/2023/06/511821674.png) 创建任务计划 ![image.png](https://cdn.xt6a.com/usr/uploads/2023/06/2857771182.png) ![image.png](https://cdn.xt6a.com/usr/uploads/2023/06/3531199041.png) ![image.png](https://cdn.xt6a.com/usr/uploads/2023/06/3684446670.png) 最后修改:2023 年 07 月 20 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏