Windows Administration

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

Users and Permissions

  • whoami /groups to display groups
  • 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

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.

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

Misc

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

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: http://winaero.com/blog/how-to-add-the-briefcase-feature-in-windows-10/

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Briefcase\ShellNew]
"IconPath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
  00,79,00,6e,00,63,00,75,00,69,00,2e,00,64,00,6c,00,6c,00,2c,00,30,00,00,00
"ItemName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
  6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
  00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,\
  2d,00,36,00,34,00,39,00,33,00,00,00
"Directory"=""
"Handler"="{85BBD920-42A0-1069-A2E4-08002B30309D}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Briefcase\ShellNew\Config]
"IsFolder"=""
"NoExtension"=""
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License