The Server Core Registry Editor (scregedit.wsf) is a script used to modify the registry on Server Core installations. The script is only available on Server Core installations, not full installations of Windows Server 2008 or Windows Server 2008 R2. The basic syntax of the command is
cscript %windir%\system32\scregedit.wsf /property value
Tip
cscript is the command-based script host used to execute the script file and must be entered first.
Because the path (%windir%\system32\, normally C:\windows\system32\) is not known to the system, it must be included in the command.
For example, if you want to enable remote desktop connections from other systems to the Server Core installation, you can use the following command:
cscript %windir%\system32\scregedit.wsf /ar 0
The /ar switch enables or disables remote connections. A value of 0 enables remote desktop connections and a value of 1 disables remote desktop connections. The following table shows the common properties and values used with scrededit.wsf.
/ar 0 | 1C:\>cscript %windir%\system32\scregedit.wsf /ar 0C:\>cscript %windir%\system32\scregedit.wsf /ar 1
/ar 0 | 1C:\>cscript %windir%\system32\scregedit.wsf /cs 0C:\>cscript %windir%\system32\scregedit.wsf /cs 1
Figure 1 shows this setting in the GUI of a full installation of Windows Server 2008 server (not a Server Core server). Notice that it shows that connections are only allowed From Computers running Desktop with Network Level Authentication (More Secure). This is the same setting as /cs with a value of 1 to require CredSSP.
C:\>cscript %windir%\system32\scregedit.wsf /cs /v
Note
/au 4 | 1C:\>cscript %windir%\system32\scregedit.wsf /au 4C:\>cscript %windir%\system32\scregedit.wsf /au 1
C:\>cscript %windir%\system32\scregedit.wsf /au /v
/im 0 | 1C:\>cscript %windir%\system32\scregedit.wsf /im 0C:\>cscript %windir%\system32\scregedit.wsf /im 1