You are on page 1of 1

Cria VHD NanoServer:

copy d:\NanoServer\NanoServerImageGenerator\*.ps* c:\nano

Import-Module c:\nano\NanoServerImageGenerator.psm1

new-NanoServerImage -Edition Standard -mediapath D:\ -Basepath c:\nano


-targetpath c:\nano\SererNano.vhdx -DeploymentType Guest -computername
ServerNano -storage -package Microsoft-NanoServer-IIS-Package

Coloca ServerNano no domínio:

djoin.exe /provision /domain TioInaldo /machine ServerNano /savefile


.\odjblob.txt

Set-Item WSMan:\localhost\Client\TrustedHosts "10.10.10.150"

$ip = "10.10.10.150"

Enter-PSSession -ComputerName $ip -Credential $ip\Administrator

netsh advfirewall firewall set rule group="File and Printer Sharing" new
enable=yes

net use z: \\10.10.10.150\c$

copy c:\odjblob.txt

djoin /requestodj /loadfile c:\odjblob.txt /windowspath c:\windows /localos

shutdown /r /t 2

Instalando função no ServerNano:


No AD:

get-windowsfeature –comp servernano

install-windowsfeature Fs-fileserver –comp servernano

No Nano:

get-netipaddress

bcdedit /enum

Extra:
Desativa Firewall:
NetSh Advfirewall set allprofiles state off

You might also like