Questions tagged [systemmanagement]

26 questions
0
votes
1 answer

System.Management currently is only supported for Windows desktop applications

Here im using UWP Application for tracking Application closed or Open Im Getting This error While Loading startProcWatcher = new ManagementEventWatcher(scope, queryString); Code: string queryString = "SELECT TargetInstance" + …
Gosoddin
  • 11
  • 1
0
votes
1 answer

(VB.NET) Is There a Way to Get a List of the Categories from Device Manager?

I am working in VB.NET and trying to automate a driver install process. I am stuck on finding a way (if even possible?) to check the device manager. The driver in question makes it's own section/category (For lack of a better term. Similar to the…
Mike
  • 33
  • 8
0
votes
0 answers

SystemManagement - Find a Device instance Path

The code I tried to convert from a C# code to VB.Net code is attached. I was able to add the headers to a ListView. I couldn't get the DeviceID and Caption values. There is a loop inside the code. Since I converted the code from C# code to VB.Net…
0
votes
0 answers

Acquireing additional values from ManagementObjectSercher and ManagementObject

I am making my own hardware monitor like CPU-Z, I am trying to acquire my dedicated graphics card information, but it only returns my processors integrated graphics. public string GetPart(string part) { ManagementObjectSearcher…
Quivic
  • 1
  • 3
0
votes
1 answer

Shutdown IoT device from code

What I have is: VS 2017 Community, C#, Raspberry 3, IoT-Extension referenced. I want to shutdown the Raspberry from code. What I have found on the web everywhere is this: Edit the AppManifest. Add ...IgnorableNamespaces="uap mp iot"> (- which…
rlinner
  • 51
  • 5
0
votes
1 answer

ManagementObjectSearcher component queries

I'm trying to make a hardware monitizing program using C#. I have found the code to get the processor name on a Stack Overflow page. Now I want to get the GPU name, but I can't find the queries anywhere. I have looked around a lot, but because my…
0
votes
0 answers

Programmatically create a restore point

I checked around and even utilized/tweaked several solutions including the following, but I keep getting one of two errors. I either get ************** Exception Text ************** System.Runtime.InteropServices.COMException (0x80070422) at…
0
votes
1 answer

PowerShell AddCommand called from C# Exception

I am trying to build a C# console app that executes a series of PowerShell commands that run against an Azure Subscription. var line1 = "$cred = Get-Credential" var line2 = "Add-AzureAccount -Credential $cred" var psi =…
Snowy
  • 5,942
  • 19
  • 65
  • 119
0
votes
1 answer

Windows Application has stopped working in client Machine

I developed an applicatin using Visual Studio 2013 and made a Setup Exe file for my application and installed on client machines where they have both Windows7 gives exception. But when i install and run this application (exe) file in development…
Durgesh Pandey
  • 2,314
  • 4
  • 29
  • 43
0
votes
1 answer

Run Rails app as non-root user, but ask for root password to access files

I have been given the task to make the source files of a Rails application non-readable without providing a password (root user's password), so the client won't be able to peek inside the application (which will run on a machine which will be kept…
-2
votes
2 answers

How do you detect programmatically [c#] if a disk is offline?

In Windows 'Disk Management' there is a property of a drive that is 'online/offline'. How can I expose this property in for remote hardware? I know were it is not; it is not in: win32_logicaldisk, win32_diskdrive, CIM_LogicalDisk, &…
OpenAll
  • 13
  • 3
1
2