会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
2022年3月11日
查看对象属性
摘要: Get-WindowsPackage -Online| select -First 1 |Format-List *
阅读全文
posted @ 2022-03-11 10:11 shenshu
阅读(63)
评论(0)
推荐(0)
2022年3月10日
PowerShell 无法智能提示
摘要: 在使用Windows Powershell ISE 编写脚本的时候可能遇到对象无法智能提示属性的问题,例如下面代码无法智能提示$item.InstallTime $a=Get-WindowsPackage -Online foreach ($item in $a) { if ($item.Insta
阅读全文
posted @ 2022-03-10 21:26 shenshu
阅读(156)
评论(0)
推荐(0)
2022年3月9日
PowerShell+WinRM 批量远程操作
摘要: 将所有计算机添加到受信任主机列表 set-item wsman:localhost\client\trustedhosts -Force -value * 远程批量读取c:\c.txt $account = "zhangsan" $password = '!@#$%54321' $secpwd =
阅读全文
posted @ 2022-03-09 16:41 shenshu
阅读(209)
评论(0)
推荐(0)
PowerShell获取IPv4地址
摘要: 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
阅读(190)
评论(0)
推荐(0)
2022年3月8日
Powershell 学习资源
摘要: 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
阅读(46)
评论(0)
推荐(0)
2022年3月7日
B站下载视频
摘要: 1.浏览器安装Tampermonkey插件 2.安装bilibili视频下载插件 https://greasyfork.org/zh-CN/scripts/by-site/bilibili.com 3.打开B站,点视频下方的“请求地址”,再点击“下载视频” PS:批量下载功能不能用,只能点一次请求地
阅读全文
posted @ 2022-03-07 20:45 shenshu
阅读(1641)
评论(0)
推荐(0)
2022年3月4日
判断操作系统是不是虚拟机
摘要: linux dmidecode -s system-product-name Windows systeminfo |findstr /i "System Module"
阅读全文
posted @ 2022-03-04 09:16 shenshu
阅读(192)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
公告