AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-315813

SimonS's questions

Martin Hope
SimonS
Asked: 2021-04-12 23:58:28 +0800 CST

如何检查 SQL Server 2019 Standard 是否在 Server Core 上激活?[复制]

  • 1
这个问题在这里已经有了答案:
你能帮我解决我的软件许可问题吗? (5 个回答)
去年关闭。

我通过从我们的MSDN下载的 ISO 在 Windows Server 2019 Core 上安装了 SQL Server 2019 Standard 。当我下载它时,它特别指出“不需要产品密钥”。

由于我将它安装在 Server Core 上,因此我遵循了这些说明。

如果您查看说明,则/PID需要一个参数来告诉设置,要安装什么版本的 SQL Server(例如 Express、Developer、Standard 等)

但是,我没有找到 SQL Server 2019 标准版的产品 ID。在 MSDN、VLSC 和 Internet 上都没有。

指令指出:

SQL Server 设置控制 /PID

指定 SQL Server 版本的产品密钥。如果未指定此参数,则使用评估。

这让我相信我的 SQL Server 现在处于评估模式。我现在想检查一下,如果我的 SQL Server 获得许可,以及它是如何获得许可的(我应该拥有 4 核的许可)。

事情有点复杂,因为另一个具有 4 核 SQL Server 的虚拟机,在另一个许可协议中获得许可,运行在同一台物理机器上,我读到物理核心必须获得许可,而不是虚拟机核心。我的新 VM 上的新 SQL Server 现在是否也使用与其他 VM 相同的许可证?

但是,我的问题是我不知道我的 SQL Server 现在是否已获得许可。我运行了以下查询:

PS C:\Users\Administrator\Documents> Invoke-SqlCmd -Query "SELECT @@Version" | fl *


Column1   : Microsoft SQL Server 2019 (RTM) - 15.0.2000.5 (X64)
                Sep 24 2019 13:48:23
                Copyright (C) 2019 Microsoft Corporation
                Standard Edition (64-bit) on Windows Server 2019 Standard 10.0 <X64> (Build 17763: ) (Hypervisor)

RowError  :
RowState  : Detached
Table     : {}
ItemArray : {Microsoft SQL Server 2019 (RTM) - 15.0.2000.5 (X64)
                Sep 24 2019 13:48:23
                Copyright (C) 2019 Microsoft Corporation
                Standard Edition (64-bit) on Windows Server 2019 Standard 10.0 <X64> (Build 17763: ) (Hypervisor)
            }
HasErrors : False

还有这个:

PS C:\Users\Administrator\Documents> Invoke-SqlCmd -Query "SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')" | fl *


Column1   : 15.0.2000.5
Column2   : RTM
Column3   : Standard Edition (64-bit)
RowError  :
RowState  : Detached
Table     : {}
ItemArray : {15.0.2000.5, RTM, Standard Edition (64-bit)}
HasErrors : False

但是,我现在很困惑。它说它是 SQL Server 的标准版,这似乎是正确的,但是它的许可证是从哪里获得的呢?它甚至有执照吗?它没有具体说。它怎么知道,它可以使用多少个内核?

谢谢你的帮助!

windows sql-server windows-server-core windows-server-2019
  • 1 个回答
  • 6108 Views
Martin Hope
SimonS
Asked: 2021-02-04 05:32:47 +0800 CST

为什么我的 Hyper-V 网络在我的主机服务器上获得 IP?

  • 1

我设置了一个新的 Hyper-V 主机服务器。我在这台服务器上运行两个虚拟机,每个虚拟机都有自己的虚拟网络,这是一个 NIC 团队。以下是球队:

[HVHost]: PS C:\Users\xy\Documents> Get-NetLbfoTeam


Name                   : Hyper-V Team 1
Members                : {Embedded FlexibleLOM 1 Port 1, Embedded FlexibleLOM 1 Port 3}
TeamNics               : Hyper-V Team 1
TeamingMode            : SwitchIndependent
LoadBalancingAlgorithm : HyperVPort
Status                 : Degraded

Name                   : Local
Members                : {Embedded FlexibleLOM 1 Port 4, Embedded FlexibleLOM 1 Port 2}
TeamNics               : Local
TeamingMode            : SwitchIndependent
LoadBalancingAlgorithm : Dynamic
Status                 : Up

Name                   : Hyper-V Team 2
Members                : {PCIe Slot 1 Port 3, PCIe Slot 1 Port 2, PCIe Slot 1 Port 1, PCIe Slot 1 Port 4}
TeamNics               : Hyper-V Team 2
TeamingMode            : SwitchIndependent
LoadBalancingAlgorithm : HyperVPort
Status                 : Degraded

现在,当我ipconfig在主机服务器上运行时,我希望只让我的Local网络团队返回,但是我得到了这个:

[HVHost]: PS C:\Users\xy\Documents> ipconfig

Windows-IP-Konfiguration


Ethernet-Adapter Local:

   Verbindungsspezifisches DNS-Suffix: internal.domain.com
   Verbindungslokale IPv6-Adresse  . : fe80::d4f:84c6:586e:1799%12
   IPv4-Adresse  . . . . . . . . . . : 10.0.0.102
   Subnetzmaske  . . . . . . . . . . : 255.255.255.0
   Standardgateway . . . . . . . . . : 10.0.0.215

Ethernet-Adapter vEthernet (HVE_X):

   Verbindungsspezifisches DNS-Suffix: internal.domain.com
   Verbindungslokale IPv6-Adresse  . : fe80::71d4:82d1:6c1a:d454%30
   IPv4-Adresse  . . . . . . . . . . : 10.0.0.141
   Subnetzmaske  . . . . . . . . . . : 255.255.255.0
   Standardgateway . . . . . . . . . : 10.0.0.215

Ethernet-Adapter vEthernet (HVE_Y):

   Verbindungsspezifisches DNS-Suffix: internal.domain.com
   Verbindungslokale IPv6-Adresse  . : fe80::d94e:fa85:1007:e320%36
   IPv4-Adresse  . . . . . . . . . . : 10.0.0.133
   Subnetzmaske  . . . . . . . . . . : 255.255.255.0
   Standardgateway . . . . . . . . . : 10.0.0.215

为什么我会vEthernet退回两个 NIC?我该如何隐藏它们?

我有一个类似的服务器,它也有 3 个 NIC 团队,2 个用于 Hyper-V,一个用于本地,当我在ipconfig那里执行时,我只会返回本地内容:

[SimilarHVHost]: PS C:\Users\xy\Documents> ipconfig

Windows-IP-Konfiguration


Ethernet-Adapter Lokal:

   Verbindungsspezifisches DNS-Suffix:
   IPv4-Adresse  . . . . . . . . . . : 10.0.0.243
   Subnetzmaske  . . . . . . . . . . : 255.255.255.0
   Standardgateway . . . . . . . . . : 10.0.0.215

Tunneladapter isatap.{084F9961-69B0-4F13-9D4D-B4F48F2EEE56}:

   Medienstatus. . . . . . . . . . . : Medium getrennt
   Verbindungsspezifisches DNS-Suffix:

我的新 Hyper-V 主机服务器缺少什么设置?我希望它表现得像其他 Hyper-V 主机。

windows networking hyper-v windows-server-2019
  • 1 个回答
  • 58 Views
Martin Hope
SimonS
Asked: 2020-07-29 04:44:33 +0800 CST

如何从用户计算机注销 RemoteApp 会话

  • 1

我们为所有家庭办公室客户使用 RemoteApp。

有时,出于各种原因,用户需要从他们的 RemoteApp 会话中注销。

现在对于 RemoteApps,您只能terminate the connection在桌面上使用。这导致在connection terminated服务器上,但他们的会话仍然存在。这并没有真正注销,因为每当您再次启动任何 RemoteApp 时,您之前的会话都会重新打开。

我可以通过右键单击每个用户的连接并说log off. 然后连接从连接面板中完全消失,当他们在桌面上打开 RemoteApp 时,会创建一个全新的会话。

有没有人知道用户可以自己执行的真正注销是可能的,而我不需要在服务器上注销它们?

我知道他们可以执行 cmd ->shutdown -l等,但我的用户对计算机不是很好,这对他们来说太复杂了。

我怎样才能实现我的目标?

windows remoteapp
  • 3 个回答
  • 5153 Views
Martin Hope
SimonS
Asked: 2018-03-27 03:29:26 +0800 CST

我无法启动从物理驱动器创建的 VHDX

  • 3

我需要将我的 Server 2012 R2 Fileserver(物理)迁移到另一台服务器(虚拟)。这就是为什么我需要创建 VHDX 文件以便稍后在 Hyper-V 中运行它们

我所有的驱动器都没有问题,除了 C 驱动器。

每当我启动创建的 C 驱动器时,我都会收到此错误:

错误屏幕截图 Hyper-V

如果我只是在我的文件系统或任何服务器上打开 VHDX,我会收到以下错误消息you need to format the F: Drive before you can use it:

错误 F:驱动器

如您所见,VHDX 奇怪地包含 2 个驱动器,其中一个 (F:) 未格式化。这就是为什么我不能使用 VHDX 文件的原因,因为我猜它无法识别这个驱动器。我想这就是 EFI 所在的地方。

我尝试以 3 种不同的方式创建 VHDX。对于前两种方法,我尝试了 Disk2VHD

像这样(我尝试了有\\?\volume和没有\\?\volume分区):

Disk2VHD 截图

我尝试的第三种方法是直接从 Hyper-V 中,我可以说我想从物理驱动器创建 VHDX。

Hyper-V 向导

但它们都得到相同的最终结果,即损坏的 VHDX。

我在某处读到我需要mountvol x: /s首先使我的 EFI 分区对 disk2vhd 可见,但mountvol似乎/s不再有?

如何获得工作的 VHDX?谢谢

windows
  • 1 个回答
  • 7347 Views
Martin Hope
SimonS
Asked: 2018-03-16 06:43:41 +0800 CST

为什么 Get-MailboxFolder 返回“邮箱不可用”?

  • 2

我想在 PowerShell 中获取我邮箱的文件夹列表。

由于我们有 ExchangeOnline,我像这样连接到我的交换服务器:

$Session = New-PSSession -ConfigurationName Microsoft.Exchange `
           -ConnectionUri https://ps.outlook.com/powershell/ -Credential $cred `
           -Authentication Basic -AllowRedirection
Import-PSSession $Session

现在到我的问题,Get-MailboxFolderPermission工作,但Get-MailboxFolder总是返回The mailbox [email protected] is not available。为什么?

PS Z:\Powershell-Scripts\Functions\Exchangeonline> Get-MailboxFolderPermission "[email protected]:\Inbox"

FolderName           User                 AccessRights                                                                                                 SharingPermissionFlags                                                                                     
----------           ----                 ------------                                                                                                 ----------------------                                                                                     
Inbox                Standard             {None}                                                                                                                                                                                                                  
Inbox                Anonym               {None}                                                                                                                                                                                                                  



PS Z:\Powershell-Scripts\Functions\Exchangeonline> get-mailboxfolder "[email protected]:\Inbox"
Das angegebene Postfach "[email protected]" ist nicht vorhanden.
    + CategoryInfo          : NotSpecified: (:) [Get-MailboxFolder], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=AM4PR0302MB2626,RequestId=a6939056-15df-4b45-a10b-8b1cbb4a9207,TimeStamp=15.03.2018 14:31:00] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] 9DD76FE4,Microsoft.Exchange.Management.StoreTasks.GetMailboxFolder
    + PSComputerName        : ps.outlook.com

我在 PSVersion 5.1.14393.2068

编辑:它也不适用于 5.1.16299.251 和 4.0

powershell
  • 1 个回答
  • 2356 Views
Martin Hope
SimonS
Asked: 2017-02-18 02:21:29 +0800 CST

有没有一种简单的方法可以在 cmd 中为 PowerShell 起别名?

  • 0

每当我登录到我的 servercore 服务器时,我通常做的第一件事是:

powershell start-process powershell -verb runas

总是写这整个句子有点烦人。我可以以某种方式缩短这个吗?

powershell start powershell -v runas

是我能想到的最短的版本。有没有办法在 cmd 中powershell给psor或什么东西取别名?posh或者任何其他执行此操作并且不需要这么长时间来编写的命令?

谢谢!

powershell windows-command-prompt windows-server-core windows-server-2016
  • 2 个回答
  • 709 Views
Martin Hope
SimonS
Asked: 2016-12-20 02:23:31 +0800 CST

将服务器添加到 RDS 的服务器池的 PowerShell 命令是什么

  • 4

我们有一个 RDS Serverfarm,其中包含一个 AD 服务器和两个 RDS 服务器。AD 是 Server 2012 R2,RDS 服务器是 Server 2016。

当我通过 Teamviewer 重新启动服务器后登录 RDS 服务器并打开服务器管理器来管理连接时,我总是必须将服务器添加到服务器池中才能查看连接。这有点烦人

是否有可用于设置服务器池的 PowerShell cmdlet?

谢谢!

remote-desktop powershell remote-desktop-services windows-server-2016
  • 1 个回答
  • 2574 Views
Martin Hope
SimonS
Asked: 2016-09-30 05:32:28 +0800 CST

如何查看通过 HTTPS 访问 IIS 站点时发生的情况

  • 0

当我通过 HTTPS 从外部网络访问站点时,有没有办法查看 IIS 8.5 服务器的功能?它打开什么,什么文件夹结构,哪个文件?

我问这个是因为当我通过 HTTPS 从外部访问我的网站时,我总是被重定向到 IIS 默认页面,即使我停止了 IIS 中的默认网站并删除了默认情况下 inetpub/wwwroot 中的所有 html 文件。当我从内部访问 HTTPS 时,一切正常,如果我通过 HTTP 访问该站点,无论是内部还是外部,一切正常。

有没有办法查看服务器的功能?我可以记录一些东西或追踪一些东西吗?我现在看到的日志没有给我任何关于它为什么不起作用的信息。

编辑:

太奇怪了。当我通过 HTTPS 从外部打开站点时,它会打开:https ://mysite.mydomain.com/iis-85.png当我想从内部网络打开这个确切的 URL 时,我收到一个404 - File or Folder not found错误。整个 IIS 上唯一包含此 iis-85.png 的文件夹就是这个:C:\Windows\WinSxS\amd64_microsoft-windows-iis-startserver_31bf3856ad364e35_6.3.9600.16384_none_bf87a3597b95c1cd而且我认为它不可能从那里读取数据。

为什么是这样?难道这仍然被缓存?我尽一切努力更新缓存、删除临时 asp 文件、刷新 dns、重新启动每个站点、IIS 本身、每个应用程序池。我还能做什么?

编辑:好的,我明白了。HTTPS 通过防火墙 NAT 重定向到另一台服务器。

windows iis iis-8.5
  • 2 个回答
  • 514 Views
Martin Hope
SimonS
Asked: 2016-07-23 00:37:42 +0800 CST

如何更新 machineConfig64 .Net Framework 配置提供程序

  • 0

我正在尝试将 IIS 站点从具有 IIS7.5 的旧 Windows Server 2008 R2 同步到具有 IIS8.5 的新 Windows Server 2012 R2。我正在使用 WDeploySnapin3.0 PowerShell Snapin

现在我收到以下错误:

Sync-WDSite : the versions of the .NET Framework-configuration provider
(machineConfig64) differ from source (2.0) and destination (4.0). More 
information on: http://go.microsoft.com/fwlink
/?LinkId=221672#ERROR_FRAMEWORK_VERSIONS_DO_NOT_MATCH.

可以在此处找到此错误的两种解决方案:http: //go.microsoft.com/fwlink/ ?LinkId=221672#ERROR_FRAMEWORK_VERSIONS_DO_NOT_MATCH 。

第一个解决方案不符合我的需求,因为我不使用该msdeploy.exe工具。

第二个解决方案告诉我在我所做的源机器上编辑配置文件。我msdepsvc.exe.config从这个改变了:

<configuration>
  <startup  useLegacyV2RuntimeActivationPolicy="true" >
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
    <supportedRuntime version="v2.0.50727" />
  </startup>
</configuration>

对此:

<configuration>
  <startup  useLegacyV2RuntimeActivationPolicy="true" >
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
  </startup>
</configuration>

还有msdeploy.exe.config这个:

<configuration>
  <startup>
    <supportedRuntime version="v2.0.50727" />
    <supportedRuntime version="v4.0" />
  </startup>
</configuration>

对此:

<configuration>
  <startup>
    <supportedRuntime version="v4.0" />
  </startup>
</configuration>

之后我重新启动了wmsvc服务net stop wmsvc ; net start wmsvc但它没有工作,错误仍然发生

现在我只想更新我的源服务器的版本。我怎么做?.NET Framework 4.6 安装在源服务器上,我只需要在某处编辑配置吗?还是我需要更新的管理框架?

谢谢!

编辑:我也尝试只使用配置文件中的 v2.0 条目(如微软建议的那样),但它也没有工作。我也不明白为什么它说源服务器使用 .NET 2.0 - apppool 和应用程序本身使用 4.0+

windows powershell iis .net msdeploy
  • 1 个回答
  • 1360 Views
Martin Hope
SimonS
Asked: 2016-04-05 05:31:52 +0800 CST

为什么我的登录脚本没有映射任何驱动器?

  • 3

我在 PowerShell 中编写了一个登录脚本。该脚本嵌入在 GPO 中,并在用户登录域时运行。

我的问题是,我在脚本中部署的驱动器没有被部署。我确信登录脚本会运行,因为在脚本结束时我会向自己发送一封电子邮件,并且我总是会收到它。所以运行脚本应该不是问题。$Error每次脚本运行时,我都会记录整个变量,并且没有迹象表明为什么会发生此错误。

我几乎可以肯定错误不在脚本本身 - 我认为它必须是权限错误。

我认为当我在运行脚本时指定参数时可以解决这个问题-NoProfile,但我不知道将它放在 GPO 的哪个位置。由于美观的原因,我不想要一个调用脚本的批处理文件:-)。

编辑:指定-noprofile没有解决问题

编辑:由于有评论说没有足够的关于如何映射驱动器的信息,我将整个映射部分粘贴在下面:

# UserOU as a parameter, value set in GPO
Param([string]$UserOU)

# preparing some stuff...
Import-Module .\SecureStringFunctions.psm1
[Byte[]]$key = (1..16)
$pw = Get-Content .\LocalAdminCred.txt | ConvertTo-SecureString -key $key

# Tried this to elevate the Script IF it's needed. Didn't solve my problem. works only on PS 4.0 but didn't solve the issue on my 5.0 machine
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) 
{ Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }

# Import CSV with drive information based on username and userOU to get every maps that the current user needs
# also replacing a string inside the CSV for current session to map the homedrive of each user
$Drives = (Get-Content .\NetworkDrives.csv) -replace "userhome",$env:username | ConvertFrom-CSV -Delimiter ';' | ? {
    (($_.Group.split(',') -contains $UserOU) -or ($_.Group.split(',') -contains $env:username)) -and (!(Test-Path $_.Letter))
} 

# When I export the $Drives Variable at this point, all drives were read correctly, so the failure must occur in the mapping

# map all drives for current user. Drives to DMZ with password in plain text because ".mapnetworkdrive" only accepts plain text.
$Drives | % {
    if (![system.string]::IsNullOrEmpty($_.Username)) {
        if (($UserOU -like 'admin*') -and (($_.Server -ne $env:computername) -or ([system.string]::IsNullOrEmpty($_.Server)))) { 
            Continue
        }
        [string]$pwplain = ConvertFrom-SecureString $pw -AsPlainText -Force
        $Map = New-Object -comobject Wscript.Network
        $Map.MapNetworkDrive($_.letter,$_.path,$false,$_.username,$pwplain)
        $pwplain = ""
    } else { 
        $Map = New-Object -comobject Wscript.Network
        $Map.MapNetworkDrive($_.letter,$_.path,$false)    
    }
}
windows
  • 2 个回答
  • 25962 Views
Martin Hope
SimonS
Asked: 2016-03-09 01:59:56 +0800 CST

由于证书问题,在 web.config 中重定向

  • 2

我正在使用一个 UCC SSL 证书在 IIS 7.5 上运行一些网站,其中有 10 个域受到保护。大多数是something.company.ch,有些是something.anothercompany.ch

我们的 web.config 中有一个重定向规则,它将每个 HTTP 请求重定向到一个 HTTPS 请求

我的问题是,我们有像 company.de、company.com 这样的域,它们不受 SSL 证书的保护,但这些域实际上指向我的 company.ch 站点(IIS 中的站点绑定)。

如果有人现在打开 URL www.company.de,他会收到证书错误。

为了获得最佳谷歌排名,您应该在 web.config 中进行 HTTPS 重定向,所以我们认为我们需要这样做。因此,我们尝试首先将http://www.company.de重定向到http://company.ch,然后再重定向到https://www.company.ch,但不幸的是,这并不能解决问题。

有谁知道如何解决这个问题?或者更好的方法来完成这项工作?

这是web.config规则部分

# Redirect of company.de to company.ch
<rule name="company.de to company.ch" patternSyntax="ECMAScript" stopProcessing="true">
    <match url=".*" />
    <conditions logicalGrouping="MatchAny">
        <add input="{HTTP_HOST}" pattern="^company.de$" />
    </conditions>
    <action type="Redirect" url="https://www.company.ch/{R:0}" />
</rule>

# Redirect everything to HTTPS
<rule name="Redirect to HTTPS" stopProcessing="true">
    <match url="(.*)" />
    <conditions>
        <add input="{HTTPS}" pattern="^OFF$" />
    </conditions>
    <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />
</rule>
windows
  • 1 个回答
  • 275 Views
Martin Hope
SimonS
Asked: 2016-03-04 03:24:15 +0800 CST

设置 IIS 8.5 - 安全实践

  • 3

这是我第一次设置 IIS 安装,我想确保提供最大的安全性。在设置的过程中,一些问题突然出现在我的脑海中:

请注意,该服务器托管的外部网站同时有大约 50 个用户,每天大约有 1000 个用户,但也有仅供内部使用的内部网站(在这种情况下,内部是指我们公司的用户在网络外使用的网站,但没有客户使用这些网站)

应用程序池标识:

我已经读过,将内置帐户 ApplicationPoolIdentity 用于应用程序池标识是最佳安全实践。我的问题是,如果我可以为我拥有的每个应用程序池使用这个内置帐户,因为我将部署 Wep 应用程序隔离 - 意味着我将为我拥有的每个 Web 应用程序设置不同的 AppPool。即使我为每个 Web 应用程序部署了不同的应用程序池,但在每个应用程序池上使用相同的帐户,这不是矛盾吗?

服务器加固:

我想安装尽可能少的功能和服务,以尽可能地强化服务器。有没有办法检查我安装的功能是否被使用,或者它是否根本不需要这些功能?(是的,我知道。有点菜鸟问题)

认证:

有外部访问者的网站是否需要匿名认证?www.mycompany.com每个人都可以访问的网站?我还没有找到一种方法来禁用匿名身份验证,但让每个人都可以访问该网站。

一般网络问题:

我一直认为 IIS 的最佳做法是将服务器放入 DMZ,因为如果服务器被黑客入侵,入侵者将无法访问我们域网络中的所有其他服务器。由于有新的身份验证方法Digestauthentification,例如需要与域控制器进行通信,并且服务器本身也需要在域中,所以我问自己是否最好将服务器放在域网络中并保护对它与其他安全措施(代理等)还是 DMZ 仍然是最佳安全实践?

预先感谢您的每一个输入。

windows
  • 2 个回答
  • 7093 Views
Martin Hope
SimonS
Asked: 2016-03-03 10:58:19 +0800 CST

IIS 7.5 - 不能在一个 IP 地址下配置两个 SSL 证书?

  • 5

我们正在为所有网站设置 HTTPS。不幸的是,我在 IIS 方面并没有真正的经验。

我有两个证书,一个是包含 10 个子域的 EV-UCC-Certificate。子域来自两个不同的域,如下所示:

shop.abcdomain.com
www.xzydomain.com

我也有这些域之一的通配符证书*.abcdomain.com

两个域在同一 IP 地址下的同一 IIS 服务器上运行。

当我将通配符证书分配给我的某些站点时,一切正常,但是当我想将 EV-UCC 证书分配给 IIS 中相同“站点”集合中的另一个站点时,我收到以下错误

至少一个其他站点正在使用相同的 HTTPS 绑定,并且该绑定配置了不同的证书

我对此有点困惑。为什么我不能在同一个 IIS 上分配两个不同的证书?在 IIS 上只能是一个 SSL 证书吗?如果是这样,是否有解决方法让 IIS 认为他可以携带两个 SSL 证书?

我在 Windows Server 2008 R2 上运行 IIS 7.5

windows
  • 1 个回答
  • 11919 Views
Martin Hope
SimonS
Asked: 2015-10-16 05:28:54 +0800 CST

psexec 启动程序不起作用

  • 1

我想用 psexec 在远程机器上杀死并启动一个程序。我使用以下批处理文件(c:/users/user 是 psexec root)

cd c:/users/user
psexec \\computername cmd /c "taskkill /im SwyxIt!.exe /f"
psexec \\computername cmd /c "taskkill /im CLMgr.exe /f"
timeout -t 5
psexec \\computername cmd /c "start C:\Program Files (x86)\SwyxIt!\SwyxIt!.exe"

但程序没有启动!

如果我像这样运行启动命令 psexec \\computername cmd /c "C:\Program Files (x86)\SwyxIt!\SwyxIt!.exe"

它没有开始。

如果我在自己的机器上运行没有 psexec 的命令,start "C:\Program Files (x86)\SwyxIt!\SwyxIt!.exe"它就可以正常工作。

有什么建议么?我在所有远程机器上都有管理员权限。

windows
  • 1 个回答
  • 12947 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve