"Computer" object does not contain ".info" and other objects after Microsoft.VisualBasic.Devices namespace is added to project

Looking to get some basic robot computer stats before a process runs. Using the Microsoft.VisualBasic.Devices namespace I should be able to this (as well as other info) but “My” is not available in the UiPath nor is “Computer.Info”

My.Computer.Info.TotalPhysicalMemory

Any ideas?

Hi @bnott,

After adding the Microsoft.VisualBasic.Devices namespace, you can create a variable of type Microsoft.VisualBasic.Devices.Computer and instantiate it with the expression New Computer(). Then, you can access the properties of the created variable like this : myVar.Info.OSFullName for example.

Hope it helps.

Regards.

Masiré.

3 Likes

Yes! That makes total sense now. Thank you for the quick response!