VBScript, check to see if registry keys exist before running script

Hi there, 
I am trying to run the following script in my environment and want to ensure that once it's run once and the registry keys are in place, it does not execute again/ run again as this causes issues. I am going
to set it up to run when users log into their machine via group policy so really need to make sure once run it won't execute again. Can anyone advise what I need to add to it to make sure it checks first for the keys in the registry before running again? e8cb48869c395445ade13e3c1c80d154
and 5cb93b24ff710741b7d83b9cb6317992 
'-=-=-=-=-=-=-=-=-=-=-=-=-=-
'Written By James McWhinney
'Vancouver BC, Canada
'www.importfanatik.com
'April 26th, 2006
'-=-=-=-=-=-=-=-=-=-=-=-=-=-
const HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set oReg=GetObject( "winmgmts:{impersonationLevel=impersonate}!\\" _
    & strComputer & "\root\default:StdRegProv")
RegistryFolder = "Software\Microsoft\Windows NT\" & _ 
  "CurrentVersion\Windows Messaging Subsystem\Profiles\OutlookProfile\"
LDAPdisplayname = "Domino Directory"
LDAPserver = "dominodirectory.company.co.uk"
LDAPport = "389"
LDAPsearchbase = "o=company.co.uk"
'Add Ldap Type Key
sKeyPath = RegistryFolder & "e8cb48869c395445ade13e3c1c80d154\"
oReg.CreateKey HKEY_CURRENT_USER, sKeyPath 
oReg.SetBinaryValue HKEY_CURRENT_USER, _
     sKeyPath, "00033009", Array(0,0,0,0)
oReg.SetBinaryValue HKEY_CURRENT_USER, _
     sKeyPath, "00033e03", Array(&H23,0,0,0)
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , _
     "001e3001", "Microsoft LDAP Directory"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , _
     "001e3006", "Microsoft LDAP Directory"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , _
     "001e300a", "EMABLT.DLL"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , _
     "001e3d09", "EMABLT"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , _
     "001e3d13", "{6485D268-C2AC-11D1-AD3E-10A0C911C9C0}"
oReg.SetBinaryValue HKEY_CURRENT_USER, sKeyPath, _
    "01023d0c", Array(&H5c,&Hb9,&H3b,&H24, _
    &Hff,&H71,&H07,&H41,&Hb7,&Hd8,_
    &H3b,&H9c,&Hb6,&H31,&H79,&H92)
'Add Ldap connection settings key
sKeyPath = RegistryFolder & "5cb93b24ff710741b7d83b9cb6317992\"
oReg.CreateKey HKEY_CURRENT_USER, sKeyPath
oReg.SetBinaryValue HKEY_CURRENT_USER, _
     sKeyPath, "00033009", Array(&H20,0,0,0)
oReg.SetBinaryValue HKEY_CURRENT_USER, sKeyPath, "000b6613", Array(0,0)
oReg.SetBinaryValue HKEY_CURRENT_USER, sKeyPath, "000b6615", Array(0,0)
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e3001", LDAPdisplayname
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e3d09", "EMABLT"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e3d0a", "BJABLR.DLL"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e3d0b", "ServiceEntry"
oReg.SetStringValue HKEY_CURRENT_USER, _
     sKeyPath , "001e3d13", "{6485D268-C2AC-11D1-AD3E-10A0C911C9C0}"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e6600", LDAPserver
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e6601", LDAPport
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e6602", ""
oReg.SetStringValue HKEY_CURRENT_USER, _
     sKeyPath , "001e6603", LDAPsearchbase
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , _
     "001e6604", "(&(mail=*)(|(mail=%s*)" & _ 
     "(|(cn=%s*)(|(sn=%s*)(givenName=%s*)))))"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e6605", "SMTP"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e6606", "mail"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e6607", "60"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e6608", "100"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e6609", "120"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e660a", "15"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e660b", ""
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e660c", "OFF"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e660d", "OFF"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e660e", "NONE"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e660f", "OFF"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e6610", "postalAddress"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e6611", "cn"
oReg.SetStringValue HKEY_CURRENT_USER, sKeyPath , "001e6612", "1"
oReg.SetBinaryValue HKEY_CURRENT_USER, sKeyPath, "001e67f1", Array(&H0a)
oReg.SetBinaryValue HKEY_CURRENT_USER, sKeyPath, "01023615", _
     Array(&H50,&Ha7,&H0a,&H61,&H55,&Hde,_
     &Hd3,&H11,&H9d,&H60,&H00,_
     &Hc0,&H4f,&H4c,&H8e,&Hfa)
oReg.SetBinaryValue HKEY_CURRENT_USER, sKeyPath, "01023d01", _
     Array(&He8,&Hcb,&H48,&H86,&H9c,&H39,_
     &H54,&H45,&Had,&He1,&H3e,&H3c,_
     &H1c,&H80,&Hd1,&H54)
oReg.SetBinaryValue HKEY_CURRENT_USER, sKeyPath, "01026631", _
     Array(&H98,&H17,&H82,&H92,&H5b,&H43,_
     &H03,&H4b,&H99,&H5d,&H5c,_
     &Hc6,&H74,&H88,&H7b,&H34)
oReg.SetBinaryValue HKEY_CURRENT_USER, sKeyPath, "101e3d0f", _
     Array(&H02,&H00,&H00,&H00,&H0c,&H00,_
     &H00,&H00,&H17,&H00,&H00,&H00,_
     &H45,&H4d,&H41,&H42,&H4c,&H54,_
     &H2e,&H44,&H4c,&H4c,&H00,&H42,_
     &H4a,&H41,&H42,&H4c,&H52,&H2e,_
     &H44,&Hc,&H4c,&H00)
'Append to Backup Key for ldap types
sKeyPath = RegistryFolder & "9207f3e0a3b11019908b08002b2a56c2\"
oReg.getBinaryValue HKEY_CURRENT_USER,sKeyPath, "01023d01",Backup
Dim oldLength
oldLength = UBound(Backup)
ReDim Preserve Backup(oldLength+16)
Backup(oldLength+1) = &He8
Backup(oldLength+2) = &Hcb
Backup(oldLength+3) = &H48
Backup(oldLength+4) = &H86
Backup(oldLength+5) = &H9c
Backup(oldLength+6) = &H39
Backup(oldLength+7) = &H54
Backup(oldLength+8) = &H45
Backup(oldLength+9) = &Had
Backup(oldLength+10) = &He1
Backup(oldLength+11) = &H3e
Backup(oldLength+12) = &H3c
Backup(oldLength+13) = &H1c
Backup(oldLength+14) = &H80
Backup(oldLength+15) = &Hd1
Backup(oldLength+16) = &H54
oReg.SetBinaryValue HKEY_CURRENT_USER, sKeyPath, "01023d01", Backup
'Append to Backup Key for ldap connection settings
sKeyPath = RegistryFolder & "9207f3e0a3b11019908b08002b2a56c2\"
oReg.getBinaryValue HKEY_CURRENT_USER,sKeyPath, "01023d0e",Backup
oldLength = UBound(Backup)
ReDim Preserve Backup(oldLength+16)
Backup(oldLength+1) = &H5c
Backup(oldLength+2) = &Hb9
Backup(oldLength+3) = &H3b
Backup(oldLength+4) = &H24
Backup(oldLength+5) = &Hff
Backup(oldLength+6) = &H71
Backup(oldLength+7) = &H07
Backup(oldLength+8) = &H41
Backup(oldLength+9) = &Hb7
Backup(oldLength+10) = &Hd8
Backup(oldLength+11) = &H3b
Backup(oldLength+12) = &H9c
Backup(oldLength+13) = &Hb6
Backup(oldLength+14) = &H31
Backup(oldLength+15) = &H79
Backup(oldLength+16) = &H92
oReg.SetBinaryValue HKEY_CURRENT_USER, sKeyPath, "01023d0e", Backup
'Delete Active Books List Key
sKeyPath = RegistryFolder & "9375CFF0413111d3B88A001" & _ 
           "04B2A6676\{ED475419-B0D6-11D2-8C3B-00104B2A6676}"
oReg.DeleteKey HKEY_CURRENT_USER, sKeyPath

this will help to read computer names from c:\computerlist.txt and connect to each computer and check if the registry exists or not. you need to make sure you run with user that has access to all the computer. this script only checks if the regkey exists
or not. you will have to include logic from your script as to what actually should happen when registry key not found.  as always please use this as example and use it at your own risk. 
Const HKEY_CURRENT_USER = &H80000001
Const FORREADING = 1
strComputer = "."
inFilename = "c:\Computerlist.txt"
Set fsoIn = CreateObject("scripting.filesystemobject")
Set inFile = fsoIn.OpenTextFile(inFilename, ForReading, True)
While Not inFile.AtEndOfStream
arrComputerNames = Split(inFile.Readline,",")
' arrComputerNames(0) contains the computer name
strComputer = arrComputerNames(0)
StrRegExistFlage = "No"
Set oReg=GetObject( "winmgmts:{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\EvOutlookDeploymentProfile"
oReg.EnumKey HKEY_CURRENT_USER, strKeyPath, arrSubKeys
If isarray(arrSubKeys) then
For Each subkey In arrSubKeys
If subkey = "e8cb48869c395445ade13e3c1c80d154" Then
StrRegExistFlage = "Yes"
ElseIf subkey = "5cb93b24ff710741b7d83b9cb6317992" Then
StrRegExistFlage = "Yes"
End If
Next
Else
Wscript.echo "Reg folder not found on computer " & strComputer
End If
If StrRegExistFlage = "Yes" Then
Wscript.echo "exit script on computer " & strComputer
Else
Wscript.echo "execute script on comptuer " & strComputer
End If
Wend
inFile.close

Similar Messages

  • Checking to see whether a user exists in a Windows Active Directory

    I have a little java applet that has to run through a large list of users, and for one of its tasks, it has to check to see whether that user exists. Mostly this is the same as running with local users, with the one exception that I can't just check to see if a home directory exists.
    Right now I am checking the return code from "net user <username>", but executing this program for every potential user is extremely slow.
    Are any java facilities to deal with users on the local system? If not, does anyone else have any suggestions?
    Also, a note for any responses- I'm using java to get around the lack of any easy way to set up a good scripting environment on Windows. I have a completed tool, and I don't want to rewrite it.

    <sarcasm>
    I seem to remember this service - what's it called? Ah, Google. Yes.
    </sarcasm>
    Try http://www.google.com/search?q=java+active+directory+query

  • Check for mounted DFS share with exists in apple script

    OS: OSX Mountain lion.
    Can any one advise how to detect if a DFS share is mounted or not?
    I have been using the following code:
    set volumeLabel to "R$"
    tell application "Finder"
      exists disk volumeLabel
    end tell
    Which works fine with a normal SMB shares or attached hard drives but I cant get it to work with a DFS Share, it always returns false (see attached screen shot.
    Also tried:
    if volumeLabel is in (do shell script "/bin/ls Volumes") then
              return true
    else
              return false
    end if
    Which didnt work with a DFS Share aswell.
    Any help appreciated.
    Cheers,
    Richard

    Hi,
    Since you're checking to see if a value exists in the Desktop key, you can do something along these lines:
    If (Get-ItemProperty -Path 'HKCU:\Control Panel\Desktop' -Name SCRNSAVE.EXE -ErrorAction SilentlyContinue) {
    Write-Output 'Value exists'
    } Else {
    Write-Output 'Value DOES NOT exist'
    EDIT: Sam, what version of PowerShell are you running? Your code doesn't seem to work for me on v4:
    PS C:\> Push-Location
    Set-Location "HKCU:\Control Panel"
    $Result = Test-Path -Path ".\desktop\SCRNSAVE.EXE"
    Pop-Location
    $Result
    False
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Availability, registry key exists, dword value not working

    Trying to deploy some updates based on a version number in a registry
    key. Unfortunately the test is failing regardless of what I set it to.
    For example, if my registry key is 14 (0x0000000e) and I set the
    application requirement for the key and value to exists and to be less
    than 16 (0x00000010), it still fails the check. ZDM 7 SP1 IR4 Netware
    6.5 SP8.

    Shaun Pond wrote:
    > Patrick,
    >
    > Patrick, Patrick, what am I going to do with you? :) My colleagues
    > sweat away writing TIDs, and you don't look for them :) Try TID 7003836
    >
    Shaun,
    Having now read that, can I say... wow.. In 2 IR's they haven't fixed
    something that they broke which is a significant piece of functionality?
    Especially if this is just a snapins issue? The workaround is to use
    an unsupported setup Just my 2 cents. I get the ugly feeling that this
    will never be fixed and the "official solution" will be to migrate to
    ZCM. Maybe you could light a fire under someones rear to move that up
    in the fix list...
    That does explain it however as I know I had used it in the past and
    I couldn't figure out what I was doing wrong.

  • Checking to see if a folder exists

    Hello,
      I am trying to save a file to a directory and if the directory does not exist I want to create it.  I have attached an image of a simple vi.  My problem is that when I run the vi and the directory does not exist I get a pop-up error window #7 that says the file was not found.  If I press continue my vi will behave normally and create the directory and file.  The strange thing is, I did a search and found someone with this problem and there was an example file DirTest.vi that someone created.  That file works fine, I do not get an error#7 pop-up window.  But when I try to create the same vi on my machine I get the Error #7 pop-up window.  I have LV version 8.0 and updated to 8.0.1 and I still have the same problem.
    Thanks for any help. 
    Attachments:
    Untitled 1d.png ‏3 KB

    This would be a better way to do what you're trying to do.  You want to check the error of the File/Directory Info VI for that error code 7 that you get.  This tells you that the file or folder doesn't exist, then you create it.  This way, you won't have to turn off error handling.  This is how I always check if a file exists.
    Message Edited by Marc A on 07-12-2006 02:58 PM
    Attachments:
    checkdir.PNG ‏8 KB

  • Unable to change registry key permissions using group policy

    In order to fix a problem with a piece of software not saving it's settings I need to change the permission on a registry key of our client machines.
    I've setup a GPO and in Computer Configuration -> Windows Settings -> Security Settings -> Registry specified the registry key I want to change the permission on, added our staff security group and given the full control over that key.
    The permission are not being changed and when I run rsop I'm getting the following error:
    The policy engine did not attempt to configure the setting.  For more information see %windir%\security\logs\winlogon.log on the target machine.
    I've looked in the winlogon.log file and can see nothing meaningful that relates to this GPO.  I set the logging to be verbose and this doesn't include any additional information.  There appears to be nothing meaningful in the event logs on the
    local machine.
    The OS is Windows 7 SP1
    Anybody shed any light why the policy wouldn't be applying the permissions to the registry key?

    Hi,
    Is this client running Windows 7 64bit? If so, this problem is expected since the Wow6432Node key is only recognizable in 64bit applications.
    Security Client Side extension is a 32 bit application and therefore cannot see the key to change permissions. In this situation, you need to change permission in HKLM/Software/[appname]. For more information, please refer to
    http://support.microsoft.com/kb/896459
    If it is Windows 7 32bit, this is a GPO not apply issue. Please check if the following registry keys exist on the Windows 7 client:
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SMART Technologies
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SMART Technologies Inc.
    If so, please help collect the following information:
    1.   
    Did this problem only occur on one Windows 7 client or occur on all Windows 7clients?
    2.   
    What’s the Operating System on the DC?
    3.   
    Enable debug logging for the Net Logon service. Reproduce the problem and check if there is any relevant error.
    Enabling debug logging for the Net Logon service
    http://support.microsoft.com/kb/109626
    Regards,
    Bruce

  • Configuration item to create a registry key in every HKEY_USERS key

    Hi,
    Would it be possible to create a configuration item that will create a registry key if not existing in every users under HKEY_USERS?
    Would a wildcard symbol (% or *) work for this?
    Ex.Check if the following registry keys is existing, if not remediate.
    HKEY_USERS\%\Console\%SystemRoot%_System32_WindowsPowerShell_v1.0_powershell.exe OR HKEY_USERS\*\Console\%SystemRoot%_System32_WindowsPowerShell_v1.0_powershell.exe
    Thanks!

    That's going to be really tricky, mainly because of permissions. I did something similar once for a different registry key. See as an example:
    http://www.petervanderwoude.nl/post/go-to-desktop-on-sign-in-on-windows-8-1-via-compliance-settings-in-configmgr-2012/
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • SCCM 2012 R2 Compliance Settings and registry key name

    Hello,
    in my baseline, i need to check if a registry key exists (..i know it's easy using an existential rule type), but i need to use the "LIKE" to compare the key name.
    Example: the registry key can have the name "RegKeyName_1" OR "RegKeyName_2" OR "RegKeyName_3" so i need to check something like "RegKeyName%"
    How can i do that? I hope it's clear...thanks!
    Paolo
    Bodo

    First you read the needed registry key values and then store them to variables, after that you compare these variables and return the value based on your needs.
    Some references on VBScript:
    http://ss64.com/vb/regread.html
    http://blogs.technet.com/b/heyscriptingguy/archive/2005/06/22/how-can-i-compare-two-string-values-regardless-of-letter-case.aspx

  • Check to see if field exisits in Recordset

    ASP/VB/Access
    Can anyone help me out with a function that checks to see if
    a field exists in a record set. I need to check it before I try and
    output it on the page and cause an error. Similar to checking to
    see if a field is null. The record set is being generated from a
    crosstab query in Access.
    Heres what I got so far
    function FieldExists(rs, fldname)
    Dim X
    on error resume next
    X= rs(fldname)
    if err.number = 0 then
    FieldExists = True
    else
    err.clear
    FieldExists = False
    end if
    End Function
    While ((Repeat1__numRows <> 0) AND (NOT rs_dates.EOF))
    If FieldExists(rs_info,
    rs_dates.Fields.Item("thedate").Value) Then
    Response.Write(rs_info.Fields.Item(""&(rs_dates.Fields.Item("thedate").Value)&"").Value)
    End If
    Repeat1__index=Repeat1__index+1
    Repeat1__numRows=Repeat1__numRows-1
    rs_dates.MoveNext()
    Wend
    Thanks

    Depending on what exactly you are trying to do here you probably need to do one or more of the following:
    1) Use a fully qualified record set reference of queryName.column.row:
    I.E.
    #rs_quthorized.county_name[2]#
    2) Loop over the recordset to search all the rows.  <cfoutput query="..."> or <cfloop query="..."> constructs make this rather easy to do, but nothing is preventing you from using any looping mechinism you care to use.
    3)Use the valueList(queryName.column) function to turn all the date from one column in the record set into a list.  This combined with either a listFind() or listContains() function will allow you to quickly search for a single value.

  • Adding Registry Keys To Code

    Is there any way of having code to create a registry key into the JAVA Script instead of when the program is installed, having it outside. I have heard in other languages that you can create a registry key within a few liens of code, is it also possible in JAVA?
    Example of another language:
    <registrySet>
    <key>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
    Control\Session Manager\Environment</key>
    <name>MY_APPDIR</name>
    <value>${installed}</value>
    </registrySet>

    Hi,
    You could add your own custom information to the custom alert fields of the alert.
    For more information, please review the link below:
    Updating custom alert fields using subscriptions and powershell
    http://blogs.msdn.com/b/steverac/archive/2010/08/17/updating-custom-alert-fields-using-subscriptions-and-powershell.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • The timer service encountered an exception checking for the upgrade mode registry key. Requested registry access is not allowed.

    Once in a while i get the error
    Event ID 6463
    The timer service encountered an exception checking for the upgrade mode registry key. Requested registry access is not allowed.
    This also happens when i restart the timer service.
    I already cleared the SharePoint cache (xml's) but no success with that.
    Environment is
    SharePoint 2013 SP1 + CU Dec 2014

    This is a brand new SP13 with SP1 installation after binaries installation i also installed Dec 2014 CU and then created the SP farm.
    The Apppool/Timer account is member of WSS_ADMIN_WPG.
    Issue can be reproduced with restarting SharePoint Timer Service.
    Hereby the Process Monitor output. Hence i filtered it on NOT SUCCESS and Path contains the word UPGRADE
    11:37:57,4244851 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\UpgradeLogLevelOverride
    NAME NOT FOUND Length: 144
    11:37:57,6632057 OWSTIMER.EXE
    6272 RegOpenKey
    HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\v4.0_policy.15.0.Microsoft.Office.Access.Services.Moss.Upgrade__71e9bce111e9429c
    NAME NOT FOUND Desired Access: Read
    11:37:57,6632889 OWSTIMER.EXE
    6272 RegOpenKey
    HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\policy.15.0.Microsoft.Office.Access.Services.Moss.Upgrade__71e9bce111e9429c
    NAME NOT FOUND Desired Access: Read
    11:37:57,7140763 OWSTIMER.EXE
    6272 RegOpenKey
    HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\v4.0_policy.15.0.Microsoft.PerformancePoint.Scorecards.Upgrade__71e9bce111e9429c
    NAME NOT FOUND Desired Access: Read
    11:37:57,7141089 OWSTIMER.EXE
    6272 RegOpenKey
    HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\policy.15.0.Microsoft.PerformancePoint.Scorecards.Upgrade__71e9bce111e9429c
    NAME NOT FOUND Desired Access: Read
    11:37:57,7313089 OWSTIMER.EXE
    6272 RegOpenKey
    HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\v4.0_policy.15.0.Microsoft.SharePoint.Portal.Upgrade__71e9bce111e9429c
    NAME NOT FOUND Desired Access: Read
    11:37:57,7313403 OWSTIMER.EXE
    6272 RegOpenKey
    HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\policy.15.0.Microsoft.SharePoint.Portal.Upgrade__71e9bce111e9429c
    NAME NOT FOUND Desired Access: Read
    11:37:59,2026527 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
    NAME NOT FOUND Length: 144
    11:37:59,2109400 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
    NAME NOT FOUND Length: 144
    11:38:05,3534303 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
    NAME NOT FOUND Length: 144
    11:38:05,3537846 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
    NAME NOT FOUND Length: 144
    11:38:05,3594290 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
    NAME NOT FOUND Length: 144
    11:38:05,3597316 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
    NAME NOT FOUND Length: 144
    11:38:05,3653094 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
    NAME NOT FOUND Length: 144
    11:38:05,3656118 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
    NAME NOT FOUND Length: 144

  • VBScript to Delete Registry Keys

    I have a VBscript that I use to delete some keys and change some keys in the registry. We use it in our environment because we have SCCM which ties Windows Update to the SCCM server. Sometimes that server doesn't have the latest updates, so I normally run
    this script and it deletes the keys that tie the computer to the SCCM server, and re-enables Windows Update.
    The script was working fine for quite some time, and still does work on Windows 7, however since I've upgraded to Windows 8 or 8.1, it no longer actually deletes the keys, it seems to run, but then when I open Windows Update, it's still disabled, and if
    I look under the appropriate keys in the registry, none of them are deleted. I think it must be some kind of security change in Windows 8 or something. Can anyone help me get this working under Windows 8?

    Hi,
    Please take a try to edit this registry key: EnableLinkedConnections, follow the steps below:
    1. Click Start, type regedit in the
    Start programs and files box, and then press ENTER.
    2. Locate and then right-click the registry subkey HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.
    3. Point to New, and then click DWORD Value.
    4. Type EnableLinkedConnections, and then press ENTER.
    5. Right-click EnableLinkedConnections, and then click
    Modify.
    6. In the Value data box, type 1, and then click
    OK.
    7. Exit Registry Editor, and then restart the computer.
    Here is a similar thread for reference:
    http://social.technet.microsoft.com/Forums/en-US/5fbf0b79-d3a1-428d-a45e-8ee650a10f82/logon-script-doesnt-work-in-windows-8?forum=ITCG
    More information here:
    Some Programs Cannot Access Network Locations When UAC Is Enabled
    Best regards
    Michael Shao
    TechNet Community Support

  • The specified registry key does not exist

    I recently reinstalled DPM 2012 R2 (fully updated) after deleting the protection groups, database, wiping the tapes, everything and reconfigured everything from scratch after it became too unstable to use.  Unfortunately since then I've found that the
    MSDPMCurr.errlog is full events that look like the following:
    163C      013C     
    03/05     18:01:13.420      
    09          
    ApplicationSettings_expanded.cs(1387)                               
    NORMAL            
    Ignoring exception in ReadRegistryKey System.IO.IOException: The specified registry key does not exist.
    163C      013C     
    03/05     18:01:13.420      
    09          
    ApplicationSettings_expanded.cs(1387)                               
    NORMAL            
       at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
    163C      013C     
    03/05     18:01:13.420      
    09          
    ApplicationSettings_expanded.cs(1387)                               
    NORMAL            
       at Microsoft.Win32.RegistryKey.GetValueKind(String name)
    163C      013C     
    03/05     18:01:13.420      
    09          
    ApplicationSettings_expanded.cs(1387)                               
    NORMAL            
       at Microsoft.Internal.EnterpriseStorage.Dls.Utils.ApplicationSettings.ReadRegistryKey(String registryKeyPath, String registryKeyName, Int32 registryValueKind)
    Unfortunately it doesn't tell me what registry key it's looking for so I can't find out if it exists. Is there any way of finding this out?

    Thanks for the advice, I found the vast majority of them were for cache entries and agree that these can be safely ignored.
    HKLM\SOFTWARE\Microsoft\Microsoft Data Protection Manager\Configuration\CacheInquiryResults\<protected server FQDN>
    However, I also found the following:
    HKLM\Software\Microsoft\Microsoft Data Protection Manager\Setup\RebootRequired
    HKLM\SOFTWARE\Microsoft\Microsoft Data Protection Manager\Configuration\gnorableSqlErrorNumbers
    HKLM\SOFTWARE\Microsoft\Microsoft Data Protection Manager\Configuration\CloudBackupEnabledApps
    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8AB21D86-21F0-430A-9AD1-2D90077104C3}
    HKLM\SOFTWARE\Microsoft\Microsoft Data Protection Manager\Configuration\UI
    All of these are missing from the registry is this likely to cause any issues?
    Edit: also found this repeated in a DPMRACurr.errlog:
    0E08    16CC    03/09    08:30:03.323    05    genericstatus.cpp(1256)    [0000000003C32AA0]    ED0A1862-1405-438A-ABC8-22CFD64C278E    NORMAL  
     Wait for CallUpdateQfesInstalledRegKey succeeded. Returning m_QfesInstalled = 31
    0E08    16CC    03/09    08:30:03.338    03    schannelutils.cpp(129)        ED0A1862-1405-438A-ABC8-22CFD64C278E    WARNING  
     Failed: Hr: = [0x80070002] : Error trying to open RegKey [HKLM\Software\Microsoft\Microsoft Data Protection Manager\Agent\2.0\Certificates\<FQDN of backup server>]

  • Which Windows registry key can be used to check if Adobe CS5, CS6 or CC is installed?

    I need to check which product is installed on my machine programmatically. Whether it is Adobe CS6, Adobe CS6 or Adobe CC.
    Which registry key I can use to check exact version?  Knowing just major version will also do

    This won't be easy, but you can get the address table by sending IOCTL_TCP_QUERY_INFORMATION_EX to \Device\TCP as documented
    here. You'll need to spend some time looking at TCPIOCTL.H in the SDK, too. If you search the Internet for IOCTL_TCP_QUERY_INFORMATION_EX, you'll find some hints on how to use it.
     -Brian
    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

  • I can not re-install/ update apple iTunes on my HP PC running Win7-64.  I get a registry key error when installing and am asked to make sure I have access.  IT is a home PC with one user and I have admin priveledges.

    When the updater notified me of an iTunes update, I selected the update option.  The update failed and killed the version I was running.  I have tried for a year to fix the problem without sucess.  I can't completely remove all Apple products.  I can not install any apple products especially iTunes which is the only one I am interested in.
    When I install iTunes now I get a registry key error similar to this:
    I am using a machine where I am the only user and am the Admin.   I have looked at the security settings on this key and see nothing wrond with it or the parent keys.  I tried removing all apple products but ran into similar problems.  At this time I still have Bonjour. Mobile Device Support, Software Update, and Application Support installed.

    These ones are tricky. But the following instructions are worth a try.
    First do a complete uninstall of iTunes and related components (but don't reinstall just yet), as per the following document:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    a. Launch regedit (Start >> Search Programs and Files >> type Regedit and open the regedit that comes up.)
    b. Access the following Location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData \S-1-5-18\Components
    c. Perform the following actions
    i. Right Click on Components Folder
    ii. Select Permissions
    iii. Select Full Control and Read Permissions options
    iv. Select Advanced Button
    v. Select Owner Tab
    vi. Select to Change Owner to the Administrators
    vii. Check the option “Replace owner on subcontainers and objects”
    viii. Select OK when prompted that it may not change all.
    ix. Select Apply
    x. Select Apply again
    xi. Exit the Registry Editor
    Now try reinstalling iTunes again. Does it go in properly this time?

Maybe you are looking for