Server 2016 Core 版,如何远程管理

今天无意中进行一次配置核心版的远程管理,记录下步骤,以备以后再用:

具体环境是:远程服务器为: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

 

posted on 2018-04-20 16:48  乘以乘  阅读(3678)  评论(0编辑  收藏  举报

导航