Wmi query for group policy deployed software version

I am trying to query the version of a deployed application within a GPO from active directory using wmi.
Anyone know if this is possible?
Thanks.

I don't think you can query GPO information using WMI, but you can use WMI to read Resultant Set of Policy settings. See
RSoP WMI Classes for more information.
Is there any particular reason for using WMI in your case? You can easily retrieve this information using powerShell. The code below will list name and ver of all software install entries of a particular GPO:
$gpo = get-gpo -Name "My GPO Name"
$report = [xml] $gpo.GenerateReport([Microsoft.GroupPolicy.ReportType]::Xml)
$report.gpo.Computer.ExtensionData.Extension | `
Where-Object{ $_.type.contains( "SoftwareInstall" ) } | `
foreach-object{
foreach( $item in $_.ChildNodes )
"`"{0}`" Ver. {1}.{2}" -F $item.name, $item.MajorVersion, $item.MinorVersion
Gleb.

Similar Messages

  • Group Policy Deployment Acrobat Standard XI Version 11

    I was able to successfully create a Windows 2008 R2 SP1 Group Policy that would be able to distribute the Adobe Reader Application using the Adobe Customization Wizard XI. I tried to use the same procedure from the Adobe Acrobat Standard 11 download from the adobe licensing site and was unable to get the Group Policy to work. The error message that I am getting is...
    The install of application Adobe Acrobat XI Standard 11.0 from policy  Deploy Adobe Acrobat 11 failed. The error was : %%1603
    This is the procedure that I created for deployment of Adobe Acrobat XI using Group Policy.
    How to create a group policy deployment of Adobe Acrobat XI
    Overview:
    This procedure covers the steps needed to create a group policy that will deploy the Adobe Acrobat installation.
    Requirements
    •    Windows 2008 Group Policy
    •    Adobe Acrobat Customization Wizard
         o    ftp://ftp.adobe.com/pub/adobe/acrobat/win/11.x/11.0.00/misc/CustWiz11000_en_US.exe
    •    Adobe Acrobat XI (Version 11)
         o    download from adobe account
    Procedure:
    1.    Download the Adobe Acrobat XI package.
    2.    Extract the contents of the Adobe Acrobat XI package.
    a.    Type msiexec.exe /a AcroStan.msi
    b.    Click Next
    c.    Put in the Network Location Share where everyone can extract the installation.
    d.    Click Install
    e.    The package will then extract to the network location as indicated above.
    f.    Click Finish, once the installation has completed.
    g.    Open the Adobe Customization XI Wizard, and customize the package by selecting the AcroStan.msi file. 
    h.    Customize the AcroStan.MSI installation file   
    i.    Default viewer of PDF files: Make Acrobat the Default PDF Viewer
    ii.    Remove previous versions of Acrobat
    iii.    Run Installation: Silently
    iv.    If reboot is required at the end of installation: Suppress reboot
    i.    Shortcuts: Remove the desktop Shortcut
    j.    Online and Adobe Services: Disable Product Improvement Program: checked.
    k.   Generate Transform File
    i.    Click Transform > Generate Transform File
    ii.   Create an Setup.Ini file in the folder of the Distribution Package.
    iii.  Name the Transform File something useful like “CompanyConfigs”.
    3.    Create a Group Policy to deploy the software package. It is usually best to have a group policy for each software installation package.
    a.    Update the Domain Default Policy with Always install with elevated privileges. This will allow all software deployment packages to install. 
    i.    Computer Configuration > Policies > Windows Settings > Administrative Templates > Windows Components > Windows Installer > Always install with elevated privileges : Enabled.
    b.  Create a Group Policy to enable Windows 7 Verbose Mode
    i.    Computer Configuration > Policies > Administrative Templates > System > Verbose vs normal status messages : Enabled.
    c.    Create a Group Policy for the Software Installation
    i.     Computer Configuration > Policies > Software Settings
    ii.    Right click and select New > Package
    iii.   Click the AcroRead.msi
    iv.   Click Advanced
    v.    Click the Modifications Tab and click Add
    vi.   Optional: Click the Uninstall this application when it falls out of the scope of management.
    Note: This setting can be used to uninstall the application if the group policy ever changes in that the application should be removed.
    vii.    The package is now created …
    4.    Test the Client in a Virtual Machine
    a.    Go to a windows client and run “gpupdate /force”.
    b.    The system will then respond that it needs to restart the computer.
    c.    Type Yes, and allow the computer to reboot.
    d.    If Group Policy is not setup to allow for verbose messages in Windows 7 then the user will just see “Please wait…”, if verbose message is enabled the user will see “Installing Adobe Acrobat…”.
    Can someone please tell me what I am missing to get the group policy deployed? It has the same permissions as the Adobe Reader folder and I have done everything exactly the same, except that Adobe Standard has the license number, and owner information included in the Transform file (.mst).
    Thank you.

    Your case isn't unique. We've heard this a lot. While Acrobat has a small, very small percentage of settings available in the ADMX files,
    in case you don't know, PolicyPak software has a solution to manipulate, basically, near 100% of the settings in Acrobat Reader and Professional.
    You're welcome to check out how it works. These videos are for Acrobat X, but there is also tempaltes in the download for XI.
    Here are links to the pages with full how-to videos:
    http://www.policypak.com/products/manage-acrobat-reader-with-group-policy.html
    and
    http://www.policypak.com/products/manage-acrobat-x-pro-and-acrobat-x-standard-using-group- policy.html
    You can be up and running in 20 minutes, but note, it's NOT a template.. PolicyPak is full application management and lockdown system.

  • How are you tracking deployed software versions for traceabili​ty?

    I am curious how others are tracking deployed software versions in automated test environments.
    I am working on a medical device tester and we have a somewhat inefficient method for keeping track of all version numbers. I would like to know what tools are available to automate tracking version throughout a project, from build to viewing later. Or, what methods are typical in this type of environment.
    Essentially, we need to be able to say at any given moment what software version is running at 3 remote locations on several deployed systems.
    For simply automating the process of viewing the version number programmatically, I found this, but we've had issues with it:
    http://digital.ni.com/public.nsf/allkb/D45E3A1E694​815AD86257173005CFD36
    This solution requires a "separate" installer to get the .NET framework onto the target PC. Also, it doesn't work (to my knowledge) with the Help>>About window.
    Comments?
    Dan Richards
    Certified LabVIEW Developer

    Dennis,
    Thanks for replying. We are using SVN. The exact ECO process for this project is under construction as it is a relatively new project and deployments will be at our customer's site. We use JIRA for tracking specific change requests.
    Here's an example of our basic process:
    - Software changes made (according to JIRA tasks) and source code checked in
    - Builds released per schedule with version numbers (from JIRA projects) hard-coded into the application
    - Builds deployed at different locations & times
    Here's what I'd like to see to improve things:
    - Builds released with version numbers generated from one of the following:
       1. Loaded from JIRA release numbers - maybe auto-generated for reference by LabVIEW when building the application
       2. Part of a custom build launcher
             >> This would be a custom interface that runs functions like those in Application Builder palette while also sending version info
             >> Perhaps it could prompt the user for version info or read from something auto-generated.
    - Builds should automatically make version numbers visible within the application (for example, LabVIEW has the Help>>About window)
    - Build numbers should be programmatically/dynamically accessible without having to install an additional .NET framework that isn't listed in 'Additional Installers'
    Curious if there are any tools that support these kinds of things. I am aware of Deploy by Wirebird Labs and Proligent by Averna, although I am lacking in knowledge about specific features.
    Regards,
    Dan
    Dan Richards
    Certified LabVIEW Developer

  • Operations manager failed to run a wmi query for wmi events (0x800706ba)

    Hi everyone,
    I've been working on this issue for a while and I am still no closer to finding out what the problem is.  If anybody can offer any other advice or things to check, I'm all ears.
    I'm running SCOM 2012 R2 with UR2, and the Cluster Management Pack v6.0.7063.0
    My problem is on one particular batch of cluster servers where I am getting the following error.
    Name: Operations Manager failed to run a WMI query for WMI events
    Alert Description:
    Module was unable to enumerate the WMI data
    Error: 0x800706ba
    Details: The RPC server is unavailable
    Workflow name: Microsoft.Windows.Cluster.Node.StateMonitoring
    Instance Name: servername.domain.local
    Instance ID: {instance_id}
    Management group: SCOM_Management_Grp_Name
    I am getting this alert regardless of whether I run the Windows Cluster Action Account as Local System, or as a domain user with full local admin privileges on all the cluster nodes.
    When looking at the management pack and the workflow in particular (Microsoft.Windows.Cluster.Node.StateMonitoring), I can see that it's trying to access
    MSCluster_Node in the root\MSCLUSTER WMI namespace.
    This is the workflow for your information...
    <UnitMonitor> ID="Microsoft.Windows.Cluster.Node.StateMonitoring" Accessibility="Public" Enabled="onEssentialMonitoring" Target="ClusLibrary!Microsoft.Windows.Cluster.Node" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="ClusLibrary!Microsoft.Windows.Cluster.CheckState" ConfirmDelivery="false">
    <Category>AvailabilityHealth</Category>
    <AlertSettings AlertMessage="Microsoft.Windows.Cluster.Node.StateMonitoring.AlertMessage">
    <AlertOnState>Warning</AlertOnState>
    <AutoResolve>true</AutoResolve>
    <AlertPriority>Normal</AlertPriority>
    <AlertSeverity>MatchMonitorHealth</AlertSeverity>
    <AlertParameters>
    <AlertParameter1>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter1>
    <AlertParameter2>$Target/Property[Type="ClusLibrary!Microsoft.Windows.Cluster.Node"]/ClusterName$</AlertParameter2>
    </AlertParameters>
    </AlertSettings>
    <OperationalStates>
    <OperationalState ID="Success" MonitorTypeStateID="Online" HealthState="Success" />
    <OperationalState ID="Warning" MonitorTypeStateID="Partial" HealthState="Warning" />
    <OperationalState ID="Error" MonitorTypeStateID="NotOnline" HealthState="Error" />
    </OperationalStates>
    <Configuration>
    <ClusterObjectName>$Target/Property[Type='ClusLibrary!Microsoft.Windows.Cluster.Node']/NodeName$</ClusterObjectName>
    <PollInterval>60</PollInterval>
    <ClusterObjectClass>MSCLUSTER_Node</ClusterObjectClass>
    <OnlineExpression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">0</Value>
    </ValueExpression>
    </SimpleExpression>
    </OnlineExpression>
    <OnlineExpressionOnDemand>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='State']</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">0</Value>
    </ValueExpression>
    </SimpleExpression>
    </OnlineExpressionOnDemand>
    <PartialExpression>
    <Or>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">2</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">3</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    </Or>
    </PartialExpression>
    <PartialExpressionOnDemand>
    <Or>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='State']</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">2</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='State']</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">3</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    </Or>
    </PartialExpressionOnDemand>
    <NotOnlineExpression>
    <And>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
    </ValueExpression>
    <Operator>NotEqual</Operator>
    <ValueExpression>
    <Value Type="String">0</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
    </ValueExpression>
    <Operator>NotEqual</Operator>
    <ValueExpression>
    <Value Type="String">2</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
    </ValueExpression>
    <Operator>NotEqual</Operator>
    <ValueExpression>
    <Value Type="String">3</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    </And>
    </NotOnlineExpression>
    <NotOnlineExpressionOnDemand>
    <And>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='State']</XPathQuery>
    </ValueExpression>
    <Operator>NotEqual</Operator>
    <ValueExpression>
    <Value Type="String">0</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='State']</XPathQuery>
    </ValueExpression>
    <Operator>NotEqual</Operator>
    <ValueExpression>
    <Value Type="String">2</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">Property[@Name='State']</XPathQuery>
    </ValueExpression>
    <Operator>NotEqual</Operator>
    <ValueExpression>
    <Value Type="String">3</Value>
    </ValueExpression>
    </SimpleExpression>
    </Expression>
    </And>
    </NotOnlineExpressionOnDemand>
    <WMIFields>Name, State</WMIFields>
    </Configuration>
    </UnitMonitor>
    I can confirm that I am able to browse the MSCluster_Node class locally, as well as remotely using WMIEXPLORER and WBEMTEST,
    however it only works when I set the Authentication Level to
    Packet Privacy.  If I do not select Packet Privacy, a WMI event log error 5605 is logged on the remote servers application log that says...
    The root\mscluster namespace is marked with the RequiresEncryption flag.  Access to this namespace might be denied if the script or application does not have the appropriate authentication level.  Change the authentication level to Pkt_Privacy
    and run the script or application again.
    I can confirm that all firewalls are turned off, and there are no firewalls between the management servers and the agents in question.  AV exclusions have been done and appear to be in place.  The nodes are all Windows 2008 R2 with SP1.  As
    far as I can tell there is plenty of memory available on each of the nodes in question (50%+) of RAM is available. 
    If I manually run the "Discover the Windows Server 2008 R2 Cluster Components" task in the Cluster Service State section of the management pack in the Monitoring Pane in the console, on the nodes in question - the discovery runs successfully.
    Does anybody have any other ideas or suggestions I could try?
    Many thanks in advance,
    Noel.
    http://www.dreamension.net

    Hi,
    Common causes of RPC errors include:
    Errors resolving a DNS or NetBIOS name.
    The RPC service or related services may not be running.
    Problems with network connectivity.
    File and printer sharing is not enabled.
    For more information, please review the link below:
    Windows Server Troubleshooting: "The RPC server is unavailable"
    http://social.technet.microsoft.com/wiki/contents/articles/4494.windows-server-troubleshooting-the-rpc-server-is-unavailable.aspx#Identify
    Troubleshooting RPC Errors
    http://technet.microsoft.com/en-us/magazine/2007.07.howitworks.aspx
    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.

  • [Forum FAQ] The Value drop down list is grayed out when you perform search for Group Policy Objects in GPMC

    Symptom
    On Windows Server 2012 or Windows Server 2012 R2, when you use the Search for Group Policy Objects feature in GPMC, the “Value” field is not populated when you choose “User Configuration” as the Search Item. (See Figure 1.)
    <Figure 1>
    Cause
    The happens because the  Data of the (Default) value of the following Registry Key is not correct.
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GPExtensions\{4D2F9B6F-1E52-4711-A382-6A8B1A003DE6}]
    By default the Data is (value not set). (see Figure 2)
    <Figure 2>
    Resolution
    The registry keys under [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GPExtensions] are the Group Policy Preference Client Side Extensions. The CSE name of the GUID {4D2F9B6F-1E52-4711-A382-6A8B1A003DE6} is
    RemoteApp and Desktop Connections. Please follow the steps below to resolve the issue.
    1. Locate the registry key: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GPExtensions\{4D2F9B6F-1E52-4711-A382-6A8B1A003DE6}]
    2. Take the ownership of this key: Right click on the registry key and choose Permissions option and click the Advanced button on the dialogue window. Then on the Advanced Security Settings dialogue window, click Change button to take the ownership
    of the key for the current logon account and make the current logon account Full Control permission with the registry key. (See Figure 3.)
    <Figure 3> 
    3. Change the data of (Default) value from "(value not set)" to
    "RemoteApp and Desktop Connection Component". (See Figure 4)
    <Figure 4>
    4. Once the steps above are completed, the Value drop down list will be populated again when you perform Search in GPMC. (See Figure 5)
    <figure 5>
    This article has been created as a TechNet Wiki
    here.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    thanks for the tip - but you should create this as a wiki article as it will be easier to reference in the future
    Regards,
    Denis Cooper
    MCITP EA - MCT
    Help keep the forums tidy, if this has helped please mark it as an answer
    My Blog
    LinkedIn:

  • Is there a manual I can PRINT for the Airport Utility Software Version 5.5.3 for Windows?

    Is there a manual I can print for the Airport Utility Software Version 5.5.3 for Windows?
    If there is, I can't seem to find it anywhere (in the Software, by using Google, etc).

    I dont' believe there were manuals out there for different versions of the utility. That would be quite a few different manuals.
    There are different manuals for the different base stations however...

  • ActiveX msi Flash Player 10.0.42.34 group policy deploy issue

    I have been deploying the flash player to our workstations since version 9.  We have a 2003 AD domain and XP SP3 workstations.
    I know that it is recommended to use the flash uninstall program to remove flash when installing a new version but I haven’t taken the time to work on that type of scripting for any install.  Any attempts to uninstall the previous versions of flash via group policy when deploying have never worked.  I had the same experience with java 1.5 jres…they would never uninstall via policy.
    I have had success so far with deploying the latest version to the workstations with a new policy while leaving the old policy applied until a few weeks have past when all the workstations have been updated.
    I am in the process of deploying Flash Player 10.0.42.34 to replace Flash Player 10.0.32.18
    My test deploy to my virtual XP test workstation worked with no problems.  The flash test paged detected the newer version and the correct version was in add/remove programs.
    I then did a test deploy to a production workstation and the software installed without errors (the group policy install went extremely fast so I knew something was wrong).  No errors were reported in the workstation application log.  However when you visited the flash test page no version of flash was detected.  I also checked in add/remove programs and the program icon was the windows installer icon instead of the normal red flash box….this has been associated with other installation issues in the past.
    I have tried this on 3 other production machines and experienced the same results.  My virtual XP test workstation has only had version 10.0.32.18 on it so I am guessing that having had the older versions of 10 on the production workstations is causing the problem somehow.
    I have had issues in the past, but nothing like this.  Looks like I may have been owned by adobe on this one.
    Any insight would be appreciated.
    Thanks

    Sure , here is the url :
    http://www.forevermark.com/ja-jp/The-World-of-Forevermark-/Precious-Collection/
    On some machines , the Japanese text in the centre section appears very large. ..( see attached snapshot)
    We initially encountered this on the version prior to the 10.0.42.34 version.
    However even after the upgrading to 10.0.42.34 , the problem still persists .
    Thanks

  • Can I prevent a user from Deleting the Group Policy deployed power plan?

    I have Power Manager version 3.20 installed and am using the Group Policy template to deploy a customized power plan.  I do not want my users to have the ability to delete this custom plan, but I cannot find the option in the Group Policy to change the setting that would grey-out the Delete button in Power Manager.
    I have located the registry value that changes the function of Power Manager, it is: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lenovo\PWRMGRV\PowerSchemes\42617646-BC99-48E2-B3AF-C562C25F4098\ProhibitModification.  If the value is 0, then the delete button is available.  If the value is 5, then the delete button is greyed-out.
    The problems is that the Power Plan ID number (the 42617646-BC99... part in the reg key above) changes from computer to computer.  That ID string seems to be tied somehow to the specific computer.  So, I cannot just create a Group Policy Preference to change that value in the registry, because that value is always going to have a different name.
    The computers are all ThinkPad T400 model and are running Windows 7 Enterprise 64-bit.
    Can anyone suggest a different method to change this setting?  If not, is there any chance that the Power Manager application can be upgraded to include this control?
    Thank you!

    welcome to the forum!
    to add to what gan said, page 6 of the power manager deployment guide covers this policy over active directory.
    http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=TVAN-ADMIN#pmat
    http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-70419
    ThinkStation C20
    ThinkPad X1C · X220 · X60T · s30 · 600

  • Group Policy Managed Software Windows 8.1

    Hi
    Is software installation/assigned applications in group policy supported in Windows 8.1 as they don't seem to work correctly.  We either have them hanging at startup or they reinstall each time even though its already installed it.
    I can't find anything searching online regarding Windows 8.1 and deploying software this way with group policy.

    > Is software installation/assigned applications in group policy supported
    > in Windows 8.1 as they don't seem to work correctly.  We either have
    > them hanging at startup or they reinstall each time even though its
    > already installed it.
    Does it work correctly with older OS versions? Maybe it's not an issue
    of Win 8.1, but of the MSI itself?
    Unfortunately, GPO MSI deployment debug logging is broken in Windows 8
    and above, so you'll have a hard time digging that down...
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Office 2013 Group Policy Deployment

    Hello,
    I'm trying to deploy Microsoft Office 2013 Professional Plus using Group Policy. I'm trying to use these directions: 
    http://technet.microsoft.com/en-us/library/ff602181(v=office.15).aspx
    Throughout the directions, they give instructions, then follow it up by saying what to do if you're using a Windows Installer-based Office. This is probably a dumb question, but I'm confused on whether or not I'm using a Windows Installed-based Office. The
    setup program is a .exe file, but there are multiple .msi files in the folders.

    The setup program is a .exe file, but there are multiple .msi files in the folders.
    If you have setup.exe and various other .msi files, this confirms that you are using the Windows Installer-based Office fileset.
    (actually, Office2013ProfessionalPlus is *only* available in this .msi form)(other forms are available for other products e.g. Office365ProPlus)
    The documentation draws the distinction, mainly because the documentation is partially shared across different products which can come in different forms)
    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!)

  • Query For Retention Policy On All Folders

    I am looking for a way to query for the retention policy assigned to all user folders (per folder/per user). My client allows the user to set the folder retention policy per folder and would like to know how each user has that configured. This is for
    a 700 user environment. I know any CSV generated as output could have thousands of rows.
    thanks.
     

    You will have to use EWS for that. Here's an example (for 2013):
    $getRTResp=$exchangeService.GetUserRetentionPolicyTags()
    function GetTagName($tagGUID) {
    if (!$tagGUID) { return ($getRTResp.RetentionPolicyTags | ? {$_.Type -eq "All"}).DisplayName }
    foreach ($tag in $getRTResp.RetentionPolicyTags) {
    if ($tag.RetentionId -eq $tagGUID) { return $tag.DisplayName }
    $FpageSize =100
    $FOffset = 0
    $folderView = new-object Microsoft.Exchange.WebServices.Data.FolderView($FpageSize,$FOffset,[Microsoft.Exchange.WebServices.Data.OffsetBasePoint]::Beginning)
    $folderView.Traversal = [Microsoft.Exchange.WebServices.Data.FolderTraversal]::Deep
    $folderView.PropertySet = new-object Microsoft.Exchange.WebServices.Data.PropertySet(
    [Microsoft.Exchange.WebServices.Data.BasePropertySet]::IdOnly,
    [Microsoft.Exchange.WebServices.Data.FolderSchema]::DisplayName,
    [Microsoft.Exchange.WebServices.Data.FolderSchema]::ArchiveTag,
    [Microsoft.Exchange.WebServices.Data.FolderSchema]::PolicyTag,
    [Microsoft.Exchange.WebServices.Data.FolderSchema]::FolderClass);
    $oFindFolders = $exchangeService.FindFolders([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::MsgFolderRoot,$null,$folderView)
    foreach ($folder in $oFindFolders.Folders) {
    Write-host $folder.DisplayName "has Policy:" $(GetTagName $folder.ArchiveTag.RetentionId)
    Obviously, it needs some work, a loop for all 700 users, proper error handling, etc. But hopefully it illustrates the idea. For older versions, its a bit more work to get the Name of the tag, but you can also use Get-RetentionPolicyTag for that.
    Code adapted from:
    http://blogs.msdn.com/b/akashb/archive/2012/01/12/stamping-retention-policy-tag-on-items-using-ews-managed-api-1-1-from-powershell-exchange-2010-part-2.aspx
    http://blogs.msdn.com/b/mvpawardprogram/archive/2013/04/08/5-lesser-known-operations-in-exchange-web-services-on-exchange-2013.aspx

  • Query for Group by & order by

    Hi all,
    I have a table name as angdata77 having attributes like asigno..
    i want to retrieve data from angdata77 by using both group by & order by clauses.. for total count..
    am using the query as
    select asigno,count(*) from angdata77 group by asigno order by asigno;
    Is there any other query for retrieving the data from angdata77
    Thanks in Advance,
    Venkatesh J.

    885756 wrote:
    Ya it's good.. Performance also good while retrieving data...
    I want to know other Possibilities also sir...There will be no better alternative for this, because this is the most simple and straight forward way to get the output you are looking for..
    Go ahead without any confusion... :)

  • Windows 7 automatic computer maintenance - Registry edit for group policy?

    A lot of folks at my company have broken desktop shortcuts (refer to http://support.microsoft.com/kb/978980 for the issue)  and I want to edit the group policy so we can turn off scheduled computer maintenance for everyone.  Is there a specific
    registry location for this change? 
    Thanks,
    Elizabeth

    Not sure how to disable shorcut cleanup portion. Here is what it does
    Broken shortcuts - Broken shortcuts are invalid references to programs and other resources. For example, a desktop shortcut for a USB device may be regarded as broken if the USB device is not connected when the System Maintenance troubleshooter
    performs its maintenance. When there are more than 4 broken shortcuts on the desktop, then all broken shortcuts on the desktop are removed.
    Troubleshooting history is taking up disk space - Frees up disk space by removing troubleshooting history logs older than 1 month.
    System time is incorrectly set - Sets the correct system time and synchronize system clock with the time server. When the system time is set incorrectly, features that rely on time measurement such as Product Activation, malware scanners,
    browser certificates, etc... might not work correctly.
    Unused desktop icons - Icons and shortcuts on the desktop that have been unused in 3 months are removed.
    Disk volume errors - Frees up disk space by repairing hard disk volume errors such as bad sectors, lost clusters, cross-linked files and directory errors. These problems can cause the file system to report incorrect volume details and occupy
    excessive disk space.
    Error reports are taking up disk space - Frees up disk space by removing error reports and logs older than 1 month.

  • SCCM Query for summary of installed software in a specific collection

    Hi,
    I have a SCCM 2012 SP1 environment, I am given a task to collect Summary of installed software in a specific collection. There is a built in report under Reports > Asset Intelligence > Software 01A - Summary of installed software in a specific collection.
    But this report is throwing an XML error. I need the query to collect the installed software in a specific collection .Can anyone tell me what the query is ?
    Also using the report builder is there a way to mirror the built in report so that I can generate the same report as Software 1A - Summary of installed software in a specific collection.
    Regards, h9ck3r.

    Hi
    In order to create a "copy" of the Summary of installed software in a specific Collection you would have to do the following:
    Browse to http://ServerName/Reports/ - where ServerName is the name of the server where you installed SQL Reporting Services
    Click the ConfigMgr_SiteCode folder
    Select New Folder and in the New Folder window type the of name of the new folder i.e Custom Report (or whatever you like), then click
    OK
    Click the Asset Intelligence folder
    Find the Software 01A - Summary of installed software in a specific Collection report
    and click the drop-Down arrow next to the report and select Edit in Report Builder. Wait for Report Builder to open the report
    In Report Builder, click the System Center Orb
    (top left corner) and select Save As
    In the Save As Report dialog box, change the name of the report to something else and browse to the folder you created earlier and then click
    Save
    In order to get data into the Software 01A - Summary of installed software in a specific Collection report, you must have
    SMS_InstalledSoftware class enabled in Asset Intelligence. You write that you get a XML error when running the report. Verify that the required class is enabled in
    Asset Intellingence and whether you are able to run any of the other Asset Intelligence reports or any´reports as all for that matter.

  • How to write a query for grouping them the columns and give the sequence order to each group/

    Hi i have table that contains country columns .
    India,USA,UK like these when ever the group changed into the differt country i make a group and arrange them the sequence into those Countries
    like below
    1)India
    2)India
    1)USA
    2)USA
    like these to write a query ..........pls help me for this query

    Assuming you're using SQL Server you can ask here:
    http://www.sqlteam.com/forums/forum.asp?FORUM_ID=23
    Otherwise, please ask in the relevant forum for the type of technology you're using.
    Basically it's either:
    select *
    from [table name]
    order by country
    If you want to do something with groups do something like:
    select (max) income, country
    from [table name]
    group by country
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

Maybe you are looking for

  • Security issue in Acrobat Pro 7.0

    Hi, I've found this problem in Acrobat v7. I created a document and signed it using my adobe digital signature (my sig displays an image of my hand written sig.) The signature appears on the doc with a green tick next to it to show that the sig is va

  • Rules and functions (PE04)?

    hi while passing the parameters(embedded in the schema) on calling any function..can u see where those parameters are stored at the run time?table or syst variable.. like whenver operations are called in payroll the OP is getting populated ... like t

  • Edit - Create SubVI results in error "an input parameter is invalid [...] cannot save VI"

    I get this error with some frequency.  I select a bunch of my block diagram, create a subVI only to find that it is unsaveable.  Here are the steps I take to reproduce this: Select a portion of code Edit -> Create SubVI open the new subVI try to save

  • What's adobe air and adobe community help?

    I loaded 5.5 tonight and got a popup asking me if I'd like to install the new version of Adobe Air.  I said no thanks.  Then I clicked on the Help in 5.5, and it suggested I'd like to install a new version of Adobe Community Help.  I said okay, and t

  • User exit for contracts

    Hi All, our requirement is as follows: Whenever the price conditions in a contract is created or changed(me31k or me32k),the info record,schedule agreements and PO's should be updated with these conditions. I would like to know which user exit or BAD