Event id 57 – PrintBRM.exe can´t export files more larges than 2 Gb

Hi!

I had a problem exporting all printers, drivers, ports, etc in a Print Server Failover Cluster 2008 R2 (I tryed from the console and from a command line).

The error was that when I was doing the backup of the printers it fails because the export file was more large than 2 GB and the eventvwr show event id 57.

Printbrm.exe (the Printer Migration Wizard or the command-line tool) failed to place a file in cabinet (CAB) file %1 while backing up print queues. Error reported: %2. This can occur if the user does not have permission to create a file in the destination location, or if there is insufficient disk space or system resources.

To solve the problem I install the following patch:

http://support.microsoft.com/kb/2752259/es

 

Regards

 

Anuncios

Export pfx certificate with certutil through vbscript

These days I´m in a desktop migration project from XP to W7 and I need to export the user certificates of all 9.000 desktops…

For that I create a vbs than do it but by the other hand it can´t do all, the export to file of the serial number of all certificates is done with a batch script.

Here I put the vbs and the batch file.

VB Script

Dim shell

Set shell = CreateObject(“WScript.Shell”)

shell.Run “\\server\share\VolcadoCert.bat”

WScript.Sleep 10000

Const ForReading = 1
Dim strTemp
Dim CertID
Set objFSO = CreateObject(“Scripting.FileSystemObject”)

Set objFile = objFSO.OpenTextFile(“\\private user folder\certs.txt”, ForReading)

Do Until objFile.AtEndOfStream
strSearchString = objFile.ReadLine
strTemp = Mid(strSearchString, 1, 15)

if (strTemp = “Serial Number: “) then

CertID = Mid(strSearchString, 15, len(strSearchString)-14)

shell.Run “certutil.exe -user -p 12345678 -exportpfx ” & CertID & “\\private user folder\certificat” & cstr(replace(replace(replace(now(), “/”, “”),”:”, “”),” “, “”)) & “.pfx”, 1, false

end if
Loop

objFile.Close

.bat

certutil -user -store “My” >> \\private user folder\certs.txt