configuration - 在 600 台客户端计算机上安装 PowerShell - 推荐设置

标签 configuration powershell installation

我想在 600 台 Window XP 计算机上安装 PowerShell,并将其用作主要处理 shell。例如,用于替换批处理脚本、VB 脚本和其他一些小程序。安装过程没有问题。我认为我会遇到的一些问题是:

  1. 更改权限以允许 PowerShell 运行脚本

  2. PowerShell启动速度

  3. 将 PowerShell 用于带有 GPO 的登录/注销脚本

问题 2:有一个本应加速 PowerShell 的脚本,但它似乎需要以管理员身份运行(这当然不是普通用户可以做的事情)。 有没有人有过以这种方式使用 PowerShell 的经验?

最佳答案

为了加速 PowerShell 的启动,Jeffrey Snover(负责 PowerShell 的合作伙伴/架构师)提供了一个“Update-GAC”脚本 here .

基本上,它只是运行通过为 PowerShell 和 NGen'ing(将 IL 预编译为机器代码)加载的程序集。这确实加快了 PowerShell 的启动速度。

另一个技巧是使用 -nologo 和 -noprofile 开关运行 PowerShell。

这将跳过配置文件脚本和启动 Logo 。

有一个product for using PowerShell for logon/logoff scripts来自特种作战软件。还有其他方法可以做到这一点。

%windir%\system32\WindowsPowerShell\v1.0\powershell.exe -nologo -noprofile

关于configuration - 在 600 台客户端计算机上安装 PowerShell - 推荐设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/113664/

相关文章:

css - 在 SASS/Compass 输出前添加注释

sharepoint - Powershell 启动进程在远程 session 中被忽略

powershell - 在powershell 2.0中添加对dll的引用

excel - 如何在提供列表分隔符的同时使用 Powershell 在 Excel 中打开 CSV

r - lib 未指定 & loadNamespace 中出现错误

java - Spring Security Java 配置问题

scala - Scala 中的配置数据——我应该使用 Reader monad 吗?

javascript - 将配置传递给 Redux Action 创建者的正确方法

Android:无法将我的 ADT 版本更新到 17+

installation - 是否可以在 Inno Setup 的列表中显示安装操作?