Friday, October 16, 2009
Server 2008 Notes
Windows 2008 R2 ships with the .NET 3.5.1 framework - enable the Feature from Server Manager.
Tuesday, September 29, 2009
Server 2008 and Autorun and VMware Tools
The .msi file is at the root of D - "vmware tools64.msi"
Petri
Monday, September 28, 2009
VMware Notes
http://www.petri.co.il/installing-vmware-additions-on-windows-server-2008-server-core-installations.htm
Set Date/Time
http://www.petri.co.il/configure-time-date-settings-windows-2008.htm
Set Command Prompt
In the registry navigate to the following key
HKLM\System\CurrentControlSet\Control\Session Manager\Environment
Look for a key called Prompt, if it's not there create one using the following settings.
Value Name: Prompt
Data Type: REG_EXPAND_SZ
Value Data: $_Server:%computername%$_Username:%username%$_Date:$D$_Time:$T$_$p$g
Remote Management
To enable remote management from any MMC snap-in, type the following:
netsh advfirewall firewall set rule group="Remote Administration" new enable=yes
Open the MMC snap-in on the remote management computer
On a remote computer running Windows Server 2008 or Windows Vista, click Start > Run, then type MMC and press ENTER.
Click File > Add/Remove Snap-in.
In the Add or remove snap-ins, scroll down till you find the required snap-in. In this case I will use Computer Management, but you can use any snap-in that fits the roles installed on the Server Core machine.
To set the server with a static IP address
netsh interface ipv4 show interfaces
Look at the number shown in the Idx column of the output for your network adapter. If your computer has more than one network adapter, make a note of the number corresponding to the network adapter for which you wish to set a static IP address.
netsh interface ipv4 set address name="" source=static address= mask= gateway=
At the command prompt, type
netsh interface ipv4 add dnsserver name="" address= index=1
Verify by typing ipconfig /all
To set the administrative password
net user administrator *
To change the name of the server
ipconfig /all
netdom renamecomputer /NewName:
Restart required - shutdown /r /t 0
Enable Windows Remote Shell on a server running a Server Core installation
WinRM quickconfig
On the remote computer, at a command prompt, use WinRS.exe to run commands on a server running a Server Core installation. For example, to perform a directory listing of the Windows folder, type: winrs -r: cmd
Where ServerName is the name of the server running a Server Core installation.
You can now type any command that you require, it will be executed on the remote computer.
To activate the server
slmgr.vbs –ato
To activate the server remotely
cscript slmgr.vbs -ato
Retrieve the GUID of the computer
cscript slmgr.vbs -did
Verify License status
cscript slmgr.vbs -dli
Join Windows 2008 server to a domain
netdom join /domain: /userd: /passwordd:*
Remove the Windows 2008 server from a domain
netdom remove
Configure automatic updates
Enable
cscript C:'Windows'System32'Scregedit.wsf /au 4
Disable
cscript C:'Windows'System32'Scregedit.wsf /au 1
View current settings
cscript C:'Windows'System32'Scregedit.wsf /au /v
Configure error reporting
Verify the current setting
serverWerOptin /query
Send detailed reports
serverWerOptin /detailed
Send summary reports
serverWerOptin /summary
Sisable error reporting
serverWerOptin /disable
http://www.petri.co.il/configuring-windows-server-2008-networking-settings.htm
Core Configurators:
http://www.codeplex.com/CoreConfig
Windows Firewall snap-in
MMC
File > Add/Remove Snap-in
Find the Windows Firewall with advanced security snap-in
To add hardware to Windows Server 2008
If the driver for the hardware is included in Windows Server 2008, Plug and Play will start automatically and install the driver.
At a command prompt, open the folder where the driver files are located:
pnputil -i -a
Add a user to the local Administrators group
net localgroup Administrators /add '
Remove a user from the local Administrators group
net localgroup Administrators /delete
To disable a device driver
sc delete
Where: service_name is the name of the service that you obtain by running
List of drivers that are installed:
sc query type= driver
Note: You must include the space after the equal sign for the command to complete successfully.
To manage event logs
To list event logs
wevtutil el
Query events in a specified log type
wevtutil qe /f:text
Export an event log
wevtutil epl
Clear an event log
wevtutil cl
List the running services
sc query
net start
Stop a service
sc stop
net stop
Forcibly stop a process
tasklist command to retrieve the process ID (PID).
taskkill /PID
Configure the firewall
Enable remote management
netsh advfirewall firewall set rule group="Remote Administration" new enable=yes
Enable remote management of the firewall
netsh advfirewall set currentprofile settings remotemanagement enable
Configure the paging file
wmic pagefileset where name=”” set InitialSize=,MaximumSize=
To install an optional feature
At a command prompt, type: start /w ocsetup
Note: Using /w prevents the command prompt from returning until the installation completes. Without /w, there is no indication that the installation completed. Where featurename is the name of a feature from the following list:
Failover Clustering: FailoverCluster-Core
Network Load Balancing: NetworkLoadBalancingHeadlessServer
Subsystem for UNIX-based applications: SUACore
Multipath IO: MultipathIo
Removable Storage: Microsoft-Windows-RemovableStorageManagementCore
Bitlocker Drive Encryption: BitLocker
Note: To install the remote administration tool for BitLocker, type the following at a command prompt: start /w ocsetup BitLocker-RemoteAdminTool
Backup: WindowsServerBackup
Simple Network Management Protocol (SNMP): SNMP-SC
Windows Internet Name Service (WINS): WINS-SC
Telnet client: TelnetClient
To remove an optional feature, use start /w ocsetup with the appropriate role name and the /uninstall switch.
To set the administrative password
net user administrator *