From cb7b38c612d78c75e00044e6da530f06bf662c35 Mon Sep 17 00:00:00 2001 From: andre Date: Mon, 9 Apr 2018 11:00:39 +0200 Subject: [PATCH] ajout commandes sur hyper2 --- WindowsServer2016/role_hyperV_réplication.ps1 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/WindowsServer2016/role_hyperV_réplication.ps1 b/WindowsServer2016/role_hyperV_réplication.ps1 index 30d74d2..983b8de 100644 --- a/WindowsServer2016/role_hyperV_réplication.ps1 +++ b/WindowsServer2016/role_hyperV_réplication.ps1 @@ -1 +1,11 @@ -test \ No newline at end of file +New-PSDrive -Name P -Root \\sernasetu.iut.local\Admin -PSProvider FileSystem -Persist -Credential administrateur@iut.local +cd .\Desktop\ + .\makecert.exe -pe -n "CN=RootCA4" -ss root -sr LocalMachine -sky signature -r "RootCA4.cer" + .\makecert.exe -pe -n "CN=hyper2.iut.rdz" -ss my -sr LocalMachine -sky exchange -eku 1.3.6.1.5.5.7.3.1,1.3.6.1.5.5.7.3.2 -in "RootCA4" -is root -ir LocalMachine -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12 hyper2.cer + certutil.exe -addstore -f Root "RootCA.cer" + reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\Replication" /v DisableCertRevocationCheck /d 1 /t REG_DWORD /f + Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False + Get-netadapter + winrm quickconfig + Enable-PSRemoting -force + winrm s winrm/config/client '@{TrustedHosts="hyper1.iut.rdz"}' \ No newline at end of file