Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
如何获取有关 Powershell 脚本参数的帮助消息?
我有一个 powershell 脚本 setup ps1 我们将其用作开发环境设置脚本的入口点 它需要一个参数 param Parameter Position 0 HelpMessage The targets to run Alias
PowerShell
powershell20
如何执行远程计算机上可用的 powershell 脚本?
我试图在远程计算机上执行脚本 I did Enable PSremoting 在远程机器中 我放置了一个脚本hello ps1在远程机器中 我的客户端计算机是Windows XP 远程计算机是Windows 2003 然后我试图从我的客户端
PowerShell
powershell20
powershellremoting
powershell函数输出到变量
我在 powershell 2 0 中有一个名为 getip 的函数 它可以获取远程系统的 IP 地址 function getip strComputer computername colItems GWMI cl Win32 Netwo
PowerShell
powershell20
如何在powershell中获取登录用户的电子邮件
使用 Vbscript 我们获取当前用户的电子邮件 ID 它就像下面几行一样简单 Option Explicit Dim objUser objADSysInfo Set objADSysInfo CreateObject ADSystem
PowerShell
LDAP
powershell20
如何从用户列表中查找PC
我需要一些帮助 我不太确定这是否可能 我有清单samAccountName in csv文件 我需要从中获取他们的 PC 名称和 IP 我不太确定如何构建这样的脚本 一种方法是循环访问环境中的所有计算机并测试每台计算机 这当然会是SLOW
PowerShell
activedirectory
powershell20
powershell30
Stop-Service Cmdlet 无法打开存在的服务
我正在尝试编写一个 PowerShell 脚本来停止本地计算机上的服务 当我运行 get service cmdlet 时 它按预期工作 当我使用 stop service cmdlet 时 出现错误 指出不存在具有我指定名称的服务 如果这
PowerShell
powershell20
如何通过 UNC 加速 Powershell Get-Childitem
DIR or GCI在 Powershell 中很慢 但在 CMD 中很快 有什么办法可以加快这个速度吗 在 CMD exe 中 经过亚秒级延迟后 其响应速度与 CMD 窗口可以跟上的速度一样快 dir remote server doma
PowerShell
powershell20
使用 PowerShell 从文本文件中删除包含字符串的行
我尝试使用以下 PowerShell 代码从包含部分字符串的文本文件中删除所有行 Get Content C new temp txt Select String pattern H 159 notmatch Out File C new
PowerShell
powershell20
powershell30
如何在哈希表末尾添加键/值对?
我正在尝试使用 PowerShell 脚本计算代码计数 我在互联网上找到了一个脚本 并尝试在末尾添加总行 我已经添加了栏目 CountHash Add Total Total 在最后 Param string path string out
PowerShell
powershell20
在 PowerShell 中调用通用静态方法
如何在 Powershell 中调用自定义类的通用静态方法 给定以下课程 public class Sample public static string MyMethod
c
PowerShell
generics
powershell20
导出到excel的脚本
我有以下脚本 寻求帮助将输出转换为 Excel 格式 servers get content c list txt foreach server in servers server command quser server server i
PowerShell
scripting
powershell20
powershellremoting
powershell30
使用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
1
2
3
4
5
6
...8
»