今天無意中進行一次配置核心版的遠程管理,記錄下步驟,以備以后再用:
具體環境是:遠程服務器為:Server 2016 Server Core no GUI
本地管理服務器為:Windows 10 (個人PC,非域管理)
PC上安裝 Remote Server Administration Tools, 參考下載地址:https://docs.microsoft.com/en-us/windows-server/remote/remote-server-administration-tools
PC上按照以下步驟添加管理權限:
1. Set-Item wsman:\localhost\Client\TrustedHosts SERVERNAME -Concatenate -Force
2. New-ItemProperty -Name LocalAccountTokenFilterPolicy -path HKLM:\SOFTWARE\Microsoft\Windows\Curr
entVersion\Policies\System -propertyType DWord -value 1
3. CMDKEY /add:SERVERNAME /user:USERNAME /pass:PASSWORD
遠程Server上要在PowerShell中運行如下命令:
1.PowerShell遠程管理: Enable-PSRemoting -Force
2.Server Manager遠程管理:Configure-SMremoting -enable
參考地址:http://www.itprotoday.com/windows-8/how-remotely-manage-windows-server-2016
https://docs.microsoft.com/en-us/windows-server/remote/remote-server-administration-tools
配置IIS遠程管理
需要先在Win10上安裝一個遠程管理軟件:https://www.microsoft.com/en-us/download/details.aspx?id=41177
然后大致按照以下文章中的進行下配置,就OK了。
https://theitbros.com/using-iis-manager-for-remote-administration/
安裝Mysql 8
安裝運行環境
Invoke-WebRequest https://download.microsoft.com/download/6/D/F/6DF3FF94-F7F9-4F0B-838C-A328D1A7D0EE/vc
_redist.x64.exe -OutFile ".\vcredist_x64.exe"
.\vcredist_x64.exe
IIS 權限設置
$account = "IIS_IUSRS"
$FileSystemRights = "FullControl"
$objType = [System.Security.AccessControl.AccessControlType]::Allow
$accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule ($account,$FileSystemRights,$objType)
$Folder = "C:\inetpub\ftproot\RbbioWeb\Web.config"
$acl = Get-Acl $Folder
$acl.SetAccessRule($accessRule)
Set-Acl -Path $Folder -AclObject $acl