Create report subscription with powershell in SCCM 2012 R2

Hi all,
I'm wondering if it's possible to create report subscriptions with powershell ? This would save me a lot of time.
Kind regards,
J.M.

If there was any it would be part of the SSRS PoSH cmdlets.  
http://www.enhansoft.com/

Similar Messages

  • Create Report based on Query in SCCM 2012

    I have a lot of useful queries, however I would like to create a few reports based on these queries. What is the simple way to do this? I started to create a New Report, but kind of lost after that. Is there a way I can just copy my statement from the
    query to a blank report?

    Execute the WQL query from the queries node in the console and watch smsprov.log on the site server. It should contain the "translated" SQL statement.
    Torsten Meringer | http://www.mssccmfaq.de

  • Problem to generat an report on an SSRS for SCCM 2012 R2 SP1. I got error has occurred during report processing.

    Hi,
    Problem to generat an report on an SSRS for SCCM 2012 R2 SP1. I got error has occurred during report processing.
    In general it is no problem to generat SSRS reports, but an custom one i get issue with.
    The Error:
    An
    error has occurred during report processing. (rsProcessingAborted)
    Query
    execution failed for dataset 'DataSet1'. (rsErrorExecutingCommand)
    ExecuteReader:
    CommandText property has not been initialized

    Hi SaiTech,
    According to your description, when you render report on SCCM 2012 R2, you got the error message.
    According to my knowledge, the issue can be caused by following reasons:
    Select permission not granted to ConfigMgr reporting account. We need to open the SQL management console and open the properties dialog box of configmgr db, grant select and execute permission to ConfigMgr reporting account.
    Reporting Services Web Service URL or Report Manager is false. Make sure Web Service URL and Report Manager URL are correct. Restart SMS_Executive service and reinstall Reporting Service Point, then please render the report again.
    Report timeout. Increase query and report timeout.
    If the problem remain unresolved, please provide detailed information of SRSRP.log (default location: %programfiles%\Microsoft  and Configuration Manager\Logs) and reporting services error log(default location: %programfiles%\Microsoft SQL Server\<SQL
    Server Instance>\Reporting Services\LogFiles), it will help us move more quickly toward a solution.
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • How to exclude music and pictures from backing with USMT in SCCM 2012 SP1?

    How to exclude music and pictures from backing with USMT in SCCM 2012 SP1?
    I know we can use config.xml but I m not sure what all steps to take.
    Below is my understanding
    1. Create Custom.xml file using below
      <component context="System" type="Documents">
            <displayName>Test</displayName>
            <role role="Data">
                <rules>
                 <unconditionalExclude>
                            <objectSet>
        <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp3]", "Fixed")</script>
                            </objectSet>
                 </unconditionalExclude>
                </rules>
            </role>
        </component>
    </migration>
    2. Save as Custom.xml.
    3. Copy it to USMT source files package in both the x86 and x64 subfolders and update the relevant USMT package distribution points.
    I am confused as where in task sequence will we specify the custom.config file.

    Edit the miguser.xml file. The default list is as follows:
    -<objectSet>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.qdf]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.qsd]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.qel]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.qph]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.doc*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.dot*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.rtf]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mcw]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.wps]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.scd]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.wri]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.wpd]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.xl*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.csv]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.iqy]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.dqy]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.oqy]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.rqy]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.wk*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.wq1]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.slk]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.dif]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.ppt*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pps*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pot*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.sh3]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.ch3]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pre]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.ppa]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.txt]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pst]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.one*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.vl*]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.vsd]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mpp]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.or6]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.accdb]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mdb]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pub]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.xml]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.ini]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.dgn]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.dic]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.dsk]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.gqa]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.gqu]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.id]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mpp]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.ora]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pab]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pdf]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pps]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.qry]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.r2w]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.rdl]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.rsf]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.url]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.vdx]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.vss]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.vst]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.vsx]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.vtx]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.zip]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.rar]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.7z]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.iso]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.gif]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.jpg]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.bmp]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp3]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.avi]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp4]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.wmv]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.bat]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.vbs]", "Fixed")</script>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.lnk]", "Fixed")</script>
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • Problems with report builder 3.0 in SCCM 2012 R2 CU2

    Hi All
    I have problems with editing  (Using Report builder) existing reports  or creating new ones in SCCM 2012 R2 CU2
    We version of SQL we use is SQL 2008 R2 SP2
    I already asked this question in the SCCM 2012 forum but the problem is not related to SCCM but has something to do with application report builder
    I changed the registry key and edited the Microsoft.ConfigurationManagement.exe.config.xml as described in the following link
    http://blogs.technet.com/b/smartinez/archive/2012/07/03/system-center-2012-configuration-manager-create-report-don-t-work-what-do-i-do-now.aspx
    Afterwards I try to edit an report I see report builder is being downloaded and after it generates the following error “Application did not succeed. Unable to continue”
    Error details are
    Following errors were detected during this operation.
    * [22-7-2014 13:55:07] System.Deployment.Application.InvalidDeploymentException (HashValidation)
    - File, Microsoft.DataWarehouse.dll, has a different computed hash than specified in manifest.
    - Source: System.Deployment
    - Stack trace:
    at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, Hash hash)
    at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, HashCollection hashCollection)
    at System.Deployment.Application.ComponentVerifier.VerifyComponents()
    at
    System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions
    options)
    at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
    at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
    at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
    at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
    And in the SmsAdminUI.log I noticed the following error
    [16, PID:4460][07/21/2014 14:11:43] :[ReportProxy] - User-specified default Reporting Point [Server1.local.nl] could not be found, [Server2.local.nl] is now the default Reporting Point.
    [1, PID:4460][07/21/2014 14:11:11] :System.InvalidOperationException\r\nThere is an error in XML document (1, 1).\r\n at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
    I removed the reporting point no luck -> I already installed report builder 3.0 local on my computer still no luck.
    I hope someone can give me some advice , I am lost with this error
    Thx in advance
    Regards
    Johan

    Hi Miss Katherine,
    1. I went through the SQL steps in the link you posted
    2. I updated the Reg Key and Microsoft.ConfigurationManagement.exe.config file with 3.0 on both the
    server and the console machine.
    3. I copied the .DLL file from your OneDrive and replaced the existing one on the server.
    4. I uninstalled and re-installed the reporting role on the server and received the 1015 in the log.
    5. I restarted the server and the client machine
    I do get a slightly different error now after using the new DLL
    Errors With Original DLL
    ERROR DETAILS
    * [9/30/2014 8:42:03 AM] System.Deployment.Application.InvalidDeploymentException (HashValidation)
    - File, Microsoft.DataWarehouse.dll, has a different computed hash than specified in manifest.
    - Source: System.DeploymentERROR DETAILS
    Errors With New DLL
    ERROR DETAILS
    Following errors were detected during this operation.
    * [9/30/2014 9:17:13 AM] System.Deployment.Application.InvalidDeploymentException (RefDefValidation)
    - Reference in the manifest does not match the identity of the downloaded assembly Microsoft.DataWarehouse.dll.
    - Source: System.Deployment

  • Connect via Windows Powershell in SCCM 2012 CONSOLE (with PowerShell 4.0 installed)

    Hi,
    When trying to "Connect via Windows Powershell" in the SCCM 2012 console, I get the message that Powershell 3.0 is not installed... (which actually isn't installed, we have PS4.0 installed). Do we need to install PS3.0 also to get it working
    or is there a workaround? Connecting manually to the site via Powershell 4.0 (Get-Psdrive -psprovider CMSITE) works like a charm.
    Regards,
    WiM

    Hi,
    I have installed WMF 4.0 on Windows Server 2008 R2 sp1, it works fine.
    Please try to use "$PSVersionTable" to confirm Powershell version is 4.0. At first, I forgot to install Microsoft .NET Framework 4.5, then the console gave me the message that Powershell 3.0 is not installed.
    Best Regards,
    Joyce Li
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Reporting services keep failing on SCCM 2012 SP1

    I have SCCM 2012 SP1 install with SSRS 2012 install on same server 2008 R2 server.
    Reporting services keep failing with the following message when trying to START the service from the Reporting Services Configuration Manager Console
    System.ServiceProcess.TimeoutException: Time out has expired and the operation has not been completed.
       at System.ServiceProcess.ServiceController.WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeout)
       at ReportServicesConfigUI.Panels.ServerInformationPanel.StartStopServiceTask(Boolean start)
    Thx,
    Joe
    Thx, Joe

    Good advice Garth, but I have opened over 5 cases to try to resolve this and several other issues with my troublesome SCOM 2012 SP1 upgrade. That is why I am also sending it to the community in hope they can provide assistance.
    CSS will only work on one specific issue and in most cases these are targeted bandaid fixes that DO NOT address the underlying or related issues. I a left to opening many tickets and still floundering with a unreliable product.
    It seems to only be with System Center. All other products by Microsoft seem to be reliable and predicable and are easily supported using break fix support model of the current MS teams.
    It is SQL (SSRS) that controls subscriptions not CM12. CM12 only leverages the APIs provided by SQL (SSRS).
    I hate to say this but Why do you think this problem has anything to do with CM12?
    If CSS tell you to re-create the subscription and the problem re-occurs then I would re-open the ticket and tell them that the problem is NOT fixed and to continue working on it.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Reports don't show on SCCM 2012 SP1 Console

    Hello everyone,
    We are encountering a strange issue with the SCCM 2012 reporting services. I was creating a custom report earlier. At some point, and I don't know exactly how, I could not open the Reports hive on the 'Monitoring' wunderbar. No reports load in the console.
    When I right-click "Reports" and choose "Create Report" it throws up an error "The request failed with HTTP status 401: Unauthorised".
    When the above happens, what I see is that the report services service account keep getting locked out.
    I can open both http://RerportingServicesServer/Reports ad well as http://RerportingServicesServer/ReportServer using the service account (when not locked) to see the reports but I can not launch 'Report Builder' option.
    It's really strange. Looks as if the SCCM console is wrongly passing the stored service account while connecting to the reporting service.
    The rest of the SCCM appears to be fine. The SQL services appear to be running fine (i.e. they are not stopped).
    Any idea?

    Hi all. Apologies for not getting back sooner. The issue hasn't gone away, instead I am using a workaround.
    It appears to be a bug in the console to me. It looks like the problem is confined to my own account where as for other user accounts, the Reports do appear on the console on the same server.
    As far as I remember (it was a while back;)) the problem originally occurred when I had opened the Report Builder (select report -> Right-click edit) it prompted me for logon credentials where I entered the report service service account which
    has permissions to create/edit reports (but I also selected "save windows credentials" at that time which I think is the problem). It is since then things appear to be going wrong for my account. Now when I access the Reports folder on the console, the reports
    don't appear. When I right-click to create report, the above "The request failed with HTTP status 401: Unauthorised" error appears. And then I notice that the report services service
    account (which I had entered initially several days ago before the error had first occurred) gets locked out. It looks like the Admin console is trying to pass the corrupt(?) Report service service account credentials to the Reports module and
    that's where the problem lies. Though I could be wrong.

  • Reporting Error After Upgrading to SCCM 2012 R2

    After upgrading from SCCM 2012 SP1 CU2 to SCCM 2012 R2, some users receive an error whenever they open a report.  This occurs in both the SCCM console and the SSRS web site.  What's odd is not all users receive the error.  In fact, for two
    users with the exact same permissions, running the console on the same computer, 1 gets the error and the other doesn't.  Anybody else see this or have any ideas to troubleshoot or fix it?  I'm thinking this may relate to the fix for permissions
    in reporting included in R2.
    The error message from the console is:Microsoft.Reporting.WinForms.ReportServerException
    The DefaultValue expression for the report parameter ‘UserSIDs’ contains an error: The user name or password is incorrect.
    (rsRuntimeErrorInExpression)
    Stack Trace:
    at Microsoft.Reporting.WinForms.ServerReportSoapProxy.OnSoapException(SoapException e)
    at Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.ProxyMethodInvocation.Execute[TReturn](RSExecutionConnection connection, ProxyMethod`1 initialMethod, ProxyMethod`1 retryMethod)
    at Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID)
    at Microsoft.Reporting.WinForms.ServerReport.EnsureExecutionSession()
    at Microsoft.Reporting.WinForms.ServerReport.SetParameters(IEnumerable`1 parameters)
    at Microsoft.ConfigurationManagement.AdminConsole.SrsReporting.ReportViewerWindowsForms.SetParameterValues_DoWork(Object sender, DoWorkEventArgs e)
    The following error is logged in the SSRS logs:
    processing!ReportServer_0-1!12d0!10/31/2013-15:28:48:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Exception of type 'Microsoft.ReportingServices.ReportProcessing.ReportProcessingException' was thrown.;

    I just wanted to share my last upgrade experience with you, in case, someone is running into the same problem:
    I've just upgraded to SCCM 2012 R2 CU4 (from CU3).
    Guess what? It broke the Reporting, error message as above!
    So I've put the computeraccount of my SCCM/SSRS server (SSRS service is running under local system account) into the WAA group, reboot - but it didn't help. Tried also the Pre-Win2000-Compat-group. Didn't help. A colleague was not experiencing the problem.
    Hmmm. So what is different between our accounts?
    The difference found: My account's userPrincipalName was set to the same as the sAMAccountName, but missing a domain. The account was obviously created by a bad script.
    Solution 1: Delete the userPrincipalName attribute, or
    Solution 2: Make the userPrincipalName complete by adding a valid domain, i.e. [email protected]: In the Active Directory Users and Computers mmc, User Properties, Account tab, select a domain for the "User logon name".
    The problem seems to be only for user accounts, that are in a different domain than the SCCM server's account, i.e. server in example.com, user account in sub.example.com. Always multi-domain problems...
    Thorsten Lau - IT-Lösungen http://blog.system-center.de

  • IE report access to normal user (SCCM 2012 R2)

    Hello All
    Trying to wrap my head around allowing "normal user" to view/run reports via internet explorer http://servername/Reports
    I created a new group called SCCMReportViewers in AD and added one user to that group, then I went to SCCM 2012 and created a new security role by coping existing one called read-only analyst and called it reporting user. On that new role I changed all permissions
    to run reports and nothing else. Then I added that new AD group under Administrative Users on SCCM 2012 server with security role that I made in previous step (reporting user)
    When I try to access http://someserver/Reports I get logon window and after I log on as "normal user" I do not see any reports at all. I even added sccmreportviewers group permission directly on one of reports with permission to run reports and
    browse but that didn't get me any closer to solution. Mind you admin users on sccm 2012 can see all reports and run them with out problems.
    PS
    SQL2012 server is running on another server then sccm 2012 and reporting service is installed on SQL2012 server

    Hello All
    Trying to wrap my head around allowing "normal user" to view/run reports via internet explorer http://servername/Reports
    I created a new group called SCCMReportViewers in AD and added one user to that group, then I went to SCCM 2012 and created a new security role by coping existing one called read-only analyst and called it reporting user. On that new role
    I changed all permissions to run reports and nothing else. Then I added that new AD group under Administrative Users on SCCM 2012 server with security role that I made in previous step (reporting user)
    When I try to access http://someserver/Reports I get logon window and after I log on as "normal user" I do not see any reports at all.
    The SSRS reports will not be displayed within the list of available reports if the logged-on-user doesn't have the role/permissions within ConfigMgr to access the data needed to create the report. (well, that how it is for us, and that seems to be fairly
    logical to me)
    e.g. If the user doesn't have the role/permissions to the status messaging data, that user will not see any status message reports available to choose from. (after all, what value is there in allowing somebody to run a report that will never return any result
    rows...)
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Powershell and SCCM 2012 Collections from AD

    Greetings everyone, I am trying to take a select of groups in a certain OU within AD to make SCCM 2012 user collections from. I been playing around with just creating the collections based upon a txt file which would work and is probably easier. Can someone
    go through this mess I have down here and make this work. I found some scripts that do what I need but they just aren't flowing together well. Thanks for any help you can give. I think the 'DOMAIN\\'$ADName isn't going to work either. Thoughts?
    import-module ($Env:SMS_ADMIN_UI_PATH.Substring(0,$Env:SMS_ADMIN_UI_PATH.Length-5) + '\ConfigurationManager.psd1')
    $PSD = Get-PSDrive -PSProvider CMSite
    CD "$($PSD):"
    $ADName = Get-Content -Path C:\fso\ADgroups.txt
    New-CMUserCollection -Name $ADName -LimitingCollectionName "All Users and User Groups" -RefreshType Both
    Add-CMUserCollectionQueryMembershipRule -CollectionName $ADName -QueryExpression "select *  from  SMS_R_User where SMS_R_User.UserGroupName = 'DOMAIN\\'$ADName" -RuleName "QueryRuleName1"

    Hi,
    I highly recommend asking this question in the ConfigMgr 2012 SDK/PowerShell forum:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=configmanagersdk&filter=alltypes&sort=lastpostdesc
    This forum is meant for general PowerShell questions. Hopefully you'll get a good response from someone here, but the people who are familiar with the ConfigMgr cmdlets will be more likely to see your question in the specialized forum.
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Reports not Generated after moving SCCM 2012 SP1 DB on SQL 2012 SP1 cluster

    Hi all,
    i have moved my SCCM 2012 SP1 DB on SQL 2012 SP1 Failover Cluster,this cluster is a two node cluster.the DB was moved fine and the DB configuration in SCCM Site maintenance was also done successfully.After the migration process,SCCM was working fine created
    few collections & packages, then checked the DB on cluster & they were updated successfully.
    but when i tried to install report server on my SCCM machine,again there was no instance displayed after entering the cluster name.
    I searched this & come across this post :-
    http://social.technet.microsoft.com/Forums/en-US/configmanagergeneral/thread/4479e73e-8a19-4c7e-9418-b36770656b9b/
    which says to install report server on the cluster node machine which is currently running the Reporting Service.I tried to install the report server & the instance was detected this time.it was installed successfully.
    But when i tried to generate reports I got this error :-
    Permissions are fine as i have added SCCMadmin & sccm machine in the local admin of both the nodes.
    Please Help.
    Thanks,
    Pranay.

    Yes, I know this is an old post, but I’m trying to clean them up. Did you solve this problem, if so what was the solution?
    If you look at your second screenshot the Remote errors is not enabled. Use this blog to enable them.
    http://www.enhansoft.com/blog/enabling-remote-errors-in-sql
    If changing the data source on the report fixed it for a single report. It means that your shared Datasource is having problems. Reset the username and password within CM12 console and this should fix it for every report.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Using a environment variable that was created during the Task Sequence process - SCCM 2012 R2

    Hi,
    I'm triyng to use a environment variable that is create in the beginning of the Task Sequence.
    1. I'm using a VBScript that get the Exit Code of an application, and create the environment variable "iReturn" with the value of the exit code. (This is working)
    2. I add this variable in the CustomSettings.ini, like this "iReturn=%iReturn%
    3. After the step that I run the VBScript I put the "Gather" step to get the variables, but looking in the BDD.log the iReturn variable appears the same as the CustomSettings.ini configuration "iReturn=%iReturn%". (But, if I put a "Restart
    Computer" step after the VBScript, the BDD.log shows the iReturn variable with the right code.)
    Question: How can I update the environment variable of Windonws XP to use in the Task Sequence without restart.
    OR
    How can I configure autologon in SCCM 2012 (if have no way to update withou restart computer).
    I already tried the autologon with registry settings and a specific user, If I starts the process with this user works, but If I starts the process with other user, after the autologon the process doesnt continue, I have to do logoff and login with the user
    that I started the process.
    PS: All this steps have to be executed before the WinPE phase. 

    Environment variables must be explicitly set every time a system boots so unless you have a process to repopulate it after the reboot, it won't persist automatically.
    Why not store the value in a task sequence variable so that it persists after a reboot?
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • How to create reports servers with the same name in two nodes in Reports

    Greetings
    We are migrating Oracle Application Server 10g (9.0.4) to a better hardware infrastructure with high availability. We want to provide 2 new Oracle Application Server 10g (9.0.4) in High availability and we want to avoid modify the existing forms and reports code, but the code is looking for a specific reports server name when calling reports, but I couldn't create the same reports server name in the both oas machines, I could create the reports server in only one node. I want to create a reports server with the same name in both nodes but it is not possible. I know that there is a procedure to do that in 10.1,2 (Note 437228.1, How to Create Two Reports Servers With the Same Name in the Same Subnet) but I couldn't find the equivalent procedure in 9.0.4.
    Anybody kwows how to create a reports server with the same name in two nodes using 10g (9.0.4)
    Thanks
    Ramiro Ortiz.

    Hello.
    I applied the patch 4092150 on my oas 9.0.4.2 and I modified my rwnetwork.conf file changing the port to 14022 by following the note "How to Create Two Reports Servers With the Same Name in the Same Subnet? [ID 437228.1]" but I am facing the same error rep-56040 "server already exists in the network".
    When I run osfind command I get the following information (My reports server is senarep and I want to create it on SNMMBOGOAS10):
    osfind: Found 2 agents at port 14000
    HOST: SNMVBOGOAS10.sena.red
    HOST: SNMVBOGOAS09.sena.red
    osfind: There are no OADs running on in your domain.
    osfind: There are no Object Implementations registered with OADs.
    osfind: Following are the list of Implementations started manually.
    HOST: SNMVBOGOAS10.sena.red
    REPOSITORY ID: IDL:oracle/reports/server/EngineComm:1.0
    OBJECT NAME: senarep2
    REPOSITORY ID: IDL:oracle/reports/server/ServerClass:1.0
    OBJECT NAME: senarep2
    HOST: SNMVBOGOAS09.sena.red
    REPOSITORY ID: IDL:oracle/reports/server/EngineComm:1.0
    OBJECT NAME: senarep
    REPOSITORY ID: IDL:oracle/reports/server/ServerClass:1.0
    OBJECT NAME: senarep
    Any Ideas?

  • Reports are not opening after SCCM 2012 R2 Upgrade

    Hi,
    I have upgraded my SCCM 2012 SP1 to R2, After that I am unable to run a report and getting below error
    System.Web.Services.Protocols.SoapException: The DefaultValue expression for the report parameter ‘UserTokenSIDs’ contains an error: Logon failure: unknown user name or bad password.
    Seems it is a known issue after R2 upgrade,To resolve this issue we need to change the registry value for "EnableRbacReporting" to "0" under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\SRSRP.
    It was fine for some time,Later its value reverted back to "1" on its own and again reports stopped working.
    Is there any other way to resolve this issue in order to make sure my reports are always available
    Please help me.Thanks
    srkr

    Hi Paul,
    We recently upgraded our SCCM 2012 R2 servers to OS 2012 R2, Now i could not able to see the path you mention in your blog.
    mofcomp.exe “C:\Program
    Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof”
    Bear in mind that the above command is for SQL Server 2008 and it assumes that SQL is installed in its default location.
    The command for SQL Server 2012 is:
    mofcomp.exe “C:\Program
    Files (x86)\Microsoft SQL Server\110\Shared\sqlmgmproviderxpsp2up.mof”
    I can only see D:\Program Files (x86)\Microsoft SQL Server\100\<Below
    folders>
    DTS
    SDK
    Tools
    srkr

Maybe you are looking for