adric.net

Longhorn
Login

Server Core

the secret is... c:\Windows\System32>cscript SCregEdit.wsf /?

usage

Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

Automatic Updates - Manage Automatic Windows Updates
These settings can be used to configure how Automatic Updates are applied to
the Windows system. It includes the ability to disable automatic updates and
to set the installation schedule.

/AU [/v][value]

        /v      View the current Automatic Update settings
        value   value you want to set to.

        Options:
        4 - Enable Automatic Updates
        1 - Disable Automatic Updates


Terminal Service - Allow Remote Administration Connections
This allows administrators to connect remotely for administration purposes.

/AR [/v][value]

        /v      View the Remote Terminal Service Connection setting
        value   (0 <h1> enabled, 1 </h1> disabled)


Terminal Service - Allow connections from previous versions of Windows
This setting configures CredSSP based user authentication for
Terminal Service connections

/CS  [/v][value]

        /v      View the Terminal Service CredSSP setting
        value   (0 <h1> allow previous versions, 1 </h1> require CredSSP)


IP Security (IPSEC) Monitor - allow remote management
This setting configures the server to allow the IP Security (IPSEC) Monitor to
be able to remotely manage IPSEC.

/IM [/v][value]

   /v   View the IPSEC Monitor setting
        value   (0 <h1> do not allow, 1 </h1> allow remote management)


DNS SRV priority - changes the priority for DNS SRV records
This setting configures the priority for DNS SRV records and is only useful
on Domain Controllers.
For more information on this setting, search TechNet for LdapSrvPriority

/DP [/v][value]

   /v   View the DNS SRV priority setting
        value   (value from 0 through 65535. The recommended value is 200.)

This allows administrators to connect remotely for administration purposes.

/AR [/v][value]

        /v      View the Remote Terminal Service Connection setting
        value   (0 <h1> enabled, 1 </h1> disabled)


Terminal Service - Allow connections from previous versions of Windows
This setting configures CredSSP based user authentication for
Terminal Service connections

/CS  [/v][value]

        /v      View the Terminal Service CredSSP setting
        value   (0 <h1> allow previous versions, 1 </h1> require CredSSP)


IP Security (IPSEC) Monitor - allow remote management
This setting configures the server to allow the IP Security (IPSEC) Monitor to
be able to remotely manage IPSEC.

/IM [/v][value]

   /v   View the IPSEC Monitor setting
        value   (0 <h1> do not allow, 1 </h1> allow remote management)

DNS SRV priority - changes the priority for DNS SRV records
This setting configures the priority for DNS SRV records and is only useful
on Domain Controllers.
For more information on this setting, search TechNet for LdapSrvPriority

/DP [/v][value]

   /v   View the DNS SRV priority setting
        value   (value from 0 through 65535. The recommended value is 200.)


DNS SRV weight - changes the weight for DNS SRV records
This setting configures the weight for DNS SRV records and is only useful
on Domain Controllers.
For more information on this setting, search TechNet for LdapSrvWeight

/DW [/v][value]

   /v   View the DNS SRV weight setting
        value   (value from 0 through 65535. The recommended value is 50.)


Command Line Reference
This setting displays a list of common tasks and how to perform them from
the command line.

/CLI</pre>


and /CLI yields:

<h3>CS CLI QuickRef</h3>
<pre>
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

To activate:
     Cscript slmgr.vbs -ato

To use KMS volume licensing for activation:
     Configure KMS volume licensing:
          cscript slmgr.vbs -ipk [volume license key]
     Activate KMS licensing
          cscript slmgr.vbs -ato
     Set KMS DNS SRV record
          cscript slmgr.vbs -skma [KMS FQDN]

Determine the computer name, any of the following:
     Set c
     Ipconfig /all
     Systeminfo.exe or Hostname.exe

Rename the Server Core computer:
     Domain joined:
          Netdom renamecomputer %computername% /NewName:new-name /UserD:domain-u
sername /PasswordD:*
     Not domain joined:
          Netdom renamecomputer %computername% /NewName:new-name

Changing workgroups:
     Wmic computersystem where name<h1>"%computername%" call  joindomainorworkgroup
 name</h1>"[new workgroup name]"

Install a role or optional feature:
     Start /w Ocsetup [packagename]
     Note: For Active Directory, run Dcpromo with an answer file.

View role and optional feature package names and current installation state:
     oclist

Start task manager hot-key:
     ctrl-shift-esc

Logoff of a Terminal Services session:
     Logoff

To set the pagefile size:
     Disable system pagefile management:
          wmic computersystem where name<h1>"%computername%" set AutomaticManagedPagefile</h1>False
     Configure the pagefile:
          wmic pagefileset where name<h1>"C:\\pagefile.sys" set InitialSize=500,MaximumSize</h1>1000

Configure the timezone, date, or time:
     control timedate.cpl

Configure regional and language options:
     control intl.cpl

Manually install a management tool or agent:
     Msiexec.exe /i [msipackage]

List installed msi applications:
     Wmic product

Uninstall msi applications:
     Wmic product get name /value
     Wmic product where name="[name]" call uninstall

To list installed drivers:
     Sc query type= driver

Install a driver that is not included:
     Copy the driver files to Server Core
     Pnputil -i -a [path]\[driver].inf

Rename a Network Adapter:
     netsh interface set interface name<h1>"Local Area Connection" newname</h1>"Private Network"

Disable a Network Adapter:
     netsh interface set interface name<h1>"Local Area Connection 2" admin</h1>DISABLED

Determine a file's version:
     wmic datafile where name="c:\\windows\\system32\\ntdll.dll" get version

List of installed patches:
     wmic qfe list

Install a patch:
     Wusa.exe [patchame].msu /quiet

Configure a proxy:
     Netsh winhttp set proxy [proxy_name]:[port]

Add, delete, query a Registry value:
     reg.exe add /?
     reg.exe delete /?
     reg.exe query /?