<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>批处理之家 - &lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</title>
    <link>http://www.bathome.net/forum-46-1.html</link>
    <description>Latest 20 threads of &lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</description>
    <copyright>Copyright(C) 批处理之家</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sat, 02 May 2026 09:26:25 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://www.bathome.net/static/image/common/logo_88_31.gif</url>
      <title>批处理之家</title>
      <link>http://www.bathome.net/</link>
    </image>
    <item>
      <title>如何判断硬盘是hdd还是ssd?</title>
      <link>http://www.bathome.net/thread-95133-1-1.html</link>
      <description><![CDATA[我想用powershell代码判断硬盘是否是机械硬盘, 但是使用下面的代码, 机械硬盘返回如下:
系统盘 C: 所在磁盘 ST3160811AS 原始 MediaType: Unspecified]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>小白龙</author>
      <pubDate>Mon, 27 Apr 2026 10:53:39 +0000</pubDate>
    </item>
    <item>
      <title>为啥host, pwd不加$也能输出</title>
      <link>http://www.bathome.net/thread-95126-1-1.html</link>
      <description><![CDATA[为啥在powershell命令行窗口, host, pwd不加$也能输出结果? 和$host, $pwd区别在哪里?]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>小白龙</author>
      <pubDate>Sun, 26 Apr 2026 05:09:04 +0000</pubDate>
    </item>
    <item>
      <title>怎样用powershell代码把桌面图标按名称排序并刷新一下</title>
      <link>http://www.bathome.net/thread-95115-1-1.html</link>
      <description><![CDATA[我删除了桌面上的几个图标, 图标间有空距了, 我在桌面上按下右键从菜单中选择排列方式--&gt;&gt;名称, 然后图标就重新整理了一下, 图标间就没有空距了, 我想用powershell来实现这个刷新操作, 怎样实现? 用ai, 没有实现. ...]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>小白龙</author>
      <pubDate>Tue, 21 Apr 2026 11:00:50 +0000</pubDate>
    </item>
    <item>
      <title>怎样用powershell代码把IE快捷方式创建在桌面的右上角</title>
      <link>http://www.bathome.net/thread-95099-1-1.html</link>
      <description><![CDATA[怎样用powershell代码把IE快捷方式创建在桌面的右上角? 试了几个ai都没有成功]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>小白龙</author>
      <pubDate>Mon, 13 Apr 2026 00:50:30 +0000</pubDate>
    </item>
    <item>
      <title>BootPartition=TRUE为啥无输出</title>
      <link>http://www.bathome.net/thread-95078-1-1.html</link>
      <description><![CDATA[下面的代码, 在我的电脑上有输出(pwsh7), 但是在另一台电脑(powershell5.1)上报后面的错误, 按我的理解, 电脑上不都有启动分区吗?



错误信息:
wmic : GET 表达式无效。
所在位置 行:2 字符: 1
+ wmic partition where \&quot;BootPartition=TRUE\&quot; get Index, DiskIndex, Siz ...]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>小白龙</author>
      <pubDate>Thu, 09 Apr 2026 21:27:10 +0000</pubDate>
    </item>
    <item>
      <title>怎样用powershell打开edge浏览器的扩展页面?</title>
      <link>http://www.bathome.net/thread-75827-1-1.html</link>
      <description><![CDATA[怎样用powershell打开edge浏览器的扩展页面? 下面代码不起作用.]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>小白龙</author>
      <pubDate>Mon, 09 Mar 2026 13:38:13 +0000</pubDate>
    </item>
    <item>
      <title>怎样将notepad4的powershell语法着色和powershell ISE统一?</title>
      <link>http://www.bathome.net/thread-75822-1-1.html</link>
      <description><![CDATA[怎样将notepad4的powershell语法着色和powershell ISE统一? 最近在使用notepad4, 替换了系统内置的notepad, 感觉不错, 

但是它的内置的powershell代码的语法着色和ISE不一致, 想统一下, 怎样实现呢?]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>小白龙</author>
      <pubDate>Tue, 03 Mar 2026 11:41:59 +0000</pubDate>
    </item>
    <item>
      <title>在执行powershell代码的过程中异步显示一个图片的窗口, 怎样实现</title>
      <link>http://www.bathome.net/thread-75818-1-1.html</link>
      <description><![CDATA[在执行powershell代码的过程中异步显示一个图片的窗口, 怎样实现? 我不想用开一个powershell.exe的进程的方式实现,]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>小白龙</author>
      <pubDate>Fri, 27 Feb 2026 09:46:13 +0000</pubDate>
    </item>
    <item>
      <title>怎样修改powershell ise的F5执行方式?</title>
      <link>http://www.bathome.net/thread-75813-1-1.html</link>
      <description><![CDATA[https://www.reddit.com/r/PowerShell/comments/nturld/did_you_know_that_the_ise_has_a_ton_of_hidden/?tl=zh-hant
我在上面贴子发现了下面的代码, 原来powershell ISE是可以自定义的, 
现在我有一个功能需求, 就是在按下F5后, 先执行一下cls把输出窗口中的已前的输出 ...]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>小白龙</author>
      <pubDate>Mon, 23 Feb 2026 03:09:15 +0000</pubDate>
    </item>
    <item>
      <title>powershell ise在打开utf8无bom编码的.ps1文件时, 里面的中文会乱码, 怎样解决</title>
      <link>http://www.bathome.net/thread-75812-1-1.html</link>
      <description><![CDATA[powershell ise在打开utf8无bom编码的.ps1文件时, 里面的中文会乱码, 怎样解决?

如何在powershell ISE中设置默认编码为UTF8?]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>小白龙</author>
      <pubDate>Sat, 21 Feb 2026 22:01:01 +0000</pubDate>
    </item>
    <item>
      <title>[分享]Powershell基金实时涨跌及盈利数据查看15秒刷新一次</title>
      <link>http://www.bathome.net/thread-75800-1-1.html</link>
      <description><![CDATA[可以通过“# 基金配置”里面的信息来添加自己的持有信息，等号左边是数字代码，右边是持有金额。预估金额每天相差出入比较少，默认自动15秒刷新一次。]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>yakeyun</author>
      <pubDate>Tue, 10 Feb 2026 05:55:01 +0000</pubDate>
    </item>
    <item>
      <title>求大佬推荐图片识别方案（高效、准确）</title>
      <link>http://www.bathome.net/thread-75795-1-1.html</link>
      <description><![CDATA[需要提取图片中的文字（中文），想找个高效准确的方案]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>new_user</author>
      <pubDate>Mon, 09 Feb 2026 02:26:00 +0000</pubDate>
    </item>
    <item>
      <title>pwsh.exe支持的最大的命令长度是多少?</title>
      <link>http://www.bathome.net/thread-75773-1-1.html</link>
      <description><![CDATA[pwsh.exe支持的最大的命令长度是多少? 和powershell.exe支持的长度一样吗? 我不想使用临时文件的方式执行.ps1代码, 还有什么方法能突破限制吗?

这是Ai回答的:
pwsh.exe 命令行参数限制：Windows上约32767个字符（实际 ~32600）
如何用代码测试呢? 代码要不断的增加, 直 ...]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>小白龙</author>
      <pubDate>Sat, 24 Jan 2026 00:04:33 +0000</pubDate>
    </item>
    <item>
      <title>有用power automate desktop的大佬吗? 登陆太慢了</title>
      <link>http://www.bathome.net/thread-75745-1-1.html</link>
      <description><![CDATA[有用power automate desktop的大佬吗? 登陆太慢了, 等了10来分钟才上去, 大家是怎样解决的?

另外, 大家是怎样调用流程的? 这软件话说是免费, 但是如果不花钱, 只能手动或热键来启动流程吧, 用命令行好像也收费, 各种限制. ...]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>小白龙</author>
      <pubDate>Sun, 04 Jan 2026 23:39:09 +0000</pubDate>
    </item>
    <item>
      <title>Powershell 创建计划任务的问题 已解决</title>
      <link>http://www.bathome.net/thread-75710-1-1.html</link>
      <description><![CDATA[需求
1 当前用户登录后延迟3秒运行
2 同一个触发器，任务每5分钟重复运行，无限制
如图


但怎么折腾都不行 我只能折中，两个触发器
触发器1  当前用户登录后延迟3秒运行
触发器2  首次运行后 每5分钟重复运行 




我的脚本如下已解决
通过COM接口 来设置https://learn ...]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>qq8899399</author>
      <pubDate>Wed, 10 Dec 2025 15:01:40 +0000</pubDate>
    </item>
    <item>
      <title>PowerShell下面这样不能展开变量</title>
      <link>http://www.bathome.net/thread-75682-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>小白龙</author>
      <pubDate>Sun, 02 Nov 2025 13:50:05 +0000</pubDate>
    </item>
    <item>
      <title>pwsh7在字面量字符串上有改进吗?</title>
      <link>http://www.bathome.net/thread-75680-1-1.html</link>
      <description><![CDATA[下面的字符串@\'\'@中还有同类的, 在ps5就报错了, 在pwsh7中有改进吗?]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>小白龙</author>
      <pubDate>Sat, 01 Nov 2025 02:34:53 +0000</pubDate>
    </item>
    <item>
      <title>怎样关闭vsc中powershell扩展的别名提示?</title>
      <link>http://www.bathome.net/thread-75674-1-1.html</link>
      <description><![CDATA[最近在使用vsc来编辑pwsh代码了, 但是有个别名提示特别繁人, 怎是不知道在哪里关闭, 求路过大佬指点, 多谢

或者不关闭提示, 按tab能补全也行, 有什么插件或热键吗?]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>小白龙</author>
      <pubDate>Thu, 30 Oct 2025 01:53:14 +0000</pubDate>
    </item>
    <item>
      <title>PowerShell脚本Write-Output和Write-Host异同？</title>
      <link>http://www.bathome.net/thread-75672-1-1.html</link>
      <description><![CDATA[]PowerShell脚本Write-Output和Write-Host异同]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>tims2025</author>
      <pubDate>Mon, 27 Oct 2025 09:02:16 +0000</pubDate>
    </item>
    <item>
      <title>powershell 联网脚本 中文乱码</title>
      <link>http://www.bathome.net/thread-75618-1-1.html</link>
      <description><![CDATA[通过win激活代码 irm https://get.activated.win | iex
发现脚本都可以放在云端，但是如果有是中文一直是乱码，

下面是云端代码：云端uft-8地址：https://www.htmlonline.cn/utf8
 云端ansi地址：https://www.htmlonline.cn/ansi

本地管理员powershell 运行：
irm htt ...]]></description>
      <category>&lt;font color=red&gt;PowerShell求助&amp;讨论&lt;/font&gt;</category>
      <author>bangyou</author>
      <pubDate>Thu, 23 Oct 2025 09:02:43 +0000</pubDate>
    </item>
  </channel>
</rss>