在 Windows 10 上启动 PowerShell 7。
PowerShell 7.0.0
Copyright (c) Microsoft Corporation. All rights reserved.
https://aka.ms/powershell
Type 'help' to get help.
Warning: PowerShell detected that you might be using a screen reader and has disabled PSReadLine for compatibility purposes. If you want to re-enable it, run 'Import-Module PSReadLine'.
Run Code Online (Sandbox Code Playgroud)
PowerShell 启动时不显示警告,因为我没有使用屏幕阅读器。
运行指定的命令Import-Module PSReadLine
。自从我第一次想了解为什么会出现警告以来,我就没有运行过它。
$PSVersionTable
输出:Name Value
---- -----
PSVersion 7.0.0
PSEdition Core
GitCommitId 7.0.0
OS Microsoft Windows 10.0.18362
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, …
Run Code Online (Sandbox Code Playgroud) 我有一个 Windows 7 映像,我打算在整个企业中部署它。为简单起见,我打算在每台机器上安装 BGInfo 并在每次用户登录时更新它。据我所知,当 BGInfo 创建配置文件时,该文件包含每个帐户的本地变量 - 因此配置文件仅适用于创建它的用户帐户。
有没有人知道如何使这些配置文件“通用”,以便 BGInfo 在登录时适用于所有帐户?目前,我在 C 驱动器上保存了 BGInfo 应用程序和 BGInfo 配置文件,并且我编写了一个批处理文件,该文件存储在“所有用户/开始菜单/启动”目录中(每次计算机上的任何用户登录时都会执行) in),但这仅适用于创建配置文件的帐户。