上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 94 下一页
  2018年3月16日
摘要: m='aaa4a' d = dict(name=m) print d['name'] 阅读全文
posted @ 2018-03-16 18:39 momingliu11 阅读(1094) 评论(0) 推荐(0)
  2018年3月12日
摘要: #取出每个数据库最近30分钟登录的用户数量 Add-PSSnapin microsoft.exch* $dbs = Get-MailboxDatabase |sort server foreach ($db in $dbs) { $uinfor = Get-MailboxStatistics -database $db| ? {$_.LastLogonTime -ne $null } | ... 阅读全文
posted @ 2018-03-12 18:12 momingliu11 阅读(310) 评论(0) 推荐(0)
  2018年2月8日
摘要: C:\Windows\System32\LogFiles\HTTPERR 阅读全文
posted @ 2018-02-08 16:48 momingliu11 阅读(434) 评论(0) 推荐(0)
  2018年1月29日
摘要: #根据Pager过滤域用户 $pagers = gc D:\Operations\tmp\u.txt foreach ($p in $pagers) { $user = Get-ADUser -Filter "pager -eq '$($p)'" -Properties pager -searchb 阅读全文
posted @ 2018-01-29 15:35 momingliu11 阅读(3050) 评论(0) 推荐(0)
  2017年12月19日
摘要: 边界远程Tomcat服务器的Tomcat配置文件,如下: vi /etc/init.d/tomcatd8_test /etc/init.d/tomcatd8_test restart 解释: -Dcom.sun.management.jmxremote 启用JMX远程监控-Djava.rmi.ser 阅读全文
posted @ 2017-12-19 10:50 momingliu11 阅读(1336) 评论(0) 推荐(0)
  2017年11月20日
摘要: $cc = import-csv D:\Powershell\Tauba.csv foreach ($c in $cc) { $c.username $pwd = $c.password get-aduser $c.username | Set-ADAccountPassword -Reset -NewPassword (ConvertTo-SecureString -AsPlainText... 阅读全文
posted @ 2017-11-20 10:52 momingliu11 阅读(1928) 评论(0) 推荐(0)
  2017年9月5日
摘要: 浏览器报错的证书链的问题,我们一般会有三种证书: RootCA.crt(rCA,被信任的根证书)、IntermediateCA.crt(mCA,某些厂商有多个中间证书)、server.crt(sCA,通过CSR签下来的证书),某些厂商的rCA和mCA是需要用户自己下载的。为了让浏览器能够信任我们的证 阅读全文
posted @ 2017-09-05 16:28 momingliu11 阅读(7988) 评论(0) 推荐(0)
  2017年3月2日
摘要: Windows 2012桌面显示“我的电脑” rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0 阅读全文
posted @ 2017-03-02 15:31 momingliu11 阅读(345) 评论(0) 推荐(0)
  2017年2月21日
摘要: #定义邮件服务器 $smtpServer = "mail.xx.com" $smtpUser = "sender" $smtpPassword = "password" $mail = New-Object System.Net.Mail.MailMessage #定义发件人邮箱地址、收件人邮箱地址 阅读全文
posted @ 2017-02-21 17:43 momingliu11 阅读(2844) 评论(1) 推荐(0)
  2017年1月22日
摘要: #从邮件组发送列表中删除已离职人员 Add-PSSnapin microsoft.exchange* Import-Module activedirectory $RemoveGroupSenderslog = "D:\Scripts\Remove.log" #从通讯组发送列表中删除已离职人员 $txzs = Get-DistributionGroup foreach ($g in $t... 阅读全文
posted @ 2017-01-22 15:03 momingliu11 阅读(626) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 94 下一页