Windows Administration

Some tools, tips, and tricks fr administering Smallworld under a Windows Client or Server

Users and Permissions

  • whoami /groups to display groups. (C:\Windows\System32\whoami.exe)
  • net group <grp_name> /domain to display the users belonging to a domain group.
  • net user <usr_name> /domain to display information about user including group membership

File Permissions

  • To make all magik files under a directory read-only try: attrib +R c:\Smallworld\*.magik /S

Symbolic Links

One proposed solution to locked files is to create symbolic links and replace the symbolic link.

mklink /d ..\..\shared_folder folder

Symbolic Link Permissions

Windows by default doesn't give permissions to do this, especially over network folders. You need to run the following in an elevated command.

fsutil behavior set SymlinkEvaluation L2L:1 R2R:1 L2R:1 R2L:1

System Information

  • wmic qfe list brief /format:csv > c:/temp/patches.csv This will list all the patches on your system and save it to a CSV file that can be viewed in a spread sheet program.
  • where <executable> to display the location of the executable.

Windows Ports

"netstat -a -b" will report all ports being used and which processes are using them

Java Information

Smallworld versions before 5.0 typically require 32 bit version of Java installed. At this time Java 8 is rolling out to more people and if you had Java 7 installed prior to installing Java 8, you may run into some problems.

Java Version mismatch

Do you are getting the following error message on the magik prompt and your application freezes upon starting?

Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'
has value '1.8', but '1.7' is required.
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.

Copy the 32 bit java, javaw, and javws EXE files from the java 8 install directory to C:\Windows\SysWOW64


Renaming '.' or 'Dot' files on Windows

In Explorer, select the file or directory and rename it to whatever you want like ".newfilename." and include the ending '.' Windows will take this as the new name without the last dot.

Windows Processes


WMIC provides a command line interface to the processes running on your machine. Some examples…

wmic process where "Name like '%java%'" get Name,CommandLine

system and compressed memory

I had a laptop with windows 8 and upgraded to windows 10. I kept hearing the fan go rev up when the system was idle. When I look at the task manager, I noticed that the process "system and compressed memory" was running at 20%. Looking on the web, I saw one spot where they suggested changing the Virtual Memory Settings from Automatic to a fixed size. That seemed to work a little, but I found another posting that said it was the Memory Diagnostics. I disabled this in the Task Scheduler, and it seemed to quiet the system down.

Windows Briefcase?

Do you miss the Windows Briefcase functionality to keep data synced between 2 folders, like thumb drive and desktop? You can restore that function by using the windows registry settings as seen below. This can be copied/pasted into a .REG file that you can import. It is supoosed to work on Windows 8 & 10. Source:

Shortcut Suffix

If you hate the "- Shorrtcut" suffix on all the shortcuts you create in Windows as much as I do, you will love this hack… Changing the registry value of HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Link to 00 00 00 00 and logging off immediately will stop the suffix from appearing. Below is the REG file contents to update your registry and the default user registry. [1] Don't forget you need to log/sign out. Restarting didn't seem to save the setting…

MSI Extraction

Do you need to extract an MSI file but do not want to actually instal it use the following… Probably needs to be run with Admin privileges.

msiexec /a "E:\core410.msi" /qb TARGETDIR=c:\temp\sw410

Windows 10 File Drag Stops

Do you see all of a sudden in Windows 10 the file drag (and drop) stops working. No errors, just different behavior? Try this fix, select a file with left mouse button and hold the LMB down. Then hit the escape key. May fix problem. [2] I've killed and restarted explorer before (note you need the task manager open to do a run.

Windows Network

This Page goes into some Windows network problems/fixes.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License