Jump to content


  • 0
jbhaire2004

New report from import of mof file...

Question

I would like to create a new report by exporting a report as a .MOF, modifying it, and then importing it back into SCCM.

Is there a way to generate a new SCCM report from "Reports" -> "import objects"?

I have attempted this but have been unsuccessful. I read this can be done by changing the values after "Category =" and "Name =" but it always replaces the previous report. I beleive this is because the ReportGUID stays the same. How can you regenerate a new ReportGUID? Is this possible??

 

Here is a sample MOF I would like to import as a new report.

 

// ********************************************************************************

*

//

// Created by SMS Export object wizard

//

// Wednesday, July 29, 2009 created

//

// File Name: BFC-CustomReport-Memory-394.MOF

//

// Comments :

//

//

// ********************************************************************************

*

 

 

// ***** Class : SMS_Report *****

[securityVerbs(140551)]

instance of SMS_Report

{

Category = "BFC - Custom Reports - Hardware - Memory";

Comment = "Displays a list of computers that are low on memory. The amount of memory to check for is specified in MB.";

DrillThroughColumns = {};

 

 

MachineDetail = FALSE;

MachineSource = FALSE;

Name = "Computers with low memory that is less than or equal to specified MB of RAM";

NumPrompts = 1;

RefreshInterval = 0;

ReportGUID = "{33DFBA95-926F-4B93-BAD4-2FA640F75439}";

 

ReportParams = {

instance of SMS_ReportParameter

{

AllowEmpty = FALSE;

PromptText = "MB of Memory";

VariableName = "variable";

}};

SecurityKey = "";

SQLQuery = "SELECT Distinct SYS.Netbios_Name0, SYS.Operating_System_Name_and0,

\n \tMEM.TotalPhysicalMemory0/1024 As C083

\nFROM v_R_System SYS

\nJOIN v_GS_X86_PC_MEMORY MEM on SYS.ResourceID = MEM.ResourceID

\nWHERE MEM.TotalPhysicalMemory0/1024 <= @variable";

StatusMessageDetailSource = FALSE;

UnicodeData = FALSE;

};

// ***** End *****

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

hi Jb

 

can you post the solution to this please, it was one of the posts lost in the forum upgrade today

 

cheers

 

Sure.

 

I found the solution to my issue. I tested a number of scenarios and combinations and determined those that work and those that do not.

 

ORG: ReportGUID = "{33DFBA95-926F-4B93-BAD4-2FA640F75439}";

 

2 : ReportGUID = "{}"; WORKS

3 : ReportGUID = ""; WORKS

4 : ReportGUID = ; Not Working

5 : ReportGUID = Not Working

6 : ; ReportGUID = Not Working

7 : (LINE COMPLETELY REMOVED) WORKS

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.