phlegmer
Forum Replies Created
-
AuthorPosts
-
%6[1.0b]B / %5[1.0b]B
Appears to work quite nicely for the At-A-Glance display.
Thanks!
Hmmm, still not quite right. The labels are no longer correct (TB, GB, etc).
Attachments:
No quotas active and always run DI as Admin.
Thanks
Couldn’t get it whittled down to 1 line. 🙁 I resorted to having it call the script and all looks as it should. Quite the work around but it is what it is.
Thanks!
OK, I think I have some alternate PS script that will output what I would like sans CR/LF
123$Computer = gwmi Win32_operatingSystem | Select-Object Caption, OSArchitecture$Computer = "$($Computer.Caption) ($($Computer.OSArchitecture))" | % {$_.replace("Microsoft ","")}$ComputerI’ve distilled it to 2 lines. The last (3rd) line is just to show the output in PS.
I can’t quite figure out how to DesktopInfo’ize it so that it will work in the .ini. 🙁
-
This reply was modified 2 years ago by
phlegmer.
Allow me to explain.
Before we had it show the following:
Windows Server 2019 (64-Bit)With the cool new CMD feature you showed me, I can get
Windows Server 2019Can the %OSArchitecture% somehow be appended to the end of the command you sent? Or maybe can “gwmi Win32_OperatingSystem | % OSArchitecture” type code be used on the left column along with a little text?
If not, not a big deal but thought I’d ask. 🙂
Oh boy! So close. Now if I can tag on
gwmi Win32_OperatingSystem | % OSArchitecture
or
WMI=namespace:root\cimv2,query:Win32_OperatingSystem,display:%OSArchitecture%
at the end, I think life will be good again. 🙂
Since the OS Version ini option now uses an WMI call, the added “Microsoft” text really messes with my right column mojo.
This PS script really returns what I’m hoping to have
gwmi Win32_OperatingSystem | % Caption | % split ' ' 2 | select -last 1
Oh well, guess I just need to be patient and see what v2.5 will bring. 🙂
This is kind of what I’m looking for but not sure if REGEX can be used in the .ini
https://stackoverflow.com/questions/27306449/powershell-gwmi-win32-operatingsystem-trim-output
Sorry, I probably should have mentioned this. I always run DTI as admin because I have noticed from previous DTI version I wouldn’t always get accurate feedback otherwise.
Thanks!
-
AuthorPosts