Windows 10: How can a script or EXE detect if it's running on a server?

Discus and support How can a script or EXE detect if it's running on a server? in Windows 10 Support to solve the problem; 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... Discussion in 'Windows 10 Support' started by contours, Sep 30, 2018.

  1. contours Win User

    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.

    :)
     
    contours, Sep 30, 2018
    #1

  2. long running script in email account

    Hi,

    The long-running script error usually occurs when there are issues with Internet Explorer.

    To resolve your concern, we suggest turning off the scripting debugger in Internet Explorer 11. Please follow these steps:

    • Open Internet Explorer.
    • Click the Settings icon at the top-right corner, then select Internet Options.
    • On the Advanced tab, uncheck Disable script debugging (Internet Explorer) and
      Disable script debugging (Other).
    • Click Apply, then OK.

    Once done, check if the issue will still persist.

    Update us with the outcome so we can provide further assistance.
     
    Ronalene Mat, Sep 30, 2018
    #2
  3. 'long running script' error

    Hi Sandi,

    The issue may occur due to setting configuration of your IE11. In order for us to assist you, please answer the questions below:

    • Were there any changes made prior to the issue?
    • What troubleshooting steps have you done so far?

    In the meantime, we suggest to check this thread:
    Message that website is not responding due to a long running script
    . Look for Don Varnau answer. It contains troubleshooting steps pertaining to the issue.

    We look forward to your response.
     
    Phillip Pio, Sep 30, 2018
    #3
  4. Eric Ber Win User

    How can a script or EXE detect if it's running on a server?

    Can't run .exe file

    Hi Phil,

    There are several reasons why you are having issues running .exe files on your Windows 10 laptop. To assist you better, kindly answer the questions below:

    • Have you made any changes to your laptop prior to this issue?
    • What troubleshooting steps have you done so far?
    • What is the error message that you received when running .exe files?

    Regards.
     
    Eric Ber, Sep 30, 2018
    #4
Thema:

How can a script or EXE detect if it's running on a server?

Loading...
  1. How can a script or EXE detect if it's running on a server? - Similar Threads - script EXE detect

  2. Microsoft Power BI Report Server .exe file is not running

    in Windows 10 Installation and Upgrade
    Microsoft Power BI Report Server .exe file is not running: Microsoft Power BI Report Server .exe file is not running https://answers.microsoft.com/en-us/windows/forum/all/microsoft-power-bi-report-server-exe-file-is-not/53f7c134-12c0-489a-88e5-2e551e6e5aae
  3. Microsoft Power BI Report Server .exe file is not running

    in Windows 10 Software and Apps
    Microsoft Power BI Report Server .exe file is not running: Microsoft Power BI Report Server .exe file is not running https://answers.microsoft.com/en-us/windows/forum/all/microsoft-power-bi-report-server-exe-file-is-not/53f7c134-12c0-489a-88e5-2e551e6e5aae
  4. Is there a script that can detect if color mode is running on Windows, and if so, can...

    in Windows 10 Gaming
    Is there a script that can detect if color mode is running on Windows, and if so, can...: Hi allSo I have succesfully created a Task in Task Scheduler for Windows 11 that allows me to send an Autohotkey ahk script that contains "Windows + Control + C", which successfuly toggles the color mode upon workstation login. There is a problem however, in that it TOGGLES,...
  5. Is there a script that can detect if color mode is running on Windows, and if so, can...

    in Windows 10 Software and Apps
    Is there a script that can detect if color mode is running on Windows, and if so, can...: Hi allSo I have succesfully created a Task in Task Scheduler for Windows 11 that allows me to send an Autohotkey ahk script that contains "Windows + Control + C", which successfuly toggles the color mode upon workstation login. There is a problem however, in that it TOGGLES,...
  6. How can you make a vbs script run in the background?

    in Windows 10 Network and Sharing
    How can you make a vbs script run in the background?: Basically, i have this script :Set WshShell = WScript.CreateObject"WScript.Shell"If WshShell.AppActivate"wordpad" = True thenWshShell.run "cmd.exe"end ifThe thing is that, i need it to run in the background for my script to workIf it's possible, i would rather have no command...
  7. How can you make a vbs script run in the background?

    in Windows 10 Gaming
    How can you make a vbs script run in the background?: Basically, i have this script :Set WshShell = WScript.CreateObject"WScript.Shell"If WshShell.AppActivate"wordpad" = True thenWshShell.run "cmd.exe"end ifThe thing is that, i need it to run in the background for my script to workIf it's possible, i would rather have no command...
  8. How can you make a vbs script run in the background?

    in Windows 10 Software and Apps
    How can you make a vbs script run in the background?: Basically, i have this script :Set WshShell = WScript.CreateObject"WScript.Shell"If WshShell.AppActivate"wordpad" = True thenWshShell.run "cmd.exe"end ifThe thing is that, i need it to run in the background for my script to workIf it's possible, i would rather have no command...
  9. Script running

    in Windows 10 BSOD Crashes and Debugging
    Script running: Every so often my computer will freeze on a page. I get a message push this button to stop the script, when I do this the page will unfreeze. https://answers.microsoft.com/en-us/windows/forum/all/script-running/95442ea7-9470-4cf6-815a-b9a626b9af61
  10. Running Script

    in Windows 10 Support
    Running Script: I am running Windows 10 / IE 11 and I keep getting a running script error (“Do you want to continue running scripts on this page”?) and it is driving me crazy. I am not real tech savvy so I don’t know where to look on how to. It just started doing it and I have been using...