Internal Error 2738 on Software Install/Uninstall or vbscript error while setup

On Windows 7 64bit System:

Remove the Registry Key: HKCU\SOFTWARE\Classes\Wow6432Node\CLSID\{B54F3741-5B07-11CF-A4B0-00AA004A55E8}

Register the Library:         regsvr32 vbscript.dll

On WIndows 7 32bit System:

Remove the Registry Key: HKCU\SOFTWARE\Classes\CLSID\{B54F3741-5B07-11CF-A4B0-00AA004A55E8}

Register the Library:         regsvr32 vbscript.dll

Visual Studio does not build on F5

VS does not build the project on F5 if you changed the sources.

Check these settings:

Tools – Options – Projects and Solutions – Build and Run:

OnRun when Projects are out of date: always

Configuration Manager ( Solution – Properties – Configuration Manager )

Check if Build is Enabled!

Visual Studio 2008 – WinSxS and the debug libraries Horror

You know the message „This application has failed to start beacuse the application configuration is incorrect. Reinstalling the application may fix this problem“ when trying to test an Debug Build on another Machine which has no VS 2008 installed?

You are shoure that you copied the crt and mfc libraries with the application?

Anyway of that, it’s windows WinSxS ( some call it WinSuckS ).

Solution:

Copy all \Windows\WinSxs\x86_Microsoft.VC90.Debug* directories from your developer machine to the same place on your test machine.

Copy all \WIndows\WinSxS\Policies\x86_policy.9.0.Microsoft.VC90.Debug* directories from your developer machine to the same place on your test machine.

Copy all \windows\WinSxs\Manifests\x86_Microsoft.VC90.Debug* Files from your developer machine to the same place on your test machine.

You can also do this by your own setup

If you use Inno Setup, copy the above directories to a source directory and place the followin line into your inno setup file in the [Files] section:

Source: yourdirectory\*.*; DestDir: {win}\WinSxS; Flags: recursesubdirs ignoreversion createallsubdirs

Change SQL Server Configuration (like Port) in a Clustered Environment

For SQL 2008:

Take SQL Server (XXX) Resource offline:

>cluster res „SQL Server (XXX)“ /OFFLINE

Remove Registry Check:

> cluster res „SQL Network Name (nnnnn)“ /removecheck:“SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.XXX\MSSQLServer“

Do whatever you have to configure

Add the Registry Check:

cluster res „SQL Network Name (nnnnn)“ /addcheck:“SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.XXX\MSSQLServer“

Take the Resources Online:

cluster res „SQL Server (XXX)“ /ONLINE

cluster res „SQL Server Agent (XXX)“ /ONLINE

„SQl Server (XXX)“ is the Name of your SQL Resource in Failover Cluster Management, where XXX is a possible Instancename

How to use the Certreq.exe utility to create and submit a certificate request that includes a SAN

To use the Certreq.exe utility to create and submit a certificate request, follow these steps:

  1. Create an .inf file that specifies the settings for the certificate request. You can use the following sample code to create an .inf file.
    [Version] 
    
    Signature="$Windows NT$ <br /><br />[NewRequest]<br />Subject = "CN=corpdc1.fabrikam.com" ; must be the FQDN of domain controller
    EncipherOnly = FALSE
    Exportable = FALSE  ; TRUE = Private key is exportable
    KeyLength = 1024    ; Common key sizes: 512, 1024, 2048, 
    			  ;    4096, 8192, 16384
    KeySpec = 1             ; Key Exchange
    KeyUsage = 0xA0     ; Digital Signature, Key Encipherment
    MachineKeySet = True
    ProviderName = "Microsoft RSA SChannel Cryptographic Provider"<br />ProviderType = 12<br />RequestType = CMC<br />	<br />; Omit entire section if CA is an enterprise CA<br />[EnhancedKeyUsageExtension]<br />OID=1.3.6.1.5.5.7.3.1 ; Server Authentication<br />	<br />[RequestAttributes]<br />CertificateTemplate = WebServer ;Omit  line if CA is a stand-alone CA<br />SAN="dns=corpdc1.fabrikam.com&dns=.fabrikam.com&dns=ldap.fabrikam.com"</span><br /></span><br /></pre>
    </div>
    </div>
    </li>
    <li>Save the file as Request.inf.</li>
    <li>Open a command prompt.</li>
    <li>At the command prompt, type the following command, and then 				press ENTER:
    <div class="indent">certreq -new request.inf certnew.req</pre>
    </div>
    This command uses the information in the Request.inf file to 				create  a request in the format that is specified by the RequestType value in 	 			the .inf file. When the request is created, the public and private  key pair is 				automatically generated and then put in a request object  in the enrollment 				requests store on the local computer.</div>
    </li>
    <li>At the command prompt, type the following command, and then 				press ENTER:
    <div class="indent"><span class="userInput">certreq -submit certnew.req certnew.cer</pre>
    </div>
    This command submits the certificate request to the CA. If there 				is more than one CA in the environment, the <strong>-config</strong> switch can be used in the command line to direct the request to a 				specific CA. If you do not use the <strong>-config</strong> switch, you will be prompted to select the CA to which the 				request should be submitted.<br /><br />The <strong>-config</strong> switch uses the following format to refer to a specific CA:
    <div class="indent">computername\Certification Authority Name

    For example, assume that the CA name is Corporate Policy CA1 and that the domain name is corpca1.fabrikam.com. To use the certreq command together with the –config switch to specify this CA, type the following command:

    certreq -submit -config „corpca1.fabrikam.com\Corporate Policy CA1“ certnew.req certnew.cer

    If this CA is an enterprise CA and if the user who submits the certificate request has Read and Enroll permissions for the template, the request is submitted. The issued certificate is saved in the Certnew.cer file. If the CA is a stand-alone CA, the certificate request will be in a pending state until it is approved by the CA administrator. The output from the certreq -submit command contains the Request ID number of the submitted request. As soon as the certificate has been approved, it can be retrieved by using the Request ID number.

  2. Use the Request ID number to retrieve the certificate. To do this, type the following command, and then press ENTER:
    certreq -retrieve RequestID certnew.cer

    You can also use the -config switch here to retrieve the certificate request from a specific CA. If the -config switch is not used, you are prompted to select the CA from which to retrieve the certificate.

  3. At the command prompt, type the following command, and then press ENTER:
    certreq -accept certnew.cer

    After you retrieve the certificate, you must install it. This command imports the certificate into the appropriate store and then links the certificate to the private key that is created in step 4.

Offline Address List is not up2date

Event 9399: OALGen is configured to generate version 4 OAB files for offline address book ‚\Default Offline Address List‘ and publish it to public folders, but there is no public folder server available. OAB version 4 will be generated but will not be published to a public folder at this time. Please ensure that a public folder server with a replica of the Offline Address Book system folder is online and mounted, or disable publishing OAB version 4 to public folders.

The Generation Server for the Offline Address Book must have at least one online Mailboxdatabase. In a DAG you should never locate it on a node which will hold the passive Databases – it will result in the Error above. Just move to the Active Server ( EMC: Microsoft Exchange – Microsoft Exchange On-Premises – organization Configuration – Mailbox – Offline Address Book )

Get-PublicFolderStatistics results in Folder not found

Get-PublicFolderStatistics -id „\Samplefolder“ | fl results in:

Couldn’t find public folder „\Samplefolder“ on server „server.local“.

+ CategoryInfo : InvalidData: (\Samplefolder:PublicFolderIdParameter) [Get-PublicFolderStatistics], InvalidOperationException

+ FullyQualifiedErrorId : 762BCDDB,Microsoft.Exchange.Management.MapiTasks.GetPublicFolderStatistics

Solution:

Get-PublicFolderStatistics -id „\Samplefolder“ -resultsize unlimited | fl

This seems to be a Bug 🙂