2018年6月29日 星期五

Windows Server 2012 Server Code on Hyper-V

Windows Server 2012 Server Code on Hyper-V

LAN
netsh interface ipv4 show config
Ethernet
netsh interface ipv4 set address Ethernet static 172.31.118.247 255.255.255.240 172.31.118.240
netsh interface ipv4 set dns Ethernet static 172.31.118.240

Enable Ping
netsh firewall set icmpsetting 8

Change to Private Network
Get-NetConnectionProfile
Set-NetConnectionProfile -Name “Unidentified network” -NetworkCategory Private

---

[check here to do better for PS and OnClient later]


PS 5.1
"Turn off password protected sharing" on remote server
\\172.31.118.241\share\Win8.1AndW2K12R2-KB3191564-x64.msu /quite
Get-Host shows 5.1
Enable-PSRemoting -Force
Restart-Service WinRM
winrm quickconfig

On Client
winrm quickconfig
winrm set winrm/config/client '@{TrustedHosts="172.31.118.247"}'
Set-Item wsman:\localhost\client\trustedhosts *
Test-WsMan 172.31.118.247
Enter-PSSession -ComputerName 172.31.118.247 -Credential Administrator



---


Set Filewall and Start MT4
netsh advfirewall firewall add rule name="MetaTrader 4 Server" protocol=TCP enable=yes DIR=In program="C:\MetaTrader4Server\mtsrv.exe" Action=Allow
Expand-Archive \\172.31.118.241\share\MetaTrader4Server.zip C:\
C:\MetaTrader4Server\mtsrv.exe /install
C:\MetaTrader4Server\mtsrv.exe /stop
Copy-Item \\172.31.118.241\share\StopOut.dll C:\MetaTrader4Server\plugins\ -force
C:\MetaTrader4Server\mtsrv.exe /start


沒有留言:

張貼留言

2023 Promox on Morefine N6000 16GB 512GB

2023 Promox on Morefine N6000 16GB 512GB Software Etcher 100MB (not but can be rufus-4.3.exe 1.4MB) Proxmox VE 7.4 ISO Installer (1st ISO re...