Function Repository Resource:

SystemInformationInputs

Source Notebook

Get inputs for extracting individual pieces of information about your system

Contributed by: Lou D'Andria

ResourceFunction["SystemInformationInputs"][]

opens a notebook containing inputs for calculating each element of SystemInformation[] separately.

ResourceFunction["SystemInformationInputs"][fmt]

returns the inputs in the specified format.

ResourceFunction["SystemInformationInputs"][fmt,comps]

returns the inputs for the specified components.

Details

Supported values for fmt include:
"Notebook" (default)open a notebook containing the input, and return a NotebookObject
"HeldExpressions"return a list of expressions with head Hold
"InactiveExpressions"return a list of expressions processed by Inactivate
"DeferredExpressions"return a list of expression with head Defer
"Pairs"return a list of matching {component, property} pairs
The value of comps can be a string or list of strings from SystemInformation["Components"].

Examples

Basic Examples (3) 

Open a notebook containing all the inputs used by SystemInformation[]:

In[1]:=
ResourceFunction["SystemInformationInputs"][]
Out[1]=

Return the inputs as a list of held expressions:

In[2]:=
ResourceFunction["SystemInformationInputs"][
  "HeldExpressions"] // Short
Out[2]=

Return the raw list of component and property name pairs:

In[3]:=
ResourceFunction["SystemInformationInputs"]["Pairs"] // Short
Out[3]=

Scope (2) 

Open a notebook with all the inputs for the given components:

In[4]:=
ResourceFunction[
 "SystemInformationInputs"]["Notebook", {"Devices", "Machine"}]
Out[4]=

Construct a list of all inputs for the "Parallel" component, each wrapped in Defer:

In[5]:=
ResourceFunction[
 "SystemInformationInputs"]["DeferredExpressions", "Parallel"]
Out[5]=

Properties and Relations (2) 

SystemInformation["Components"] returns the list of available components:

In[6]:=
SystemInformation["Components"]
Out[6]=

Count how many properties are available in each component:

In[7]:=
# -> Length[
    ResourceFunction["SystemInformationInputs"]["Pairs", #]] & /@ SystemInformation["Components"]
Out[7]=

Publisher

Lou D'Andria

Version History

  • 1.0.0 – 20 December 2022

Related Resources

License Information