New
#1
How can a script or EXE detect if it's running on a server?
What call or query can I make to determine whether the PC my software is running on is a single-user PC or a server? For example, is there a registry entry to check?
The utility systeminfo.exe can return a comprehensive summary with lines for "OS Name:" and "OS Configuration:". But what I'd like is something far simpler: IsServer=Yes/No.
If there is no single parameter to check, then is "OS Configuration" a reliable indication? If so, what does a server version have on that line. (I don't have access to a server to test this ... and my development PC shows Standalone Workstation.)
Thanks in advance for any help.