to disable FireWall use:
Netsh firewall set opmode disable
to reenable the firewall use:
Netsh firewall set opmode enable.
Tuesday, April 5, 2011
How to enable powershell on Windows 2008 R2 Server Core
Method 1
Run SCONFIG.
Select option 4 (Configure Remote Management).
Select option 2 (Enable Windows PowerShell).
Click OK.
Back to the top
Method 2
Install the following features:
NetFx2-ServerCore
NetFx3-ServerCore
NetFx2-ServerCore-WOW64
NetFx3-ServerCore-WOW64
MicrosoftWindowsPowerShell
MicrosoftWindowsPowerShell-WOW64
The following are examples of the commands that install these features:
DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore
DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore
DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore-WOW64
DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore-WOW64
DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell
DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell-WOW64
Note Because Windows PowerShell is built on Microsoft .NET Framework, Microsoft .Net Framework must be installed correctly first for a successful Windows PowerShell installation
Run SCONFIG.
Select option 4 (Configure Remote Management).
Select option 2 (Enable Windows PowerShell).
Click OK.
Back to the top
Method 2
Install the following features:
NetFx2-ServerCore
NetFx3-ServerCore
NetFx2-ServerCore-WOW64
NetFx3-ServerCore-WOW64
MicrosoftWindowsPowerShell
MicrosoftWindowsPowerShell-WOW64
The following are examples of the commands that install these features:
DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore
DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore
DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore-WOW64
DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore-WOW64
DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell
DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell-WOW64
Note Because Windows PowerShell is built on Microsoft .NET Framework, Microsoft .Net Framework must be installed correctly first for a successful Windows PowerShell installation
Subscribe to:
Posts (Atom)