Test-Path Registry Key
Hi,
I need to test a value for a particular registry key. If this value equals 12.5.1000.767, I need the script to exit. If this key is missing, I need the script to perform a certain action. Can you provide some info, on how to script this.
It seems we can use the test-patch cmdlet.
PS C:\> Test-Path "HKLM:\SOFTWARE\Wow6432Node\ComputerAssociates\Unicenter ITRM"
True
Thanks
Hi David,
Unicenter ITRM is the registry key and the value is 12.5.1000.767
Thanks
Similar Messages
-
Test-Path -isValid alternatives: registry
I am looking to validate a potential registry key or name, prior to working with it, so I can provide useful error reporting in a validation mode that does no actual work, it just validates data.
I needed to do the same thing with file and folder paths, and was having real trouble so I punted to a Regular Expression, but I have not found a RegEx approach for validating a registry path. I have tried variations on Test-Path and Split-Path and everything
returns true for a path like "HKCU\SOFTWARE\Autodesk\Revit\\2014", which should evaluate false.
I already have code to validate hives, so I could just look for doubled backslashes, but that still leaves edge case errors unhanded. So, hoping that there is a way to validate a potential registry path that does not yet exist.
And, I guess things like Revit\\2014 & Revit|2014 & Revit/2014 are technically all valid registry paths, but I would prefer to catch them.I agree. Even in C/C# we always just used the path and checked the exception. Test-Path is even more convenient.
¯\_(ツ)_/¯
So, how would Test-Path be used here? Some more background is probably helpful first. So, my tool puts all sorts of data into an XML file, which is used in a cut n paste 'kit of parts' way by customers to build up a sequence of tasks. Since many of
those folks have never seen XML before (and never plan to see PowerShell, unfortunately) I have provided some "recipe" XML files that might look like this
<Path>PATH TO... Setup.exe</Path>
The user understands that PATH TO... must be replaced with a real path. However, things get missed, so I have implemented a Validation mode that goes through task by task and validates the data. And that's where I need to be able to catch something like
"PATH TO... Setup.exe" and flag it as a data error in the Validation log, rather than waiting for a live test. In no small part because a live test can sometimes take hours, and finding out at the end that you just missed a cut n paste is really
frustrating. Also, some folks want to change the reminders, so I want to catch anything that is invalid. And when I tested "NO DATA" and it came back as a valid path, Test-Path -isValid was no longer an option it seemed.
And lastly, I do have a try/Catch in there, so if something sneaks by I'll get a meaningful error in the log. Meaningful to my users I mean, which a standard PowerShell error would not be. But, I am not sure what I would use to trigger the exception when
I am not actually doing anything with the target, and it may not even exist, I just am trying to verify it is valid so I can proceed on.
Thanks! -
Acrobat registry keys to create file name and path
Hi,
I need to find a way to get my Acrobat to create a pdf with the same name as the drawing file it's created from and in the same folder as the drawing file. The folder path will vary from drawing to drawing.
I need this to happen automatically, without prompting for the file name or the destination.
I see there is a way to set a pre-defined path using registry keys but is there a way to use registry keys to set the filename and path of the drawing, please?
I would rather not use scripting as I don't really know how to do it.
Thanks,
BarnabyI think it will use the path and name of the original file if you do not prompt for a file name. I always ask, so I am not sure.
-
"Add registry key to VHD to run VmRemoteTool on boot" task fails on SRIOVBasicVerification test
Hi,
I am running SRIOVBasicVerification test. I see below subtask "Add registry key to VHD to run VmRemoteTool on boot" is failing and does not produce any log.
I have passed below parameters to the test.
VMName :Test
VHDName : 2012R2.vhd
VHDPath : c:\VHDs
I have placed 2012R2.vhd in c:\VHDs of test machine.
PS C:\VHDs> get-netadaptersriov
Name : Ethernet 3
InterfaceDescription : Network Adapter
Enabled : True
SriovSupport : Supported
SwitchName : Default Switch
NumVFs : 32
Name : Ethernet 4
InterfaceDescription :Network Adapter #2
Enabled : True
SriovSupport : Supported
SwitchName : Default Switch
NumVFs : 32
Thanks, KrishnaI use this vbscript at the end of my SCCM TS which writes the following to a regkey in HKLM\Software\SCCM_OSD
It doesn't populate all the values but it does most of them and has been very helpful to me.
This is what it writes to the key:
Date Installed
TaskSequenceName
AdvertisementID
Organization
TaskSequence ID
TSVersion
SMSClientGUID (This is the original SMSClient Guid before OSD)
On error resume next
dim osd
dim strkeypath
set env = CreateObject("Microsoft.SMS.TSEnvironment")
const HKEY_LOCAL_MACHINE = &H80000002
'variables
TaskSequenceName = env("_SMSTSPackageName")
AdvertisementID = env("_SMSTSAdvertID")
Organization = env("_SMSTSOrgName")
TaskSequenceID = env("_SMSTSPackageID")
Packagename = env("_SMSTSPackageName")
MediaType = env("_SMSTSMediaType")
TSVersion = env("TSVersion")
SMSClientGUID = env("_SMSTSClientGUID")
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
'----------- Write to registry ---------------
strKeyPath = "SOFTWARE\SCCM_OSD"
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
strValueName ="Installed Date"
strValue = formatdatetime(date,2) & " " & formatdatetime(time,3)
oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
strValueName = "TaskSequenceName"
strvalue = TaskSequenceName
oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,TaskSequenceName
strValueName = "AdvertisementID"
strvalue = AdvertisementID
oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,AdvertisementID
strValueName = "Organization"
oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,Organization
strValueName = "TaskSequence ID"
oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,TaskSequenceID
strValueName = "TSVersion"
oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,TSVersion
strValueName = "SMSClientGUID"
oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,SMSClientGUID -
Registry Keys path for Windows 2008 (64-bit)
In the BusinessObjects Enterprise Administrator's Guide it discusses setting the range of ports that the RAS uses in the following registry keys in Windows as.....
HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\CER\RequestPortLower
HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\CER\RequestPortUpper
That only applies to 32-bit OS. If you are running under 64-bit OS then the paths are different....
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Business Objects\Suite 12.0\CER\RequestPortLower
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Business Objects\Suite 12.0\CER\RequestPortUpper
Posting this here so others can find it.Ingo -
This is for the BusinessObjects BI Solution Architecture, the REGEDIT path documented in the "working with firewalls" section of the BOE-3.1 Admin Guide applies only to the 32 bit version of Windows.
In the 64-bit OS, the path is different....as noted in my post.
Looking forward to taking your BOE-4.0 course in Orlando on Sunday.
Thanks,
Mark -
SCCM 2012 Installation Directory Registry Key chaning automatically to Old Installation Path
Hi Guys,
I have recently recovered SCCM 2012 SP1 CAS Site from Primary Site by reinstalling CAS site and database was replicating with Primary sites properly after CAS recovery. But we noticed that after approx. 2 hours of CAS site recovery database replication stopped.
After long digging into SCCM log files we found that SCCM installation directory was pointing to old CAS Site Installation Directory (Which was before recovery) instead of NEW Installation Directory so we changed SCCM CAS Site Installation Directory manually
to new installation path in below registry key and everything was running fine again on CAS Site.
HKEY_LOCAL_MACHINE\Software\Microsoft\SMS\Identification
But again when we restarted SMS_EXEUTIVE Service, SCCM Installation Directory again changed to old installation patch under above registry location and all is bad again. We are unable to figure out what is causing this and even we formatted our HDD before
installation CAS Site.
Can anyone please help to get rid of this issue. Our while CAS site is down due to this issue.
Thanks.I think that you have to use the same installation directory in a site recovery scenario.
Torsten Meringer | http://www.mssccmfaq.de -
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 -
Powershell Test-Path of HKEY_USERS
Hello Folks,
I'm attempting to write a script that will update a non logged in users NTUSER.dat registry setting.
I load the hive with: REG load "hku\temp" c:\users\${username}\NTUSER.dat. That occurs successfully, but when I attempt to do a test-path for a setting, that I know is there, it always returns false. For example:
Test-Path "hku\temp\Software\Microsoft\Office"
In fact, I do a test-path on my current HKU setting, that I copied and pasted from registry editor copy key name, and that as well says false.
Test-Path "HKEY_USERS\SID#\Software\Microsoft\Silverlight"
Can someone please provide some guidance? Thanks in advance!!Hello Folks,
I'm attempting to write a script that will update a non logged in users NTUSER.dat registry setting.
I load the hive with: REG load "hku\temp" c:\users\${username}\NTUSER.dat. That occurs successfully, but when I attempt to do a test-path for a setting, that I know is there, it always returns false. For example:
Test-Path "hku\temp\Software\Microsoft\Office"
In fact, I do a test-path on my current HKU setting, that I copied and pasted from registry editor copy key name, and that as well says false.
Test-Path "HKEY_USERS\SID#\Software\Microsoft\Silverlight"
Can someone please provide some guidance? Thanks in advance!!
PowerShell only sees the HKCU and HKLM hives. You cannot use Test-Path on other hives.
HELP is your friend. You should learn to use it first:
Example:
PS C:\scripts> help registry
PROVIDER NAME
Registry
DRIVES
HKLM:, HKCU:
SYNOPSIS
Provides access to the system registry keys and values from Windows PowerShell.
¯\_(ツ)_/¯ -
Error opening registry key 'Software\JavaSoft\Java Runtime Environment
Hi All ..
I've a siyuation where in whenever I am running java to run my class say test.class I am getting this error:
D:\Mywork>java test2
Error opening registry key 'Software\JavaSoft\Java Runtime Environment
Error: could not find java.dll
Error: could not find Java SE Runtime Environment.
Any help?
Also can we have 2 different jre running on same compute (like one in C and one in D drive)
OS-Windows7 64bit
JDK1.6_33
thanks
abhishekMackSix wrote:
Do you have JAVA_HOME set and in your system variable Path?
Examples:
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_33
Path = %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin\This may just work around the problem. However it seems the "default java" part of the JDK installation is broken on that machine given the missing registry key error. A reinstall of the software is probably a safer option. -
Registry key has different values
Hi there!
I'm getting this error when i run a java program:
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.4', but '1.2' is required.
When i use the 'regedit' command, i see several versions of the java run time listed:
1.1.6
1.2
1.4
1.4.1
1.4.1_01
Can i edit a file and change the 1.2 to 1.4 ?
Thanks alot!
Here is what is in my path listing: ...........;C:\j2sdk1.4.1_01\bin
PATH=C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\bin;C:\PROGRA~1\RATIONAL\RATION~1\NU
TCROOT\bin\x11;C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\mksnt;C:\oracle\ora81\bin;
C:\oracle\ora81\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\Oracle\jre\
1.1.7\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Mic
rosoft SQL Server\80\Tools\Binn\;C:\Program Files\Rational\common;C:\Program Fil
es\Rational\ClearQuest;C:\Program Files\Rational\Rose\TopLink\;C:\Program Files\
Rational\Rational Test;C:\Program Files\Microsoft Visual Studio\Common\Tools\Win
NT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\
Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC
98\bin;C:\j2sdk1.4.1_01\binMost likely, you have a 1.2 java.exe file somewhere in your path that your system finds first. The easy thing to try is modify your path statemente so C:\j2sdk1.4.1_01\bin comes first in the list.
-
"Error while registering the Java 2 Runtime Environment registry keys"
"Error while registering the Java 2 Runtime Environment registry keys"
I am getting the above error when trying to install the 1.3 JRE (installed with the 1.3 plug in which I need). As part of my development I have been installing and uninstalling the JRE multiple times. Then, I got the above error when trying to install it, and now it appears to be installed but I cannot uninstall it. When I try to uninstall it, it just remains, and when I try to install it again I get the above error. I have tried cleaning up all javasoft registry entries, but it doesnt seem to have helped. Can anyone help me either completely uninstall the JRE so I can do a clean install or help me get rid of the error above when I install. Is there some registry entries I should be looking at? Anything else? this is quite urgent as I need to test my applet with the plugin installed and not installed - and I currently cant uninstall it. Any ideas?
Thanks for your help
AaronI am getting this same error message when trying to upgrade from 1.3.1_03 to 1.3.1_19.
I have multiple versions of jre's and jdks on my machine.
Anyone else seen this problem or know how to resolve it. -
How to get registry key lastwritetime using batch/powershell
Hello,
I want to get a registry key's LastWriteTime using batch/powershell. These are what i have tried..
1. Launch regedit and manually export the key using the UI, this gives me the lastwritetime, but I need a commandline version of this. regedit /e only exports the key and value data.
2. dir HKLM:\software\mykey
nothing returned
3. Get-ChildItem HKLM:\software\mykey | Select-Object *
nothing returned
4. Get-ItemProperty HKLM:\software\mykey | Select-Object *
LastWriteTime not returned; other values are returned
5. (Get-Item HKLM:\software\mykey).LastWriteTime
Nothing is returned
Is the only way to do this by using pinvoke with RegQueryInfoKey?
Thanks in advance
ss883rThe
.zip on the repository will still work for version 2. Basically, you'll get a definition for a function called 'Add-RegKeyMember'. You can dot source the provided script, or you can copy the function definition into your own script. You would use it like
this:
# Using Get-Item:
PS> Get-Item HKLM:\SOFTWARE | Add-RegKeyMember | select Name, LastWriteTime, ClassName
# Using Get-ChildItem:
PS> Get-ChildItem HKLM:\SOFTWARE | Add-RegKeyMember | select Name, LastWriteTime, ClassName
# Passing a path:
PS> Add-RegKeyMember HKLM:\SOFTWARE | select Name, LastWriteTime, ClassName
There's also a proxy function for Get-ChildItem that will automatically add the property anytime you use Get-ChildItem (dir, ls, gci) on a registry path. The PSv3 only method I was talking about simply updates the type data to automatically call the function
on any RegistryKey object. You can actually set version 2 up to do that, but it requires an XML file. -
Failed to set security on SQL Server registry key. Error: 2
Hi,
I have a Primary site (mixed mode) running SCCM 2007 SP1 for many months now with no issues.
This site is made up of two Win 2008 sp2 servers sharing the SCCM roles:-
SCCM01 - Site server, DP, RP, PXE and SQL2005 hosting the SCCM database
SCCM02 – SUP, MP, FSP, SLP
The SQL2005 on SCCM01 is running under a domain service account called
domain\service_sccm which is also a sysadmin in SQL as is the SCCM02 server.
In an effort to resolve the isse I have made this account a Domain Admin.
I have also used this account to log onto SEC01 to run the Secondary Site installation and to be the SQL Service account.
I'm now trying to add a Secondary Site on a Domain Controller called SEC01 (also Win2008 sp2) and on the same LAN as the SCCM01/02.
This is where I get problems.
I run the installation locally on the Sec Site server (DC) as a Domain Admin and the installation completes OK (all green ticks),
the ComponentSetup.log and Pre-Reqs are all good as well however when I check the ConfigMgrSetup.log I see the below -
Failed to set security on SQL Server registry key. Error: 2.
<11-09-2010 22:46:59> SMS Setup full version is 4.00.6221.1000
<11-09-2010 22:46:59> Successfully set security on Setup registry key.
<11-09-2010 22:46:59> Failed to set security on SQL Server registry key. Error: 2
<11-09-2010 22:46:59> Successfully set security on Identification registry key.
<11-09-2010 22:46:59> Creating SMS Inbox Source registry key ...
<11-09-2010 22:46:59> Installing SMS Site Component Manager ...
<11-09-2010 22:46:59> Installing Site Component Manager under acct <NT AUTHORITY\SYSTEM> path <C:\Program Files (x86)\Microsoft
Configuration Manager\bin\i386\sitecomp.exe>
<11-09-2010 22:47:01> Started Site Component Manager service
<11-09-2010 22:47:01> SMS Site Component Manager installation completed.
<11-09-2010 22:47:01> Done with service installation
Adding the PMP role to SEC01 also fails to install and no MPSetup or MPControl logs are created.
WebDav and win2008 roles, features all added and server fully patched.
Despooler.log on SCCM01 seems good and passing keys.
Tried installing to default path and to shortened path such as C:\SCCM
The new secondary site is listed in the console and an address can be added for the Secondary Site
BITS Server Extensions and Remote Differential Compression Features are enabled.
The Group memberships all appear ok:-
SCCM01
Local Admins
contains the sec site server SEC01, SCCM01, installation accounts
SMS_SiteToSiteConnection_001
SEC01 (the sec site server)
SMS_SiteSystemToSiteServerConnection_001
SCCM02
SEC01
No Local Admins as a DC
SMS_SiteToSiteConnection_002
SCCM01
SMS_SiteSystemToSiteServerConnection_002
empty
SQL 2005
This has the account logged in during installation as a sysadmin
SCCM02 is also sysadmin
The fundamental issue appears to be that the SEC01$ server account is not being added to SQL Logins (and therefore SCCM database Roles)
therefore the installation cannot complete.
I have tried to manually add the SEC01 account to SQL Logins before installation of Sec Site but this did not work.
Not sure if the fact that SEC01 is a DC may be a factor.
Appreciate any help if anyone has seen this before or can suggest a resolution.
ThanksAfter a lot of digging around and head scratching I eventually found the resolution.
The original thread title Error turned out to be a bit of a red herring in that my failure to deploy Sec Sites came down to two separate issues seemingly unrelated to the error message of the thread title.
The first part of the resolution was to manually create the SQL Server accounts for the Sec Site Servers and assign them to the smsdbrole_MP DB role to
let the SQL side of the SCCM install complete a s these were not being created automatically.
This then left the fact that that the installation of the Sec Site completed successfully according to the install logs in C:\ however the DP and MP would
never install.
The big clue was eventually contained in the mpfdm.log errors relating to
**ERROR: Cannot find path for destination inbox SMS_AMT_PROXY_COMPONENT on server REGISTRY SMS_MP_FILE_DISPATCH_MANAGER
and
**ERROR: Cannot find path for destination inbox Asset Intelligence KB Manager on server REGISTRY SMS_MP_FILE_DISPATCH_MANAGER
Thankfully the errors led me to these two blogs:
http://myitforum.com/cs2/blogs/scassells/archive/2009/07/20/error-cannot-find-path-for-destination-inbox-sms-amt-proxy-component-on-server-registry.aspx
and
http://social.technet.microsoft.com/Forums/en-US/configmgrsetup/thread/5fcc53d4-8629-4b34-9eaa-6cb020eedc13/
As it turned out the SCCM installation registry and folder creation does not complete and I had to manually enter the reg settings as detailed in the
links above to complete the installation. Once I did as described everything worked a treat – all my MPs and DPs are 100% now.
Solutions
Add the following reg keys to each of your effected secondary sites.
Inbox Fix
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\MPFDM\Inboxes]
"Asset Intelligence KB Manager"="E:\\Program Files\\Microsoft Configuration Manager\\inboxes\\AIKbMgr.box"
"SMS_AMT_PROXY_COMPONENT"="E:\\Program Files\\Microsoft Configuration Manager\\inboxes\\amtproxy.box"
Asset Intelligence fix:
Note: you will need to identify the next largest key value.
In my example it was key 49
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Inbox Source\Inbox Definitions\49]
"Inbox Name"="Asset Intelligence KB Manager"
"Relative Path"="inboxes\\AIKbMgr.box"
"NAL Path"=""
"User Rights"=dword:00000000
"Service Rights"=dword:00000004
"Monitoring Enabled"=dword:00000001
"Location Type"=dword:00000001
"Guest Rights"=dword:00000001
AMT registry Fix.
Note: you will need to identify the next largest key value.
In my example it was key 50
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Inbox Source\Inbox Definitions\50]
"Inbox Name"="SMS_AMT_PROXY_COMPONENT"
"Relative Path"="inboxes\\amtproxy.box"
"NAL Path"=""
"User Rights"=dword:00000000
"Service Rights"=dword:00000004
"Monitoring Enabled"=dword:00000001
"Location Type"=dword:00000001
"Guest Rights"=dword:00000001
Big thanks to Shaun Cassells and John Marcum for these blogs -
How to include install date and time in registry keys
Hi All,
Hopefully someone can help me. I am creating an installer which includes some properties in the build specs. I also wannt to include some registry keys to be added upon installation:
1. I include the install directory of the application by providing the key with the value [INSTALLDIR]. This seems to work well and I have no problem with this.
2. The other key I would like to include (but I do not know how) is the date and time of installation. Is there a way of automatically including this in a registry key (similar to INSTALLDIR)?
I look forward to your expert advice!
Kind Regards,
Larry
Laurence C.
Senior Test Development Engineer
Dyson Ltd
Solved!
Go to Solution.Larry,
afaik the setting for "Run as Admin" is per OS process. As the "Run Exe after installation" is a different process as the application you installed by it (e.g. "MyApplication.exe"), i wouldn't expect the MyApplication.exe to require/use admin-rights.
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
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
Maybe you are looking for
-
Xml Publisher to Excel Output Trailing sign problem
Hi Experts, I have developed one XML report which output type is EXCEL in Oracle Application. I am getting some -ve value in the report so I need to do the trailing sign Menace for example I got a value -8645 I need to display the value like (8645).
-
Cannot update camera raw plugin in PSE10 for D800 support
having some major problems, just bought a D800, upgraded my pc with a 64 bit os and more ram, re-installed all my programs and cant open my files in PSE, its saying its the wrong files type, go to update pse10 and im getting an error cose u41m1c212,
-
Import Metadata - connection failed
Hi All, When I try to do "import metadata" by right clicking on my database I get connection failed error. In this the datasource name and user name are defined repository variables. Whereas, if I do "import metadata" from under the file menu and giv
-
I am unable to install photoshop elements 11
The following error message occurs. The installation process has encountered an error while installing Shared Technologies. Please restart your system and try again. The toubleshooting help is far to complicated and I don't understand what it me
-
Creating icons in photoshop elements8
Could someone tell me how to create an icon in photoshop elements 8. I'm sure it must be possible.