加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

W2K8 Update & Core

(2010-06-22 14:34:12)
标签:

杂谈

分类: 工作
Before W2K8 we are using the following batch file to do the update.
@echo off
for /f %%a in ('dir /b windows*.exe') do start /wait %%a /passive /norestart
 
Since W2K8 has the patch change to *.msu, we have to change our script.
 
Save following as "automsuupdater.cmd".

Usage:
automsuupdater.cmd "X:\Long Path To My Updates"
automsuupdater.cmd X:\Path\To\Updates
=======================
@echo
off
echo
.

REM
Check for folder. IF empty, show usage.
IF
"%1"=="" GOTO USAGE
REM
Check for folder. IF it doesnot exists, show error.
IF NOT EXIST
"%1" GOTO ERROR

REM
Processes all*.msu filesin %1 folder.
:PROCESS
ECHO
Please wait, processing update filesin %1...
FOR
%%F IN("%1\*.msu") DO(
echo
Processing: %%F...
start
/wait wusa"%%F" /quiet/norestart
)
echo
.
echo
Done.
GOTO
END

:USAGE
echo
.
echo
Usage:
echo
.
echo
.
echo
*) Path contains space(s):
echo automsuupdater
.cmd"X:\Long Path To My Updates"
echo
.
echo
*) Path doesnot contain space(s):
echo automsuupdater
.cmd X:\Path\To\Updates
echo
.
GOTO
END

:ERROR
echo
.
echo
The folder%1 doesnot exist.
echo
.

:END
echo
.
====================
All the patchs need to be in one directory for it to run.
 
***************************************************************************************
 
W2K8 also intraduced core role for the servers. Here the highlights and the command utilities of it.
 

Windows Server Core Characteristics:

  • Minimal server installation for running specific server roles
  • Reduces servicing, management and hardware requirements and attack surface!!!
    • No Windows/Internet Explorer
    • No .NET Framework
    • No Powershell
    • No features or whatever depending on the features listed above this one like for example notifications and balloons
  • Disk space required for a normal server: approx (min.) 7-8 GB
  • Disk space required for a server core server: approx (min.) 2-3 GB
  • Supported server roles (OCLIST.EXE): IIS (without ASP.NET), Print Server, Hyper-V, ADDS, ADLDS, DHCP Server, DNS, File Server (incl. NTFRS, DFS-R and DFS)
    REMARK: available roles may depend on Server Edition (standard, enterprise, datacenter, web)
  • Supported server features (OCLIST.EXE): Bitlocker, Clustering, NLB, Subsystem for UNIX apps, Windows Server Backup, Multipath IO, Removable Storage Management, SNMP, WINS (why the heck is this a feature and not a role?)
  • Install and Upgrade:
    • Not possible to upgrade from whatever windows version to server core
    • Manual install and after the server still needs to be configured (initial configuration tasks)
    • Unattended install using a UNATTEND.XML file where it is possible to configure the "initial configuration tasks" and other settings (e.g. enabling TS, configuring screen resolution, enabling and configuring WinRM/WinRS) during unattended install.
      • UNATTEND.XML file can be created with the "Windows System Image Manager"
      • Boot using WinPE and execute SETUP /unattend:<path>\unattend.xml
        OR
      • Place UNATTEND.XML in a default location (e.g. floppy)
  • Can be managed through
    • Locally and remotely via the Command Prompt (tools and scripts)
    • Remotely via Terminal Server --> admin mode must be enabled first!
    • Remotely via Windows Remote Shell --> remote management must be enabled first!
    • Remotely via MMC --> watch out for the firewall on the server which is enabled by default!

 

Command Line Utilities:

  • Command Line Reference
    (This setting displays a list of common tasks and how to perform them from the command line)
    • CSCRIPT.EXE %WINDIR%\SYSTEM32\SCREGEDIT.WSF /CLI
  • Viewing installed roles/features
    • OCLIST.EXE
  • Install/Uninstall component (roles/features)
    (To get a list of component names use OCLIST and copy the name into the command line. The name of the components is CASE-SENSITIVE!!!)
    • Start /W OCSETUP <component>
    • Start /W OCSETUP <component> /Uninstall
    • To install AD either one of the following IS required:
      • DCPROMO /UNATTEND:<answer file>
      • DCPROMO /ANSWER:<answer file>
      • DCPROMO /UNATTEND /OPTION1:<value1> /OPTION2:<value2> /OPTION1:<value3> /OPTION1:<value3> …..
  • Managing Registry
    • REGEDIT.EXE
    • REG.EXE
  • Creating notes/text files
    • NOTEPAD.EXE
    • EDIT.EXE
    • EDLIN.EXE
  • Disk/partition management:
    • DISKPART.EXE
    • FORMAT.EXE
    • CHKDSK.EXE
    • DEFRAG.EXE
  • Performance Related Stuff
    • DISKPERF.EXE
    • RELOG.EXE
    • LOGMAN.EXE
    • tracerpt.exe
    • typeperf.exe
  • Managing Power Related Options
    • POWERCFG.EXE
  • Managing Auditing on the local server
    • AUDITPOL.EXE
  • Network management (incl. firewall):
    • IPCONFIG.EXE
    • PATHPING.EXE
    • PING.EXE
    • TRACERT.EXE
    • NSLOOKUP.EXE
    • NBTSTAT.EXE
    • NETSTAT.EXE
    • NETSH.EXE (http://go.microsoft.com/fwlink/?LinkId=49654)
  • Service and driver management:
    • SC.EXE (http://www.ss64.com/nt/sc.html)
    • NET STOP and NET START
    • DRVLOAD.EXE
    • PNPUTIL.EXE
    • PRINTUI.EXE (for printer drivers only)
    • driverquery.exe
  • Backup and Restore
    • WBADMIN.EXE
  • Windows Management Interface (for all kinds of things to manage)
    • WMIC.EXE
  • Local User and group management:
    (http://support.microsoft.com/?id=251394 & http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_group.mspx?mfr=true)
    • NET.EXE USER …
    • NET.EXE LOCALGROUP…
  • Domain and computer name/account management:
    (http://technet2.microsoft.com/WindowsServer/en/Library/460e3705-9e5d-4f9b-a139-44341090cfd41033.mspx?mfr=true)
    • NETDOM.EXE
    • NLTEST.EXE
  • To change the time zone:
    • CONTROL.EXE TIMEDATE.CPL
  • To change international settings:
    • CONTROL.EXE INTL.CPL
  • To manage other CUSTOM CPLs (when available)
    • CONTROL.EXE <NAME>.CPL
  • Shutdown/reboot/restart server
    • SHUTDOWN.EXE
  • Manage Activation
    • CSCRIPT.EXE %WINDIR%\SYSTEM32\SLMGR.VBS
  • Manage Automatic Updates
    • CSCRIPT.EXE %WINDIR%\SYSTEM32\SCREGEDIT.WSF /AU [/v][value]
  • Allow Remote Administration Connections
    • CSCRIPT.EXE %WINDIR%\SYSTEM32\SCREGEDIT.WSF /AR [/v][value]
  • Allow connections from previous versions of Windows
    • CSCRIPT.EXE %WINDIR%\SYSTEM32\SCREGEDIT.WSF /CS [/v][value]
  • IP Security (IPSEC) Monitor - allow remote management
    • CSCRIPT.EXE %WINDIR%\SYSTEM32\SCREGEDIT.WSF /IM [/v][value]
  • Windows Remote Management/Shell
    • WINRM.CMD
    • WINRS.EXE
  • Applying a patch
    • Wusa.exe <patchname>.msu [/quiet] [/norestart]
  • Managing the Event Viewer
    • wecutil.exe
    • eventcreate.exe
    • wevtutil.exe
  • Managing CA & Certificates stuff
    • CERTREQ.EXE
    • CERTUTIL.EXE
  • DNS Management:
    • DNSCMD.EXE (http://go.microsoft.com/fwlink/?LinkId=49656)
    • DNS SRV priority - changes the priority for DNS SRV records (only useful on Domain Controllers)
      • CSCRIPT.EXE %WINDIR%\SYSTEM32\SCREGEDIT.WSF /DP [/v][value]
    • DNS SRV weight - changes the weight for DNS SRV records (only useful on Domain Controllers)
      • CSCRIPT.EXE %WINDIR%\SYSTEM32\SCREGEDIT.WSF /DW [/v][value]
  • DHCP Management:
  • AD Management
    • NTDSUTIL.EXE
    • DSAMAIN
    • dsadd.EXE
    • dsget.EXE
    • dsmod.EXE
    • dsmove.EXE
    • dsquery.EXE
    • dsrm.EXE
    • LDIFDE.EXE
    • GPUPDATE.EXE
    • GPRESULT.EXE
    • dcgpofix.exe
    • dfsrmig.exe
    • REPADMIN.EXE
    • redircmp.exe
    • redirusr.exe
    • gpfixup.exe
    • rendom.exe
    • DCDIAG.EXE
    • DSACLS.EXE
  • AD LDS Management
    • adaminstall.exe
    • adamuninstall.exe
    • adamsync.exe

 

More information about Server Core:

 
 

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有