Linux
- Using ‘~’ in Linux paths or commands may not result in the expected behavior, as it will be specific to the user that runs the process (which may vary depending on the context of the command). Therefore, it is recommended not to use the ‘~’ in any commands.
- Using the (Linux) command shutdown -r now can cause the system to shut down too quickly for SquareOne to elegantly notice. Instead, it is preferred to use a short delay: shutdown -r +1
Windows
The Command and Terminal interfaces connect into a PowerShell process.
- Some commands use different arguments than their counterparts in a command prompt. For example: dir -b instead of dir /b
- Devices running a 32-bit version of Windows will not have a “C:\Program Files (x86)” folder. Care should be taken to modify the paths of post-install and start/stop commands accordingly.
- Backslashes in the Command interface are supported when they are part of a path (e.g. “C:\Program Files (x86)\SquareOne”, but not when they are part of a parameter (e.g. PowerShell commands that use a namespace, such as “Get-CimInstance –ClassName Win32_DeviceGuard –Namespace root\Microsoft\Windows\DeviceGuard”). For these commands, the Terminal interface is recommended.
- The PowerShell process runs as the LocalSystem user (‘nt authority\system’). In the terminal interface it is possible to create a sub-shell as a different user if required, by running the following command: & "C:\Program Files (x86)\SquareOne\command\psexec.exe" -u <user> -h powershell.exe