windows-server

How to check my windows server is virtual machine or physical machine

◇◆丶佛笑我妖孽 提交于 2019-11-29 12:13:32
问题 I'm remoting desktop to windows servers in our Lab/datacenter. I have a requirement to figure out all our servers are virtual machines or physical servers programatically, certainly we have the environment sheet tell us which is which. But I need to write code to distinguish it. What technique I need to use? I didn't find a .Net Assembly to do that. Looking for expert to share your knowledge or guidance, any research direction or link, anything will be appreciated! 回答1: You can try to use the

How do I install GD on my windows server version of PHP

女生的网名这么多〃 提交于 2019-11-29 06:42:00
I am running Windows Server 2003 and need to install a version of GD. Can anyone point out some instructions or advice? Check php_gd2.dll is in your extension directory and uncomment ;extension=php_gd2.dll of your php.ini . You need to edit your php.ini (found in your C:/PHP folder if you installed PHP here). Add the following line (or remove the ; before it if it exists in there): extension=php_gd2.dll In Windows download related Debug Pack on php.net download page, it's contain most useful modules. After, uncomment related extension, for example to gd2: ;extension=php_gd2.dll on php.ini and

Determining if the program is running on Windows Server

ε祈祈猫儿з 提交于 2019-11-28 07:00:57
I would like to determine if my program is running on a version of Windows Server. Apparently, System.Environment does not contain information about the fact that Windows is a server version (there is no such info in the OS version object ). I know that I can use SystemInformation.TerminalServerSession to check whether my program is running on a Remote Desktop (see also this question ), but this will also be true if the user is simply accessing a plain client Windows machine remotely. So is there a supported way of determining if the code is running on a server or on a client machine? I don't

Which version of Python do I have installed?

寵の児 提交于 2019-11-26 12:49:30
问题 I have to run a Python script on a Windows server. How can I know which version of Python I have, and does it even really matter? I was thinking of updating to the latest version of Python. 回答1: python -V http://docs.python.org/using/cmdline.html#generic-options --version may also work (introduced in version 2.5) 回答2: Python 2.5+: python --version Python 2.4-: python -c 'import sys; print(sys.version)' 回答3: In a Python IDE, just copy and paste in the following code and run it (the version