我们目前正在运行 Windows Server 2012 R2。
我们已将计算机升级到 Windows 10,我们希望将设置打开文件资源管理器配置为来自 GPO。我们希望文件浏览器打开到This PC insted of Quick access。您可以在此图像上看到至极设置:(常规选项卡上的第一个设置)
http://cdn2.tekrevue.com/wp-content/uploads/2015/07/folder-options-windows-10-file-explorer.png
如何从 GPO 配置此设置?
编辑 :
现在我们将使用组策略编辑器应用注册表修改。但如果可能的话,真正的 GPO 或 GPP 会更好。
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
LaunchTo DWORD
1 = This PC
2 = Quick access
Run Code Online (Sandbox Code Playgroud) 首先让我说我根本不擅长编写脚本或对它们进行故障排除,因此我在这里:)
我试图在 Windows 域网络中找到所有使用静态 IP 地址的计算机,我在网上做了一个小研究,发现了这个 PowerShell 脚本,如下所示:
param (
[string]$LDAPFilter = '(name=*)',
[switch]$Verbose
)
Get-ADComputer -LDAPFilter $LDAPFilter |
% `
{
$name = $_.DNSHostName;
if ($Verbose.IsPresent)
{ Write-Host -ForegroundColor Yellow "Connecting to $name..." }
$ints = Get-WmiObject -ErrorAction SilentlyContinue -ComputerName $name `
-Query "select IPAddress, DefaultIPGateway from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE and DHCPEnabled=FALSE";
if ($ints -ne $null)
{
foreach ($int in $ints)
{
foreach ($addr in $int.IPAddress)
{
$ip = $null
if ($addr -match "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}")
{
$ip = …
Run Code Online (Sandbox Code Playgroud)