I am unable to get a value from the registry, every time i run my code it returns a value of 'NoAutoRebootWithLoggedOnUser', even though the value should be 1.

What have i done wrong?

Thanks Chris1990,
Code:
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
         ''CheckStatus()

        Dim readValue As String
        readValue = My.Computer.Registry.LocalMachine.GetValue _
    ("SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU", "NoAutoRebootWithLoggedOnUser", Nothing)
        MsgBox("The value is " & readValue)
    End Sub