上一页 1 ··· 8 9 10 11 12 13 下一页
摘要: https://zhuanlan.zhihu.com/p/342686109 阅读全文
posted @ 2022-04-08 13:21 shenshu 阅读(23) 评论(0) 推荐(0)
摘要: python3 import os from glob import glob import subprocess as sp class PowerShell: # from scapy def __init__(self, coding, ): cmd = [self._where('Power 阅读全文
posted @ 2022-04-01 11:44 shenshu 阅读(1618) 评论(0) 推荐(0)
摘要: @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 阅读(66) 评论(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 阅读(236) 评论(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 阅读(34) 评论(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 阅读(193) 评论(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 阅读(160) 评论(0) 推荐(0)
摘要: Get-WindowsPackage -Online| select -First 1 |Format-List * 阅读全文
posted @ 2022-03-11 10:11 shenshu 阅读(59) 评论(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 阅读(141) 评论(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 阅读(204) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 下一页