{
	"id": "f344525e-dfdb-4ffd-aa64-0c41f95ea00d",
	"created_at": "2026-04-06T00:19:39.23135Z",
	"updated_at": "2026-04-10T13:12:16.188086Z",
	"deleted_at": null,
	"sha1_hash": "88bc756c943867a6d59baa2041ccb4d75fb8912a",
	"title": "Environment Property",
	"llm_title": "",
	"authors": "",
	"file_creation_date": "0001-01-01T00:00:00Z",
	"file_modification_date": "0001-01-01T00:00:00Z",
	"file_size": 57966,
	"plain_text": "Environment Property\r\nArchived: 2026-04-05 16:32:45 UTC\r\nReturns the WshEnvironment object (a collection of environment variables).\r\n object.Environment ([strType])\r\nArguments\r\nobject\r\nWshShell object.\r\nstrType\r\nOptional. Specifies the location of the environment variable.\r\nThe Environment property contains the WshEnvironment object (a collection of environment variables). If\r\nstrType is supplied, it specifies where the environment variable resides with possible values of System, User,\r\nVolatile, or Process. If strType is not supplied, the Environment property returns different environment variable\r\ntypes depending on the operating system.\r\nType of Environment Variable Operating System\r\nSystem Microsoft Windows NT/2000\r\nProcess Windows 95/98/Me\r\nNote\r\nFor Windows95/98/Me, only one strType is permitted — Process.\r\nThe following table lists some of the variables that are provided with the Windows operating system. Scripts can\r\naccess environment variables that have been set by other applications.\r\nNote\r\nNone of the following variables are available from the Volatile type.\r\nhttps://docs.microsoft.com/en-us/previous-versions//fd7hxfdd(v=vs.85)?redirectedfrom=MSDN\r\nPage 1 of 4\n\nName Description System User\r\nProcess\r\n(NT/\r\n2000)\r\nProcess\r\n(98/ME)\r\nNUMBER_OF_PROCESSORS\r\nNumber of processors\r\nrunning on the machine.\r\nX - X -\r\nPROCESSOR_ARCHITECTURE\r\nProcessor type of the\r\nuser's workstation.\r\nX - X -\r\nPROCESSOR_IDENTIFIER\r\nProcessor ID of the user's\r\nworkstation.\r\nX - X -\r\nPROCESSOR_LEVEL\r\nProcessor level of the\r\nuser's workstation.\r\nX - X -\r\nPROCESSOR_REVISION\r\nProcessor version of the\r\nuser's workstation.\r\nX - X -\r\nOS\r\nOperating system on the\r\nuser's workstation.\r\nX - X -\r\nCOMSPEC\r\nExecutable file for the\r\ncommand prompt\r\n(typically cmd.exe).\r\nX - X X\r\nHOMEDRIVE\r\nPrimary local drive\r\n(typically the C drive).\r\n- - X -\r\nhttps://docs.microsoft.com/en-us/previous-versions//fd7hxfdd(v=vs.85)?redirectedfrom=MSDN\r\nPage 2 of 4\n\nName Description System User\r\nProcess\r\n(NT/\r\n2000)\r\nProcess\r\n(98/ME)\r\nHOMEPATH\r\nDefault directory for\r\nusers (typically\r\n\\users\\default in\r\nWindows 2000).\r\n- - X -\r\nPATH\r\nPATH environment\r\nvariable.\r\nX X X X\r\nPATHEXT\r\nExtensions for executable\r\nfiles (typically .com,\r\n.exe, .bat, or .cmd).\r\nX - X -\r\nPROMPT\r\nCommand prompt\r\n(typically $P$G).\r\n- - X X\r\nSYSTEMDRIVE\r\nLocal drive on which the\r\nsystem directory resides\r\n(typically c:\\).\r\n- - X -\r\nSYSTEMROOT\r\nSystem directory (for\r\nexample, c:\\winnt). This\r\nis the same as WINDIR.\r\n- - X -\r\nWINDIR\r\nSystem directory (for\r\nexample, c:\\winnt). This\r\nis the same as\r\nSYSTEMROOT.\r\nX - X X\r\nTEMP Directory for storing\r\ntemporary files (for\r\n- X X X\r\nhttps://docs.microsoft.com/en-us/previous-versions//fd7hxfdd(v=vs.85)?redirectedfrom=MSDN\r\nPage 3 of 4\n\nName Description System User\r\nProcess\r\n(NT/\r\n2000)\r\nProcess\r\n(98/ME)\r\nexample, c:\\temp).\r\nTMP\r\nDirectory for storing\r\ntemporary files (for\r\nexample, c:\\temp).\r\n- X X X\r\nExample\r\nThe following code retrieves the system environment variable NUMBER_OF_PROCESSORS.\r\nSet WshShell = WScript.CreateObject(\"WScript.Shell\")\r\nSet WshSysEnv = WshShell.Environment(\"SYSTEM\")\r\nWScript.Echo WshSysEnv(\"NUMBER_OF_PROCESSORS\")\r\nvar WshShell = WScript.CreateObject(\"WScript.Shell\");\r\nvar WshSysEnv = WshShell.Environment(\"SYSTEM\");\r\nWScript.Echo(WshSysEnv(\"NUMBER_OF_PROCESSORS\"));\r\nApplies To:\r\nWshShell Object\r\nSee Also\r\nReference\r\nWshEnvironment Object\r\nSource: https://docs.microsoft.com/en-us/previous-versions//fd7hxfdd(v=vs.85)?redirectedfrom=MSDN\r\nhttps://docs.microsoft.com/en-us/previous-versions//fd7hxfdd(v=vs.85)?redirectedfrom=MSDN\r\nPage 4 of 4",
	"extraction_quality": 1,
	"language": "EN",
	"sources": [
		"MITRE"
	],
	"origins": [
		"web"
	],
	"references": [
		"https://docs.microsoft.com/en-us/previous-versions//fd7hxfdd(v=vs.85)?redirectedfrom=MSDN"
	],
	"report_names": [
		"fd7hxfdd(v=vs.85)?redirectedfrom=MSDN"
	],
	"threat_actors": [],
	"ts_created_at": 1775434779,
	"ts_updated_at": 1775826736,
	"ts_creation_date": 0,
	"ts_modification_date": 0,
	"files": {
		"pdf": "https://archive.orkl.eu/88bc756c943867a6d59baa2041ccb4d75fb8912a.pdf",
		"text": "https://archive.orkl.eu/88bc756c943867a6d59baa2041ccb4d75fb8912a.txt",
		"img": "https://archive.orkl.eu/88bc756c943867a6d59baa2041ccb4d75fb8912a.jpg"
	}
}