Difference between revisions of "Windows 2008"

From vwiki
Jump to navigation Jump to search
(→‎Scheduled Tasks: Minor addition)
(→‎Troubleshooting: Added "Extend Partition Fails")
Line 33: Line 33:
* '''Error 2147943785'''  
* '''Error 2147943785'''  
** Logon failure: the user has not been granted the requested logon type at this computer.  Grant the user ''log on as a batch job'' rights in Local Security Policy, User Rights Assignment
** Logon failure: the user has not been granted the requested logon type at this computer.  Grant the user ''log on as a batch job'' rights in Local Security Policy, User Rights Assignment
=== Extend Partition Fails ===
Disk looks to have extended in disk manager, but file manager/windows explorer still show the old size
# Start <code> diskpart </code> from a command line
# List the volumes, then select the appropriate one
#* <code> list volume </code>
#* <code> select volume 2 </code>
# Extend the partition
#* <code> extend filesystem </code>

Revision as of 12:56, 17 May 2011

Build

Best practice for VMs (take with a pinch of salt)

Disable ASLR

Address space layout randomisation is a feature which involves randomly arranging the positions of key data areas, in order to mitigate memory snapshot image vulnerabilities (which is generally not a problem). There are suggestions that this can reduce reduce VMware's page sharing between VM's, increasing overall physical memory usage. However, its probably true that whilst memory page locations will be randomised, the VMkernel will still be able to match up identical pages between different OS instances.

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\"MoveImages"=dword:00000000

Procedures

Sysprep

  1. Start sysprep from C:\Windows\System32\sysprep\sysprep.exe
  2. Leave action as Enter System Out-of-Box Experience (OOBE) and tick the poorly spelt Generalize tick-box, then hit OK
  3. Sysprep will run and reboot the OS
    • You'll need to provide a new password, and any hostname and IP details will need updating

Troubleshooting

Default Gateway Loss

Known bug in Windows 2008 SP2 causes the default gateway of a machine to disappear on reboot. Resolved by resetting the IP stack and re-entering the IP config

  1. Record IP details
    • ipconfig/all > C:\ipconfig.txt
  2. Reset the IP stack
    • netsh int ip reset
  3. Restart server
  4. Re-enter IP config
  5. Reboot to confirm its held

There's a bugfix available from http://support.microsoft.com/kb/973243

Scheduled Tasks

  • Error 2147943712
    • You're trying to save a task that wants to save credentials (maybe because you want the task to run even when the user is logged off), but credential saving has been disabled by a GPO.
  • Error 2147943785
    • Logon failure: the user has not been granted the requested logon type at this computer. Grant the user log on as a batch job rights in Local Security Policy, User Rights Assignment

Extend Partition Fails

Disk looks to have extended in disk manager, but file manager/windows explorer still show the old size

  1. Start diskpart from a command line
  2. List the volumes, then select the appropriate one
    • list volume
    • select volume 2
  3. Extend the partition
    • extend filesystem