User Profile
yoyojammer
Copper Contributor
Joined 6 years ago
User Widgets
Recent Discussions
How can I check a DWORD name and use Greater Than command?
Hi all, not being a powershell expert but need help... Pushing out Desktop Runtime but finding a detection method is tricky, however a DWORD name is shown for that version in the same place in all machines so makes sense to use that. My issue is that I can write a powershell script to check that dword exists for that version in this case 6.0.13 but I want to check for version 6.0.7 and anything greater than that number but in the DWORD name rather than it's value... any ideas welcome! 🙂 Thanks $DWordName = "6.0.13" $Locations = "HKLM:\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sharedfx\Microsoft.WindowsDesktop.App" foreach($location in $locations) { if((get-itempropertyvalue -path $location -name $DWordName) -eq "1"){write-host "Value already exists"} write-output "installed" }1.4KViews0likes4Comments
Recent Blog Articles
No content to show