11 lines
841 B
PowerShell
11 lines
841 B
PowerShell
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"}' |