Difference between revisions of "Initial configuration"

From Michael's Information Zone
Jump to navigation Jump to search
 
Line 13: Line 13:
 
</pre>
 
</pre>
 
==Configure Firewall==
 
==Configure Firewall==
<ref>https://technet.microsoft.com/library/hh831755.aspx</re>
+
<ref>https://technet.microsoft.com/library/hh831755.aspx</ref>
 
<pre>
 
<pre>
 
New-NetFirewallRule -DisplayName “Allow Inbound Telnet” -Direction Inbound -Program %SystemRoot%\System32\tlntsvr.exe -RemoteAddress LocalSubnet -Action Allow
 
New-NetFirewallRule -DisplayName “Allow Inbound Telnet” -Direction Inbound -Program %SystemRoot%\System32\tlntsvr.exe -RemoteAddress LocalSubnet -Action Allow
 
</pre>
 
</pre>

Latest revision as of 16:15, 23 August 2017

After installation

[1]

powershell.exe
Sconfig.cmd

Copy Files for whatever reason

[2]Using WinRM and Powershell sessions seems to be the easiest method for this.

$session=get-pssession
copy-item -tosession $session -path c:\local\path -destination c:\remote\path -recurse

Configure Firewall

[3]

New-NetFirewallRule -DisplayName “Allow Inbound Telnet” -Direction Inbound -Program %SystemRoot%\System32\tlntsvr.exe -RemoteAddress LocalSubnet -Action Allow