GithubHelp home page GithubHelp logo

Comments (3)

NeverHere avatar NeverHere commented on June 10, 2024

Updating to WSM 5.1 seems to resolve this issue, it might be worth adding that as a step to the documentation.

from mdefordownlevelserver.

James3UK avatar James3UK commented on June 10, 2024

Deploying this script with ManageEngine returns "Unsupported OS version: 0.0.0.0" I think this is because it runs under a local system service it appears fine when run manually.

Two ways to fix this, both reliant on the "UBR" registry value for the revision so option 1 is probably better (get it all from the registry):

EDIT: Turns out I needed option 2 as Option 1 did not work on some 2012 R2 servers due to CurrentMajorVersionNumber returning 0

Option 1:

$osRegkeys = Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion'
$osVerObj = New-Object System.Version $($osRegkeys.CurrentMajorVersionNumber), $($osRegkeys.CurrentMinorVersionNumber), $($osRegkeys.CurrentBuild), $($osRegkeys.UBR)

Option 2:

$osRegkeys = Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion'
$osVerWMI = (Get-CimInstance Win32_OperatingSystem).version.split('.')
$osVerObj = New-Object System.Version $($osVerWMI[0]), $($osVerWMI[1]), $($osVerWMI[2]), $($osRegkeys.UBR)

from mdefordownlevelserver.

pahuijbr avatar pahuijbr commented on June 10, 2024

Should be resolved

from mdefordownlevelserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.