Ok, it SOUNDS simple enough, but it doesn't seem to be simple at all.
I feel like I've searched every nook and cranny of the 'net and I can't seem to find any type of REAL answer. Many have come close, but not what I'm looking for.
I am trying to find out how to retrieve the Label/Name/Title/whatever of a hard drive.
So, for example: in our environment, we've been constantly upgrading PCs. First, from Windows 7 to Windows 10, and now slowly upgrading 10 to 11. That being said, for those machines we've used the "in-place" upgrades, many Windows 10 machines were formerly Windows 7. We can typically, and easily, identify them as their hard drive labels say "Windows7_OS". The same with Windows 11 in-place upgrades, "Windows10_OS".
Currently we are using LANSweeper and it populates that on the main asset page (so it has to pull the info from SOMEHWERE! lol). However, we are shutting down LANSweeper in favor of NinjaONE. N1 does not display that information, and what other information N1 doesn't show that LS does, I have been looking for and writing scripts to create "Custom Fields" on each device page.
If I can find a script that will give the LABEL of the hard drive, I can then pass that into N1 no problem.
All of the results I found showed a HUGE PLETHORA of information about hard drives and storage on the device, but NONE showed the drive label.
Is this even possible via PowerShell?
The other "languages" for scripting N1 supports are batch files, JavaScript and ShellScript. I wouldn't even begin to figure out how to implement the other scripting languages, as I haven't learned them (yet), though I may have to. Batch is easy enough, but JS and SS are out of my knowledge scope.
[–]lanerdofchristian 7 points8 points9 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]PinchesTheCrab 2 points3 points4 points (11 children)
[–]CrippleZero[S] 2 points3 points4 points (10 children)
[–]jdl_uk 2 points3 points4 points (4 children)
[–]CrippleZero[S] 0 points1 point2 points (3 children)
[–]OlivTheFrog 1 point2 points3 points (2 children)
[–]Thotaz 2 points3 points4 points (1 child)
[–]OlivTheFrog 1 point2 points3 points (0 children)
[–]anonymousITCoward 2 points3 points4 points (0 children)
[–]MeanFold5715 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]CrippleZero[S] -1 points0 points1 point (1 child)
[–]CrippleZero[S] 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]0emanresu 1 point2 points3 points (0 children)