Upload
santoshsangroula
View
14
Download
0
Embed Size (px)
DESCRIPTION
windows server 2012 notes
Citation preview
You can switch from Server Core to the graphical version of Windows Server 2012 R2 by running the following Windows PowerShellcmdlet, where c:\mount is the root directory of a mounted image that hosts the full version of the Windows Server 2012 R2 installationfiles:
Install-WindowsFeature -IncludeAllSubFeature User-Interfaces-Infra -Source c:\mount
When connected locally, you can use the tools that are listed in the following table to manage Server Core deployments of WindowsServer 2012 R2.Tool Function
Cmd.exe Allows you to run traditional command-line tools such as ping.exe, ipconfig.exe, and
PowerShell.exe
Launches a Windows PowerShell session on the Server Core deployment. You can thens Server 2012 R2 comes with Windows PowerShell version 4.0 installed.
Sconfig.cmd
A command-line menu-driven administrative tool that allows you to perform most
Notepad.exe
Allows you to use the Notepad.exe text editor within the Server Core environment.
Regedt32.exe
Provides registry access within the Server Core environment.
Msinfo32.exe
Allows you to view system information about the Server Core deployment.
Taskmgr.exe
Launches the Task Manager.
SCregEdit.wsf
Used to enable Remote Desktop on the Server Core deployment.
Note: If you accidentally close the command window on a computer that is running Server Core, you can recover the commandwindow by performing the following steps:1. Press the Ctrl+Alt+Del keys, and then click Task Manager.2. From the File menu, click New Task (Run…), and then type cmd.exe
Firewall cmd errorUse the following cmd instead:
netsh advfirewall firewall set rule group="Windows Management Instrumentation (WMI) new enable=yes
netsh advfirewall firewall set rule group="remote event log managemnt" new enable =yes
***if still doesn’t work****netsh advfirewall set currentprofile state off
** You might run 'netsh advfirewall reset' before these cmd to reset the firewall settings
Remotely logon to another server using powershell
Right click the listed server, and then click Windows PowerShell.4. Type Import-Module ServerManager.5. Type Get-WindowsFeature, and review roles and features.6. Use the following command to review the running services on LON-CORE:
Get-service | where-object {$_.status -eq "Running"}7. Type get-process to view a list of processes on LON-CORE.8. Review the IP addresses assigned to the server by typing the following
Get-NetIPAddress | Format-table9. Review the most recent 10 items in the security log by typing the
Get-EventLog Security -Newest 1010. Close Windows PowerShell.
Extend license of windows 2012 evaluationslmgr.vbs -rearm
show Running ServicesGet-service | where-object {$_.status -eq "Running"}
View ProcessGet-process
Show IP-address assigned to serverGet-NetIPAddress | Format-table
Review the most recent 10 items in the security log by typing the following command:Get-EventLog Security -Newest 10