Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
使用powershell获取csv文件中的特定单元格值
我是 powershell 的新手 不经常使用它 我需要使用 powershell 从 csv 文件输出单元格 A5 的值 我的文件 col1 col2 col3 col4 1002 1005 1006 1007 需要 A1 单元格中的值
shell
PowerShell
powershell20
powershell 2.0 命令行重定向
我正在寻找以下差异的解释 给出以下 powershell 脚本foo ps1 write host normal write error error write host yay 运行它 C gt powershell foo ps1 gt
Windows
PowerShell
commandline
fileio
powershell20
如何创建Windows服务来运行powershell脚本?
我有无限循环 PowerShell 测试目的 脚本 我想将其作为 Windows Server 2008 R2 标准 中的服务运行 我使用以下命令来创建 Windows 服务 sc exe create My PS1Service binP
Windows
PowerShell
windowsservices
powershell20
windowsserver2008r2
如何在PowerShell中将数据导出为CSV?
foreach computer in computerlist if Test Connection Cn computer BufferSize 16 Count 1 ea 0 quiet foreach file in REMOVE
PowerShell
powershell20
确定 Windows 当前是否正在播放声音
所以我对这个问题思考了一段时间 但我不知道解决这个问题的正确方法是什么 我想使用以下命令确定 Windows 是否在某个时间输出声音Powershell脚本 我可以确定音频驱动程序是否有错误 但我无法确定系统是否正在播放声音 我看了看 NE
NET
Windows
PowerShell
windows7
powershell20
如何使用 Add-Type 添加具有 System.Windows.Forms 命名空间的 C# 代码?
我该如何使用Add Type添加 C 代码System Windows Forms命名空间 我尝试了这个命令 Add Type TypeDefinition using System using System Windows Forms n
c
NET
PowerShell
powershell20
导入-CSV GroupBy Sum
我一直试图从 csv 文件获取有意义的输出 原始输入看起来像这样 Col1 Col2 Col3 Col4 a 2 b z a 2 c x a 1 d y e 1 f s e 2 g t h 1 k r 我正在尝试实现以下输出 不包括 col
PowerShell
scripting
powershell20
在Powershell中,如何等待并行作业完成后再继续?
基于如何并行执行PowerShell函数多次 https stackoverflow com questions 12766174 how to execute a powershell function several times in
PowerShell
powershell20
如何访问远程会话的 InputObject 上的 NoteProperties
我访问时遇到困难PSObject定义了 NoteProperties 这些属性通过以下方式传递到远程会话Invoke Command 我为此目的构建对象的原因是我需要访问远程会话中的两条单独的信息 但 PowerShell 仅提供了一条信息
PowerShell
powershell20
powershellremoting
如何查找 mstsc 的使用时间以及由谁使用?
我们的团队地理位置分散 他们会使用远程桌面连接许多虚拟机 我想了解谁正在访问远程桌面会话以及使用了多长时间 我尝试用 powershell 来实现 我编写了一个脚本 用户将在其中使用 powershell 调用 mstsc 它将记录谁已登录
PowerShell
powershell20
Rdp
mstsc
通过 powershell 从 txt 文件中获取今天日期的特定文本
我有一个文本文件 与此类似 This is a sample data This is a sample data This is a sample data Sat Jun 06 08 17 01 2015 WARNING Cannot
PowerShell
powershell20
powershell30
改变排序对象行为
使用映射到 Linux 共享的驱动器时 文件名区分大小写 PowerShell 按预期处理此问题 但我想以类似于 C 语言环境中使用的排序顺序的方式对输出进行排序 这意味着按字符值从 U 0000 一直到 U 升序排序10FFFF 例如 0
PowerShell
powershell20
如何从批处理文件执行PowerShell命令?
我有一个 PowerShell 脚本 用于将网站添加到 Internet Explorer 中的受信任站点 set location HKCU Software Microsoft Windows CurrentVersion Intern
PowerShell
commandline
batchfile
powershell20
检查 Powershell 中的范围
我正在尝试编写一个脚本来获取计算机的 IP 地址并检查它是否属于特定的 IP 范围 例如 如果机器的 IP 是 192 168 0 5 脚本将检查它是否在 192 168 0 10 到 192 168 0 20 范围内 到目前为止 我的脚本
PowerShell
powershell20
使用 powershell 刷新 Excel 工作表
我在一个名为 test 的文件夹中有 10 个不同的 Excel 工作表 我想使用 Windows Power shell 脚本刷新数据连接和数据透视表中的数据 该过程使用 for 每个循环打开每个文件 然后在文件中选择 powerpivo
Excel
PowerShell
powershell20
powerpivot
powershell40
哈希表和键顺序
有没有办法在添加键时保持哈希表中键的顺序 就像推 弹出机制一样 Example hashtable hashtable Add Switzerland Bern hashtable Add Spain Madrid hashtable Ad
PowerShell
Sorting
HashTable
powershell20
PowerShell 从远程 PC 删除桌面项目
我有 200 台电脑需要删除一些特定的图标 我使用 ComputerName 创建了一个 CSV 文件 每行 1 个名称 我有另一个文件 其中包含需要从桌面删除的图标的文件名 Shortcut1 lnk 等 该其他文件也是 CSV 每行 1
PowerShell
powershell20
powershell30
在 Windows 7 上使用 powershell 2.0 下载文件
这是我下载文件的脚本 我替换了下载的网址 因为它是一个私有云站点 我到处搜索 他们都说这是在旧版本的 PS 中下载的正确方法 但我不断收到错误 Exception calling DownloadFile with 2 argument s
powershell20
Download
如何比较两个数组,删除相似的项目,而不迭代整个数组?
是否可以比较两个数组并删除相等的值 如果它们位于相同的索引 而不需要迭代两个数组 这是一个例子 array1 1 2 3 4 5 6 7 23 44 array2 1 1 3 4 5 7 6 23 45 array3 sudo compar
Arrays
PowerShell
find
Compare
powershell20
在 PowerShell 中拆分不带分隔符的字符串
我想分割一个字符串并将结果标记存储在变量中 例如我的字符串是160519 我想以一种方式分割它16 05 and 19存储在单独的变量中 我尝试使用 split 但是因为我的字符串没有分隔符 所以我发现很难剪切字符串 如果使用正则表达式 实
string
PowerShell
split
powershell20
«
1
2
3
4
5
6
...9
»