Registry key string values disappearing with SCOM
I'm trying to determine why some registry key string values are disappearing when Windows Server 2008 machines are restarting. In all cases, System Center Operations Manager is installed on the server. The registry keys whose string values are deleted are
HKLM\System\CurrentControlSet\Services\IISADMIN, HKLM\System\CurrentControlSet\Services\W3SVC, and HKLM\System\CurrentControlSet\Services\WAS.
The string value is the same in all cases. The string data item is called "Environment" and the string multisz value is "COR_ENABLE_PROFILING=0x1".
Does SCOM, or part of it such as the Avicode monitor, cause these values to be removed when a system is restarted?
Thanks,
Bob
Bob,
SCOM2007 will do nothing in that sense, unless it is integrated with AVIcode --> but that would mean you have TWO agents on the machine (the SCOM and the AVIcode agent), since they were two separate products... where you run your other profiler,
you should not use AVIcode.
SCOM2012 installs the APM piece with its agent... but leaves it DISABLED until you configure it. While it is disabled, no rule that touches configuration gets applied to it. Once you do ENABLE the APM functionality, then yes, we will go and change the registry
key adding ourselves (APM) as profiler... because that is what the configuration to tells us to do. If you REMOVE that configuration, we'll clear ourselves out of it.
But again, it requires configuration to be done -- otherwise, out of the box, we do none of this.
Similar Messages
-
Forms.INS(72) No String value associated with this variable
When I try to distribute my application I need to make sure that
when my app installs it either adds or creates the environment
variable Forms60_Path. This can be done in the project
builder. When going through this one of the steps you have
ability to add new environment variables. So I add on one named
Forms60_Path with a value and contents of %PROD_HOME% and with
the append set to yes.
This now will give me either one or two errors when installing
the application. The first error is that because i am choosing
append set to yes it doesn't appear to be checking if the
variable is already there or not. What it does do is give me a
messages saying "A file not found while trying to translate
Forms60_Path from '$Oracle' would u like to retry, ignore or
process' I have choosen to process and the installer correctly
adds the registry entry. That is a good thing but i still
should not recieve an error when doing this it should check to
see if the Reg entry is there if not then create it, if it is
there then append to it. This only happens if you have append
set to yes and the environment variable does not exist in the
registry yet.
The second error is more concerning because it just cancels out
of the install all together. What it does no matter what under
any circurmstance after you have added an environment variable
in the delivery wizard is give u a message saying that
"Form_Name.INS(72) No String Value associated with this
variable" This error always comes up no matter what. After
looking throught the INS file I took out the line
"win32_register_map_variable(repl_var);" and I no longer
recieved that error. My question is why do I get this error and
what is the ramifications of taking this line out of the INS
file?
If no one else has had these problems I will be simply amazed!!!
Thanks,
Spencer Tabbert
nullSpencer,
I am also getting the error you got months ago. (The second one: FORM.ins(72): No string value associated with this variable.) Can you tell me how you were able
to fix it? I would appreciate it.
I am new to Project Builder and pretty
confused.
Thanks,
Monika -
How are the "Key" string values encoded in PerformancePoint services Database ParameterValues table
Hi,
As you know, performancepoint stores user selections for Filters in "ParameterValues" table in PerformancePoint Service database.
I noticed that UserValues/Key is encoded. Does anyone know what encoding scheme is used ? For example, I see below text in SerializedXml column for one of the records.
<UserValues>
<Key>72DE084F5B6A4E0BCBBF348E2A4A09EF</Key>
</UserValues>
Thanks & Regards
Poomani SankaranHi Sinoth
You'll probably find they are being passed with commas between the values. The system will only see the first value. You would need to get clever and concatenate values into a single string then get the function to break it apart in a loop.
Best wishes
Michael -
Displaying Key Fig values differently with german & english logins
HI,
our BW Datamodel, reports etc have been built on a german system, i.e. with german language (DE) login. Hence Key Figs in the BEX Reports are displayed as 12.345.678,000 Euros for example. We need to make the same reports available in English, i.e. with an english language login (EN). The KeyFigs need to look like 12,345,678.00. How can I achieve this?
Pls help. Thanks.
SDHi Sebastian,
You can do this in the User profile settings for the User.
Goto System Menu - > User Profile -> Own data . In the Defaults tab you can change the Decimal notation.
Regards,
Hari
Edited by: Hari Krishnan K on Jul 12, 2010 7:32 PM -
Make the data for a registry key point to the installati​on folder of my app.
I have an application that creates files with a unique file extension (.myextension). These files should be associated with a particular icon so that the icon is shown when they are viewed in Windows Explorer, etc. I know how to do this when I create an installer by adding several registry keys and values under the [HKEY_CLASSES_ROOT] key as shown below.
key name type data
[HKEY_CLASSES_ROOT]
.myextension (Default) REG_SZ Myextension.file.type.record
Myextension.file.type.record (Default) REG_SZ Text description of file type
DefaultIcon (Default) REG_SZ path to the icon file.
The key for the file extension record (.myextension) has a default value where the data points to the key for the file type record (Myextension.file.type.record). The data for the default value of the Myextension.file.type.record key is just a description for the file type. There is also a subkey called DefaultIcon. The data for it's default value is the path to the file containing the icon that is to associated with the file type. If the file contains more than one icon, it may be necessary to modify the data (path) to indicate which icon to use.
So, this is all good if path to the file containing the icon is known. I added an icon file to the build when I built my application and it will be installed in a known location within the directory where my application is installed. The location is [InstallDirectory]data\myicon.ico, where [InstallDirectory] is the directory where my application is installed. The installation process, including the addition of registry keys is handled by an installer that I have created. The problem arises when the user choses to install to a location other than the default directory specified in the installer. I can't know before hand where that will be. How can I specify the path in the DefaultIcon key so that it points to the correct location after installation? Is there some symbol that I can use for the installation directory so that the path will be set correctly at installation time?Hi cbfsystems,
If correctly understand what you are trying to do, check this out. This shows you how to add a user-specified install directory to a registry entry in the installer build spec.
Cheers,
Brian A.
National Instruments
Applications Engineer -
Hi Experts,
I have a scenario in PI, where I have 1 Header, n Data Records and 1 Trailer in the source file. This data is coming in CSV format.
I am using FCC to convert CSV into XML.
In the FCC, I have used keyFieldValue parameter. For the Header Record, the Key Field Value is constant "H"; for Trailer Record the key field value is constant "T".
However for Data Record, the key field value is not constant. The first character of Key field of Data Record will always be "D", but rest of the Alphabets can change.
Sample File:
"H","3.04",22/10/2009,16:31:12
"D2S",21/10/2009,20:00:26,"20044",00666,"S",1
"D2S",22/10/2009,14:26:20,"20044",00668,"S",1
"D0S",22/10/2009,08:33:34,"00044",04165,"S",1
"D0S",22/10/2009,11:59:59,"00044",04166,"S",1
"T",1393.27,1393.27,8
Here, first line is Header Line (Key Field Value "H"), Last Line is Trailer Line (Key Field Value "T") and all lines in between Header and Trailer are Data Records (Key Field Value starts with "D). I need to convert this file into XML.
I have no clue, if this can be converted into XML through FCC.
Any help will be highly appreciated.
Regards,
Varun>
Varun Agarwal wrote:
> Sample File:
>
"H","3.04",22/10/2009,16:31:12
> "D2S",21/10/2009,20:00:26,"20044",00666,"S",1
> "D2S",22/10/2009,14:26:20,"20044",00668,"S",1
> "D0S",22/10/2009,08:33:34,"00044",04165,"S",1
> "D0S",22/10/2009,11:59:59,"00044",04166,"S",1
> "T",1393.27,1393.27,8
>
> Here, first line is Header Line (Key Field Value "H"), Last Line is Trailer Line (Key Field Value "T") and all lines in between Header and Trailer are Data Records (Key Field Value starts with "D). I need to convert this file into XML.
>
> I have no clue, if this can be converted into XML through FCC.
> Any help will be highly appreciated.
>
>
> Regards,
> Varun
Write a simple module. The module will do a replace of the Dxx fields to D (you can use simple regex function for this)
After the module, use the messagetransformbean to do the FCC for you.
The module might sound complex, but trust me its a simple logic you need to implement and you can easily do the FCC with the messagetransformbean -
Adding a Registry Key via Group Policy on Windows server 2008 R2
Hi all;
I need to add the following Registry Key and values to several PCs across the network, I tried doing so via a logon script and via Registry Preferences through GP but it didn't work!
Method 1: Logon script:
regedit.exe /S \\bbk-files\BBK Templates\slxbasic.reg
The slxbasic.reg contains the following:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SalesLogix\ADOLogin\Connection1]
"Alias"="BBKSLX_PRODUCTION"
"Provider"="SLXOLEDB.1"
"Initial Catalog"="BBKSLX_PRODUCTION"
"Data Source"="BBK-SLX1"
"DBUser"=""
"Extended Properties"="PORT=1706;LOG=ON"
Method 2: GP Preference:
I add the above mentioned values via the GP Preference for the Registry and still didn't work, I also tried the Registry wizard and imported the required Registry info from another PC and still didn't work.
When I check the GP result for the required PCs, I see that the GP is applied, but when I check the registry, I don't find the required values their!
Please help.Hi,
>>When I'm processing a GP results report, I'm processing it for a certain PC and a certain user, and I look at the User's applied policies and I can find the policy
there.
How is the issue going? Are we still unable to see the value in the Registry?
>>Users have permissions on the shred drive and can navigate to the location and run the .reg file manually.
After we ran the script manually, did we check the Registry to see if the value had been changed?
Best regards,
Frank Shen -
Hi,
I am running BPA on My Exchange 2010 VM (Server 2008 R2 VM on Hyper-V) and get the following errors:
The 'Services' string type value located in 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Setup\Services' registry key is missing or inaccessible. The Microsoft Exchange Information Store service won't start. As a result, all services that depend
on this service won't be able to start
Exchange server [Exchange Server FQDN] is a virtual machine but the additional tools are not installed. This configuration is not supported. Install Virtual Machine Additions for this guest.
Problem is that, for the first, that Key exists and the service is actually running fine. And for the second my VM tools are already installed.
Hopefully someone out there has had the same issue and can assist.
PeteHi Pete,
For the first error message, please try the following steps:
Make sure the Information Store service is in Starting status,
Automatic startup type and works well, as a test we can try to
restart the Infroamtion Store service and verify the service works well.
Start
Registry Editor, find the registry key “Services” under “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Setup”, its value is “C:\Program
files\Microsoft\Exchange Server\v14”(default install location), please check your registry, make sure the key “Services” exist and value is the Exchange Server install location and the
location is accessible;
Start
Registry Editor, and locate the following registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Exchange\Setup
Use the
Permission option under the Security tab to check the permission setting on this key. Make sure
System is in the list with Full Control permissions if the service account is Local System. If you are not using Local System as the service account, check the existence of the corresponding account in the list and ensure that
it has Full Control permissions. Please refer to this article:
Title: Exchange Store Does Not Start: Errors 7024, 1026, 9542, and 5000
Link:
http://support.microsoft.com/kb/285116
Start
ADSI Edit, and then browse to the following location:
Domain.com/Configuration/Services/Microsoft Exchange/Org/Administrative Groups/AdminGroup/Servers/Server Name
Right-click the
server name, and then click Properties.
Click the
Security tab, make sure this own server’s server object have
full control permission on its own server.
If not or the object is missing, please modify the permission or click
Add, locate the computer account for the Exchange Server computer, add it to the Permissions list with full control.
Click OK, and then close ADSI Edit.
Use
Active Directory Users and Computers to add the current affected
Exchange Server computer account to the Exchange Servers(previous version should be “Exchange Domain Servers”) group in the
Microsoft Exchange Security Groups( or Users) OU. Refer to this article:
http://support.microsoft.com/kb/297295.
Restart the Exchange Server computer, then rerun the ExBPA.
For the second error message, Microsoft don’t recommend to install Exchange Server on virtual machine without additional tools, so the error message occurs. We can just ignore
this message, it will not affect the Exchange servers.
Regards, Eric Zou -
Registry-based discovery does not show non key property value
Hi,
Discovered Inventory shows instances of my new class correctly, but the non key property ServerType appears but has no value. I have confirmed each instance does have the registry value populated. What can I do?
I see the following Event 31876 on one of the clients:
Data item returned no information for parameter '$Data/Values/ServerType$'
This usually indicates that the query is incorrect.
Detailed Background:
My custom application is made of 8 different computer roles.
HKLM\SOFTWARE\Vendor\Appname exists = true indicates an instance of my app.
HKLM\SOFTWARE\Vendor\Appname\ServerType indicates the actual server role.
I want an initial hosted class (VendorServer) based on Microsoft.Windows.Computer base class to contain all server roles.
Then I will create 8 hosted classes (VendorServerRoleA, VendorServerRoleB, etc) for each server role based on the initial hosted class (VendorServer).
My discovery for VendorServer class created instances, and I see ServerType as a property in Discovered Inventory, but it is blank for all instances. Should I expect to see ServerType populated where I mapped it as follows:
Name =
$MPElement[Name="MPName.VendorServer"]/ServerType$
Value =
$Data/Values/ServerType$
Does $MPElement need to reference the discovery object instead of the class object (which it currently does)?
I started with a blank MP and then create the new VendorServer class based on Microsoft.Windows.ComputerRole and added the new Property, ServerType as a non key property.
The discovery targets Microsoft.Windows.Computers. Is it ok to have the discover target one class and the VendorServer class have a different base class?
My build event was simply if HKLM\SOFTWARE\Vendor\Appname exists
I am hesitant to proceed to create my VendorServerRoleA class based on HKLM\SOFTWARE\Vendor\Appname\ServerType=AAA until what I have built so far works completely, unless it is not expected to do so.
A related question. Once I have classes for each server role, can I target monitorA at multiple classes, or do I need to create a new monitor for each class?
This authoring learning curve is so steep as I am sure many of you already know. MUCH thanks for help...<ManagementPack ContentReadable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<Manifest>
<Identity>
<ID>Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack</ID>
<Version>1.1.1.1</Version>
</Identity>
<Name>Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack</Name>
<References>
<Reference Alias="SC">
<ID>Microsoft.SystemCenter.Library</ID>
<Version>6.0.6278.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
<Reference Alias="Windows">
<ID>Microsoft.Windows.Library</ID>
<Version>6.0.6278.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
<Reference Alias="Health">
<ID>System.Health.Library</ID>
<Version>6.0.6278.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
<Reference Alias="System">
<ID>System.Library</ID>
<Version>6.0.6278.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
</References>
</Manifest>
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.IFSSubsystemServer" Accessibility="Internal" Abstract="false" Base="Windows!Microsoft.Windows.ComputerRole" Hosted="true" Singleton="false">
<Property ID="ServerType" Type="string" Key="false" CaseSensitive="false" Length="256" MinLength="0" />
</ClassType>
<ClassType ID="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.IFSSubsystemServerCDC" Accessibility="Internal" Abstract="false" Base="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.IFSSubsystemServer" Hosted="true"
Singleton="false" />
</ClassTypes>
</EntityTypes>
</TypeDefinitions>
<Monitoring>
<Discoveries>
<Discovery ID="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.DiscoverIFSSubsystemServer" Enabled="true" Target="Windows!Microsoft.Windows.Computer" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.IFSSubsystemServer" />
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
<ComputerName>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>KeyExists</AttributeName>
<Path>SOFTWARE\Thales\IFSBOSystem</Path>
<PathType>0</PathType>
<AttributeType>0</AttributeType>
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>300</Frequency>
<ClassId>$MPElement[Name="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.IFSSubsystemServer"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.IFSSubsystemServer"]/ServerType$</Name>
<Value>$Data/Values/ServerType$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Values/KeyExists</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">true</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</DataSource>
</Discovery>
<Discovery ID="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.DiscoverIFSSubsystemServerCDC" Enabled="true" Target="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.IFSSubsystemServer" ConfirmDelivery="false" Remotable="true"
Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.IFSSubsystemServerCDC" />
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>ServerTypeCDCTrue</AttributeName>
<Path>SOFTWARE\Thales\IFSBOSystem\ServerType</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>300</Frequency>
<ClassId>$MPElement[Name="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.IFSSubsystemServerCDC"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.IFSSubsystemServer"]/ServerType$</Name>
<Value>$Data/Values/ServerType$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Values/ServerTypeCDCTrue</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">CDC</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</DataSource>
</Discovery>
</Discoveries>
</Monitoring>
<LanguagePacks>
<LanguagePack ID="ENU" IsDefault="true">
<DisplayStrings>
<DisplayString ElementID="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack">
<Name>Thales IFS Subsystem Discovery Monitoring Management Pack</Name>
<Description>The purpose of this management pack is to monitor the health of various components of the Thales IFS subsystem servers including server types CDC CRD DC MWS PMS and SUP.</Description>
</DisplayString>
<DisplayString ElementID="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.DiscoverIFSSubsystemServer">
<Name>Discover IFS Subsystem Server</Name>
</DisplayString>
<DisplayString ElementID="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.DiscoverIFSSubsystemServerCDC">
<Name>IFS Subsystem CDC Server</Name>
</DisplayString>
<DisplayString ElementID="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.IFSSubsystemServer">
<Name>IFS Subsystem Server</Name>
<Description>CDC CRD DC MWS PMS SUP</Description>
</DisplayString>
<DisplayString ElementID="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.IFSSubsystemServer" SubElementID="ServerType">
<Name>ServerType</Name>
<Description>CDC CRD DC MWS PMS or SUP</Description>
</DisplayString>
<DisplayString ElementID="Thales.IFS.Subsystem.Discovery.Monitoring.ManagementPack.IFSSubsystemServerCDC">
<Name>IFS Subsystem CDC Server</Name>
</DisplayString>
</DisplayStrings>
</LanguagePack>
</LanguagePacks>
</ManagementPack> -
SCCM Query to Find Registry Key Value That is IP Address
I am try to create a collection that will show all computers with the following registry value:
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\SNMP\Parameters\TrapConfiguration\mesnet]
"1"="10.213.11.221"
Does anyone know how to create the query? Ive already updated the mof files on SCCM. Thanks.This is what I entered in the Config.mof file:
// RegKeyToMOF by Mark Cochrane (thanks to Skissinger, Steverac, Jonas Hettich & Kent Agerlund)
// this section tells the inventory agent what to collect
// 9/25/2012 9:20:39 AM
#pragma namespace ("\\\\.\\root\\cimv2")
#pragma deleteclass("mesnet", NOFAIL)
[DYNPROPS]
Class mesnet
[key] string KeyName;
String 1;
[DYNPROPS]
Instance of mesnet
KeyName="RegKeyToMOF_32";
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\services\\SNMP\\Parameters\\TrapConfiguration\\mesnet|1"),Dynamic,Provider("RegPropProv")] 1;
#pragma namespace ("\\\\.\\root\\cimv2")
#pragma deleteclass("mesnet_64", NOFAIL)
[DYNPROPS]
Class mesnet_64
[key] string KeyName;
String 1;
[DYNPROPS]
Instance of mesnet_64
KeyName="RegKeyToMOF_64";
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\services\\SNMP\\Parameters\\TrapConfiguration\\mesnet|1"),Dynamic,Provider("RegPropProv")] 1;
This is what I added to the sms_def.mof file:
// RegKeyToMOF by Mark Cochrane (thanks to Skissinger, Steverac, Jonas Hettich & Kent Agerlund)
// this section tells the inventory agent what to report to the server
// 9/25/2012 9:20:39 AM
#pragma namespace ("\\\\.\\root\\cimv2\\SMS")
#pragma deleteclass("mesnet", NOFAIL)
[SMS_Report(TRUE),SMS_Group_Name("mesnet"),SMS_Class_ID("Custom|mesnet|1.0"),
SMS_Context_1("__ProviderArchitecture=32|uint32"),
SMS_Context_2("__RequiredArchitecture=true|boolean")]
Class mesnet: SMS_Class_Template
[SMS_Report(TRUE),key] string KeyName;
[SMS_Report(TRUE)] String 1;
#pragma namespace ("\\\\.\\root\\cimv2\\SMS")
#pragma deleteclass("mesnet_64", NOFAIL)
[SMS_Report(TRUE),SMS_Group_Name("mesnet"),SMS_Class_ID("Custom|mesnet|1.0"),
SMS_Context_1("__ProviderArchitecture=64|uint32"),
SMS_Context_2("__RequiredArchitecture=true|boolean")]
Class mesnet_64 : SMS_Class_Template
[SMS_Report(TRUE),key] string KeyName;
[SMS_Report(TRUE)] String 1;
I'd like to gather a report on computers that do not have this setting. Once I identify those computers that need this config, i plan on pushing out a package so that they are properly configured. -
Bug with custom edm mapping without registry key
Hello!
I have use custom mapping for boolean type by standart scheme:
<oracle.dataaccess.client>
<settings>
<add name="bool" value="edmmapping number(1,0)" />
</settings>
</oracle.dataaccess.client>
But this is not working if the registry key "HKLM\SOFTWARE\Oracle\ODP.NET" doesn't exists.
With reflector I found the reason in your internal class Oracle.DataAccess.ClientRegAndConfigRdr
static RegAndConfigRdr()
RegistryKey registryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Oracle\\ODP.NET");
if (registryKey == null)
return;
string[] subKeyNames = registryKey.GetSubKeyNames();
string assemblyVersion = OracleInit.GetAssemblyVersion();
for (int index = 0; index < subKeyNames.Length; ++index)
if (assemblyVersion == subKeyNames[index])
RegAndConfigRdr.odpNetKey = registryKey.OpenSubKey(assemblyVersion);
RegAndConfigRdr.RetrieveInfoFromConfig(RegAndConfigRdr.m_configSection, ref RegAndConfigRdr.s_storedProcInformation, false);
RegAndConfigRdr.ValidateEdmMapping();
I think you must correct this condition. Because of reading for mapping types is located at RegAndConfigRdr.RetrieveInfoFromConfig method.
WBR, AlexandreI will soon take a look at it, and update this thread with feedback.
Cheers,
Jean-Francois
Jean-Francois-
There's no built-in mapping to support this. One problem with it is that
if the user mutates the Map so that the file name and the file object's
name do not match, then that couldn't be stored to the datastore, so
data fidelity fails in some cases.
However, given that you are willing to accept that, you might be able to
do this by using a "map" mapping, setting both the "key-column" and
"value-column" to the same column, and then setting an externalizer
on the "value-column" that stores the File object as a String. I don't
know if this has ever been tested, but I don't see any reason why it
wouldn't work.
You can read more about externalizers at:>
http://docs.solarmetric.com/manual.html#ref_guide_mapping_fieldmapping_extern
If you do try it, I'd be interested in hearing the results of this
mapping experiment.
In article <d80ts3$tej$[email protected]>, J-F Daune wrote:
Hi all,
is it possible to use a map mapping without a join table ?
I face this issue for mapping a relation between two classes using a UML
qualifier. Imagine, for instance, a SwPackage made of several File each
having a unique name.
The implementation model would be a SwPackage class with a Map using file
name as key and File instance as value.
The 'natural' data model would be
- SW_PACKAGE table with POID surrogate key
- FILE table with its own POID, a SW_PACKAGE_POID foreign key and a NAME
column
Kodo does not provide a direct mapping for this, as it would require a
SW_PACKAGE_HAS_FILE join table holding the 'name' value.
I am reluctant changing so much my data model to a 'non-natural' form.
I am currently thinking of using a Set in my SwPackage class for Kodo
mapping, and programmatically replicating its content in a Map.
Is there a more clever way to handle this with Kodo ? Maybe with a custom
mapping ?
Regards,
Jean-Fran__ois
Marc Prud'hommeaux
SolarMetric Inc. -
Change string value by adding a transaction key in T156
Hello expert,
My client want to add the transaction key BSX in the string value used for the code movement 261 k (good issue
of supplier consignment stock).
SAP Active Global Support respond that changes of value string for standard movement types are not supported.
However we want if possible to change that : is there a way to do that?
Thanks for your response.
Céline OualiHi,
If you just want to use new transaction or account modifier without changing value/quantity string, you can do that in T156X.
Otherwise, i.e. to update value/quantity string -
Create a custom value string with reference to SAP standard WA03. Update the Value/Quantity string for movement type 261 K in table T156S. Goto SE11 - Display Contents - Create/Maintain Entries.
You need to add custom transaction keys/account modifiers for value strings in table T156W.
Thanks
Venkata Ganesh Perumalla -
Hi,
I am trying to install SQL server 2012/SQL Server 2014 and I constantly keep getting this error and the Management Tools fails to install.
'Could not write values to registry key \SOFTWARE. Verify you have sufficient access or contact support personnel'
Tried installing even SQL Server 2008 and still get the same error.
Below is the log i get from C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140705_151943\sql_ssms_Cpu64_1.log
MSI (s) (FC:D8) [15:22:55:746]: Executing op: RegAddValue(Name=SQLPath,Value=C:\Program Files (x86)\Microsoft SQL Server\110\Tools,)
MSI (s) (FC:D8) [15:22:55:746]: Executing op: RegOpenKey(Root=-2147483646,Key=SOFTWARE,,BinaryType=0,,)
MSI (s) (FC:D8) [15:22:55:746]: Executing op: RegAddValue(,,)
MSI (s) (FC:D8) [15:22:55:746]: Note: 1: 1406 2: 3: SOFTWARE 4: 5
MSI (s) (FC:D8) [15:22:59:434]: Product: SQL Server 2012 Management Studio -- Error 1406. Could not write value to key \SOFTWARE. System error . Verify that you have sufficient access to that key, or contact your support personnel.
Error 1406. Could not write value to key \SOFTWARE. System error . Verify that you have sufficient access to that key, or contact your support personnel.
MSI (s) (FC:D8) [15:23:03:435]: User policy value 'DisableRollback' is 0
MSI (s) (FC:D8) [15:23:03:435]: Machine policy value 'DisableRollback' is 0
Action ended 15:23:03: InstallFinalize. Return value 3.
Just not able to figure out what the problem is, can someone help?
ThanksHi,
Thanks for providing log
Following is in the log.
01) 2014-07-09 11:08:53 Slp: Could not write value to key \SOFTWARE. Verify that you have sufficient access to that key, or contact your support personnel.
(01) 2014-07-09 11:08:58 Slp: Watson bucket for generic failure has been created
(01) 2014-07-09 11:08:58 Slp: Error: Action "Install_sql_ssms_Cpu64_Action" failed during execution.
(01) 2014-07-09 11:08:58 Slp: Completed Action: Install_sql_ssms_Cpu64_Action, returned False
(01) 2014-07-09 11:08:59 Slp: ----------------------------------------------------------------------
(01) 2014-07-09 11:08:59 Slp: Running Action: Install_sql_tools_Cpu64_Action
(01) 2014-07-09 11:08:59 Slp: Sco: File 'D:\Softwares\SQL2012\DeveloperEdition\x64\setup\x64\sql_tools.msi' does not exist
(01) 2014-07-09 11:07:00 Slp: Sco: File 'D:\Softwares\SQL2012\DeveloperEdition\x64\setup\x64\sql_ssms.msi' does not exist
(01) 2014-07-09 11:07:00 Slp: Checkpoint: PREINSTALL_SQL_SSMS_CPU64_ACTION
(01) 2014-07-09 11:07:00 Slp: Sco: Waiting for service 'msiserver' to accept the stop request.
(01) 2014-07-09 11:07:00 Slp: Sco: Attempting to open SC Manager
(01) 2014-07-09 11:07:00 Slp: Sco: Attempting to open service handle for service msiserver
(01) 2014-07-09 11:07:00 Slp: Invoking QueryServiceStatus Win32 API
(01) 2014-07-09 11:07:00 Slp: Sco: Attempting to close service handle for service msiserver
(01) 2014-07-09 11:07:00 Slp: Sco: Attempting to close SC Manager
(01) 2014-07-09 11:07:00 Slp: Target package: "D:\Softwares\SQL2012\DeveloperEdition\x64\setup\sql_ssms.msi"
(01) 2014-07-09 11:07:57 Slp: MSI Error: 1406 Could not write value to key \SOFTWARE. Verify that you have sufficient access to that key, or contact your support personnel.
(01) 2014-07-09 11:08:38 Slp: InstallPackage: MsiInstallProduct returned the result code 1603.
(01) 2014-07-09 11:08:38 Slp: Using MSI error code to detect the retry option: 1406
(01) 2014-07-09 11:08:38 Slp: No retry-able MSI return code detected.
(01) 2014-07-09 11:08:38 Slp: Watson Bucket 2
Original Parameter Values
From above it seems client tools component is missing from Installation or may be problem with Windows installer but I guess this is not issue with windows installer . Can you re download SQL Server package and run again.
Edit: For further analysis can you also post log from below location on skydrive
C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140709_104804\sql_ssms_Cpu64_1.log
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles -
VB Script to accept PC names in text file and get registry key value out of those systems
Hi All,
My task: Create VB script to accept PC names from a text file, process each host name to get Registry key value of individual host name and finally export them to a text file or an excel sheet having registry key value against each pc.
I want to pull key value of LSFORCEHOST located in HKCU/Environment of each PC and export this value against each pc in a text or Excel file.
What I achieved: I am able to process against single pc name but failed to process 3000+ systems listed in a text file which I tried to process through VB script. I am not pro and learning the VBS and cant write complex code.
My VBS code written so far(It failed many time with issue):
Option Explicit
Const HKEY_CURRENT_USER = &H80000001
Dim oFSO, sFile, oFile, sText, strComputer,oReg, strKeyPath, strValueName, strValue, objFSO, objFile, strContents
Set oFSO = CreateObject("Scripting.FileSystemObject")
sFile = "test.txt"
If oFSO.FileExists(sFile) Then
Set oFile = oFSO.OpenTextFile(sFile, 1)
Do While Not oFile.AtEndOfStream
sText = oFile.ReadLine
If Trim(sText) <> "" Then
strComputer = sText
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
strKeyPath = "Environment"
strValueName = "LSFORCEHOST"
oReg.GetStringValue HKEY_CURRENT_USER,strKeyPath,strValueName,strValue
Const ForReading = 1
Const ForWriting = 2
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\destination.txt",1, ForReading)
strContents = strValue
Set objFile = objFSO.OpenTextFile("C:\destination.txt",2, ForWriting)
objFile.Write strContents
objFile.Close
End If
Loop
oFile.Close
End If
I think when I tried to process each PC name from text file against registry key value, above code not working. As per my knowledge some issue in loop. Do I need to add FOR EACH feature?
Please help to correct it. Thanks in advance.I think when I tried to process each PC name from text file against registry key value, above code not working. As per my knowledge some issue in loop. Do I need to add FOR EACH feature?
Please help to correct it. Thanks in advance.
Your code contains numerous errors. Furthermore you make things difficult for yourself by giving similar names to the objects used for your input and output. If you are a systems administrator then your best bet is to make an effort to learn the language
instead of grabbing a few code fragments from here and there and hoping that somehow they will work.
Try the cleaned up code below for this particular project. Note the consistent code indentation. It helps you enormously when trying to understand the structure of the code. Remember also that you must fully qualify all file paths. Writing to "Destination.txt"
will cause endless confusion because you never know for sure where this file will reside.
Const HKEY_CURRENT_USER = &H80000001
Set oFSO = CreateObject("Scripting.FileSystemObject")
sKeyPath = "Environment"
sValueName = "LSFORCEHOST"
sFile = "D:\Test.txt"
If oFSO.FileExists(sFile) Then
Set oInput = oFSO.OpenTextFile(sFile, 1)
Do While Not oInput.AtEndOfStream
sComputer = oInput.ReadLine
If Trim(sComputer) <> "" Then
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" _
& sComputer & "\root\default:StdRegProv")
oReg.GetStringValue HKEY_CURRENT_USER,sKeyPath,sValueName,sValue
Set oOutput = oFSO.OpenTextFile("D:\destination.txt",8, True)
oOutput.WriteLine sValue
oOutput.Close
End If
Loop
oInput.Close
End If -
Read Table ITAB with key Dynamic Value index 1
Here is sample Intenral table
Columnname-C01 / C02 / C03
Value-123 / 456 /789
I would like to search value of the internal table according to dynamic value given by the code.
i.e.
read table ITAB with key <Dynamic Value> index 1.Hi,
Apart from read, you can also use <b>SEARCH</b> statement.
Syntax
SEARCH
Searches for strings.
Syntax
SEARCH <f>|<itab> FOR <g> [ABBREVIATED]
[STARTING AT <n1>]
[ENDING AT <n2>]
[AND MARK]
[IN BYTE MODE|IN CHARACTER MODE].
Searches the field <f> or table <itab> for the string in the field <g>. The result is stored in SY-FDPOS. The additions let you hide intermediate characters, search from and to a particular position, and convert the found string into uppercase. In Unicode programs, you must specify whether the statement is a character or byte operation, using the IN BYTE MODE or IN CHARACTER MODE (default) additions.
Hope this information is useful to you.
Regards,
Saumya
Maybe you are looking for
-
Hi all, I am working on VA03. And i got a test case using VA03. But i don't know why the VA03 konw which program and form that i made will be used. Can you help me? Best regard.
-
How to Process an Empty File and deliver to the receiver channel
Hello Gurus, We had a requirements to process an empty file and send it to the receiver channel . We had successfully configured and polling an empty file, but the message output of the empty file was never sent to the receiver channel. Is there an
-
How to read the configuration of a FXP number via property nodes or other methods.
Hello all, I am attempting to store in plain-text the value and configuration specifics of the LV FXP datatype. (please do not suggest I cast it to integer). The ini config format does not support FXP. So we'd like to; using property nodes, interroga
-
Please help, in South Africa I hardly ever use wi fi. Is there any way I can manage my data through the settings of my Z10, can I for example set it to check for Facebook, Twitter etc updates only every hour or is there an App I can download for that
-
I'm creating a line chart that will be updating as I go. So right now I have the first 4 or 5 values filled in, but the rest will be filled in later. The problem is, I want to have a chart that will update as I add these values, and right now, the ch