SomaFM commercial free internet radio All posts tagged 'Windows-2008-core'

Paul Sturm

My notebook of discovered facts

Setup new disk on Server 2008 Core

Adding a disk is easy enough when it is a virutal machine.  Making use of the disk with diskpart still has a bit of a learning curve for me.

diskpart

DISKPART> list disk

DISKPART> select disk 1

DISKPART> create partition primary

DiskPart has encountered an error: The media is write protected.
See the System Event Log for more information.

DISKPART> attributes disk
Read-only  : Yes
Boot Disk  : No
Pagefile Disk  : No
Hibernation File Disk  : No
Crashdump Disk  : No

DISKPART> list disk

  Disk ###  Status      Size     Free     Dyn  Gpt
  --------  ----------  -------  -------  ---  ---
  Disk 0    Online        36 GB      0 B
* Disk 1    Offline      127 GB   127 GB

DISKPART> attributes disk clear readonly

Disk attributes cleared successfully.

DISKPART> online disk

DiskPart successfully onlined the selected disk.

DISKPART> convert dynamic

DiskPart successfully converted the selected disk to dynamic format.

DISKPART> create volume simple

DiskPart successfully created the volume.

DISKPART> list disk

  Disk ###  Status      Size     Free     Dyn  Gpt
  --------  ----------  -------  -------  ---  ---
  Disk 0    Online        36 GB      0 B
* Disk 1    Online       127 GB      0 B   *

DISKPART> list part

  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
  Partition 1    Dynamic Data       127 GB    32 KB

DISKPART> list vol

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     E   20081030_12  CDFS   DVD-ROM      342 KB  Healthy
  Volume 1     C                NTFS   Partition     36 GB  Healthy    System
* Volume 2                      RAW    Simple       127 GB  Healthy

DISKPART> format fs=NTFS label="FTP data"

  100 percent completed

DiskPart successfully formatted the volume.

DISKPART> assign letter=d

DiskPart successfully assigned the drive letter or mount point.

DISKPART> list vol

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     E   20081030_12  CDFS   DVD-ROM      342 KB  Healthy
  Volume 1     C                NTFS   Partition     36 GB  Healthy    System
* Volume 2     D   FTP data     NTFS   Simple       127 GB  Healthy

 


Permalink | Comments (221) | Post RSSRSS comment feed

Enable remote management to 2008 Server Core

It seems Microsoft's guys think that when a server is added to a domain (DOMAIN JOINED), no configuration is necessary but it was in my case:

  • netsh advfirewall firewall set rule group="Remote Administration" new enable=yes

Permalink | Comments (65) | Post RSSRSS comment feed

Add FTP service (IIS7) to server core

You'll need the following roles added in this order

  • start /w ocsetup IIS-WebServerRole 
  • start /w ocsetup IIS-IIS6ManagementCompatibility
  • start /w ocsetup IIS-Metabase
  • start /w ocsetup IIS-FTPPublishingService 
  • start /w ocsetup IIS-FTPServer 

Then, to make the service start on boot, use the following (it does require a space after the = sign)

  • sc config MSFTPSVC start= auto 
  • net start MSFTPSVC

Permalink | Comments (0) | Post RSSRSS comment feed

Server core commands

Windows 2008 Server Core requires setup via the command line.  Here are some items for common tasks:

Server core configurator; get the ISO and attach to your VM; browse the DVD drive and run Setup-Core.wsf

Add domain user to Administrators group

  • net localgroup Administrators /delete <domain\username>

Reboot the server

  • shutdown /r /t 0 

Rename the server

  • netdom renamecomputer <ComputerName> /NewName:<NewComputerName>

List installed patches

  • wmic qfe list 

Services (list/start/stop)

  • sc query; sc start; sc stop

Enable RDP for XP/2003

  • cscript C:\Windows\System32\Scregedit.wsf /ar 0
    • /ar will enable 2009/vista access
  • cscript C:\Windows\System32\Scregedit.wsf /cs 0
    • /cs enable 2003/xp
  • netsh advfirewall firewall set rule group="Remote Desktop" new enable=yes
    • adds rule to firewall for access


Permalink | Comments (310) | Post RSSRSS comment feed