03 2022 档案

摘要:@echo off for %%i in (c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t) do (if exist %%i:\ (dir %%i:\ /s /b /a-D|find /I "spring-beans")) 阅读全文
posted @ 2022-03-31 14:15 shenshu 阅读(60) 评论(0) 推荐(0) 编辑
摘要:实验环境 域账号zhangsan、lisi 域用户组group1中有zhangsan、lisi 共享主机目录结构: d:\share\profiles\lisi d:\share\profiles\zhangsan 共享文件夹profiles 实验目的 用户zhangsan只能在共享目录profil 阅读全文
posted @ 2022-03-29 11:16 shenshu 阅读(223) 评论(0) 推荐(0) 编辑
摘要:使用C#中的List<T> $objlist=New-Object System.Collections.Generic.List[System.String] $objlist.Add("Hello") $objlist.Add("World") foreach ($item in $objlis 阅读全文
posted @ 2022-03-13 13:26 shenshu 阅读(30) 评论(0) 推荐(0) 编辑
摘要:Get-ADUser导出用户 导出csv Get-ADUser -Filter * -SearchBase "OU=22users,DC=test,DC=com" |Select SamAccountName,DistinguishedName |Export-csv -Path c:\1\resu 阅读全文
posted @ 2022-03-13 13:05 shenshu 阅读(171) 评论(0) 推荐(0) 编辑
摘要:aa.exe 代码 for (int i = 1; i <= 5; i++) { Console.WriteLine("hello world:{0}",i); System.Threading.Thread.Sleep(1000); } aa.exe 返回结果 hello world:1 hell 阅读全文
posted @ 2022-03-13 11:26 shenshu 阅读(138) 评论(0) 推荐(0) 编辑
摘要:Get-WindowsPackage -Online| select -First 1 |Format-List * 阅读全文
posted @ 2022-03-11 10:11 shenshu 阅读(54) 评论(0) 推荐(0) 编辑
摘要:在使用Windows Powershell ISE 编写脚本的时候可能遇到对象无法智能提示属性的问题,例如下面代码无法智能提示$item.InstallTime $a=Get-WindowsPackage -Online foreach ($item in $a) { if ($item.Insta 阅读全文
posted @ 2022-03-10 21:26 shenshu 阅读(107) 评论(0) 推荐(0) 编辑
摘要:将所有计算机添加到受信任主机列表 set-item wsman:localhost\client\trustedhosts -Force -value * 远程批量读取c:\c.txt $account = "zhangsan" $password = '!@#$%54321' $secpwd = 阅读全文
posted @ 2022-03-09 16:41 shenshu 阅读(180) 评论(0) 推荐(0) 编辑
摘要:Function myfun() { $cmd="ipconfig | findstr "+'"'+"IPv4"+'"' $ipaddr = iex $cmd if($ipaddr -isnot [Array]) { $ip=$ipaddr.Split(":")[1] return $ip.Trim 阅读全文
posted @ 2022-03-09 12:37 shenshu 阅读(165) 评论(0) 推荐(0) 编辑
摘要:https://www.pstips.net/powershell-online-tutorials https://zhuanlan.zhihu.com/p/76708298 微软ps教程 https://www.bilibili.com/video/BV1sx411p7xt?p=8 下载文件 h 阅读全文
posted @ 2022-03-08 19:35 shenshu 阅读(40) 评论(0) 推荐(0) 编辑
摘要:1.浏览器安装Tampermonkey插件 2.安装bilibili视频下载插件 https://greasyfork.org/zh-CN/scripts/by-site/bilibili.com 3.打开B站,点视频下方的“请求地址”,再点击“下载视频” PS:批量下载功能不能用,只能点一次请求地 阅读全文
posted @ 2022-03-07 20:45 shenshu 阅读(1591) 评论(0) 推荐(0) 编辑
摘要:linux dmidecode -s system-product-name Windows systeminfo |findstr /i "System Module" 阅读全文
posted @ 2022-03-04 09:16 shenshu 阅读(174) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示