WSUS Reporting per WSUS group
Hello Friends,
I am using this script for WSUS reporting (cannot post links or images so please copy paste into browser to see script code: http://get-mailbox.net/get-wsusreport )
I tweak the UpdateScope
per Boe's post, however, this script uses
GetComputerTargetGroups(), which needs a GUID from WSUS groups. I have 47 groups in WSUS and am trying to use this script to:
Send me report for 'specific' WSUS groups (dont want my audience to see all groups).
Sort the report per group and alphabetically.
So far I have tried to add multiple GUIDs with '-and', '-or' in 'where' statement but is not working (code shown below). The second hurdle of reporting per GUID or WSUS GROUP seems more challenging to my novice self.
Any help is much appreciated :)
$ComputerTargetGroups = $WSUS.GetComputerTargetGroups() | Where {
($_.id -eq 'cedb80f2-a30e-4f0d-82c8-008a8859069f') -and
($_.id -eq 'e97d34eb-848f-4d23-9709-08489e355b36')
http://get-mailbox.net/get-wsusreport
Thanks Boe :) for looking into this. I tried running this with no luck :(
Windows PowerShell Transcript shows Error:
PS D:\Scripts> .\WSUS_Report_4.ps1
Checkpoint 1
Checkpoint 2
Checkpoint 3
Checkpoint 4
Cannot convert argument "0", with value: "", for "GetComputerTargetGroup" to type "System.Guid":
"Cannot convert null to type "System.Guid"."
At D:\Scripts\WSUS_Report_4.ps1:59 char:46 + $MemberOfGroup = $wsus.getComputerTargetGroup <<<<
($ComputerTargetGroups.Id).GetComputerTargets()
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId :
MethodArgumentConversionInvalidCastArgument
Checkpoint 5
Exception calling "GetComputerTargetByName" with "1" argument(s): "Specified argument was out of the range of valid values. Parameter name: Specified argument was out of the range of valid values.
Parameter name: name" At D:\Scripts
\WSUS_Report_4.ps1:70 char:68
+ $ComputerTargetToUpdate = $wsus.GetComputerTargetByName <<<< ($object1.FullDomainName)
+ CategoryInfo
: NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
Code here:
write-host "Checkpoint 2"
$TargetGroups = @{}
$WSUS.GetComputerTargetGroups() | ForEach {
$TargetGroups[$_.Name]=$_.ID
write-host "Checkpoint 3"
#Filter out the groups by Names
$ComputerTargetGroups = $WSUS.GetComputerTargetGroups() | Where {
$_.Id -match "$($TargetGroups['GROUP A'])|$($TargetGroups['GROUP B'])|$($TargetGroups['GROUP C'])"
write-host "Checkpoint 4"
$MemberOfGroup = $wsus.getComputerTargetGroup($ComputerTargetGroups.Id).GetComputerTargets()
write-host "Checkpoint 5"
Similar Messages
-
Standard reports per Account groups
Dear Sap Gurus!
Please tell me if any standard reports are there to analyse customer on basis of Customer account groups linked with payment received debit credit and other fields....
thanks in advance !
Amlan Sarkar
9833301024Dear SAP Gurus!
The Scenerio is as follows there are various account groups :
like z012,z014,z015,z016
I have to define a report to veiw the Agewise report per Customer Account group.
Not Customer Code:
Please help.
rehards,
Amlan Sarkar -
Info Records Per Material Group Standard Report Not Running at All.
Hi Experts,
We had a Small problem Where while Running Info Records Per Material Group(T-code ME1W ) Standard Report the Report is not Showing any output in PRD, where else running Info Records Per Material (T-Code ME1M ) Standard Report the Output is getting Displayed.
Our System is Currently SAP EEC 6.0 & Application Package SAP_APPL is of release 604 & Level 0007, Highest Support Package is SAPKH60407.
is this Issue covered in Some OSS Note?
Thanks & Regards
Priyesh ShahHi,
The info-records for the materials which appears in the standard report ME1M/ME1L is different from the one which appear in ME1W.
If you try with the material groups of the ME1L or ME1M info-records it wont be displayed in ME1W.
ME1W will display only the info-records which are created @ material group level.
i.e. try to create a new info-record using ME11 without entering material, in the general data screen you have to enter the material group & other parameters.
Now once you save this info-record,same will appear in ME1W.
Hope its clear.
Thanks & Regards, -
Wsus query needed - get WSUS-Computers, belonging WSUS-Group and Not Installed Count
Hi,
i try to find a way by using basic WSUS powershell cmds in combination with piping in Server 2012 R2 to get all registered computers in WSUS plus belonging WSUS-Group and Update "Not Installed Count" as output.
Is that possible?
I tried multiple times and enden up in using posh - is there no way based on standard powershell commandlets.
Thank you
PeterHi Michael,
it seems that you are right :(. I tried out a few things with powershell (source
http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/19/use-powershell-to-find-missing-updates-on-wsus-client-computers.aspx) - big problem is that i actually cant get belonging WSUS Group to Server object. I only are able to get all WSUS Groups
but cant find the right sytax to get only belonging ones.
Any ideas?
Thanks
Peter
#Load assemblies
[void][system.reflection.assembly]::LoadWithPartialName('Microsoft.UpdateServices.Administration')
#Create Scope objects
$computerscope = New-Object Microsoft.UpdateServices.Administration.ComputerTargetScope
$updatescope = New-Object Microsoft.UpdateServices.Administration.UpdateScope
#Gather only servers
$ServersId = @($wsus.GetComputerTargets($computerscope) | Where {
$_.OSDescription -like "*Server*"
} | Select -expand Id)
#Get Update Summary
$wsus.GetSummariesPerComputerTarget($updatescope,$computerscope) | Where {
#Filter out non servers
$ServersId -Contains $_.ComputerTargetID
} | ForEach {
New-Object PSObject -Property @{
ComputerTarget = ($wsus.GetComputerTarget([guid]$_.ComputerTargetId)).FullDomainName
ComputerTargetGroupIDs = ($wsus.GetComputerTarget([guid]$_.ComputerTargetId)).ComputerTargetGroupIds
ComputerTargetGroupNames = ($wsus.GetComputerTargetGroups())
NeededCount = ($_.DownloadedCount + $_.NotInstalledCount)
#DownloadedCount = $_.DownloadedCount
NotInstalledCount = $_.NotInstalledCount
#InstalledCount = $_.InstalledCount -
Report for spending per material group
Hi Gurus,
Is there a report that will show us the total spend per material group
Thanks
AnushaTry LIS reports starting with MC*. For material group purchasing values you can try MC$<.
Thanks... -
Dear Expert
Is there any direct report for account group defined in OBD4. Ex I have defined CWIP in OBD4 with range xxxxxx to xxxxxx. I want to execute directly with out writing G/L Nos in any standard report.
Thanks - VGHi,
There are many reports with S_ALR with starting. That is the reason I gave *. Please go through the below path in SAP Easy Access. You can see the reports related to GL.
Accounting
Financial Accounting
General Ledger
Information System
General Ledger Reports
There you can see different group of records. You can use as per requirement.
BR
Ranga M -
Query Purchasing Report per Project
Dear all,
I want to make query that can give me information about purchasing report per project. The data should come from AP invoice and AP credit memo (item and service type). I use project code field in the form to filter data.
Thanks before for your kind helpHai!
Try this
Declare @project as nvarchar(30)
set @Project = (select max(S0.PrjCode) from OPRJ S0 where S0.PrjCode='[%0]')
Select
a.Itemcode,
max(a.Name) Name,
sum(a.quantity) Quantity,
sum(a.price) Price,
sum(a.linetotal) Line_Total from (
SELECT
T1.ItemCode,
max(T1.Dscription) Name,
sum(T1.Quantity) Quantity,
sum(T1.Price) Price,
sum(T1.LineTotal) LineTotal
From
PCH1 T1,OPRJ P0
where
T1.Project=P0.PrjCode and
T1.Project = @Project
Group By
T1.ItemCode
UNION All
SELECT
T1.ItemCode,
max(T1.Dscription) Name,
sum(T1.Quantity) Quantity,
sum(T1.Price) Price,
sum(T1.LineTotal) Line_Total
From
RPC1 T1,OPRJ P0
where
T1.Project=P0.PrjCode and
T1.Project = @Project
Group By
T1.ItemCode) a
Group By
a.ItemCode
Regards,
Thanga Raj.K -
Selective LOV per User/Group
Hi Guys,
Just would like to ask if there's a way on how to limit or only show a selected number of LOVs per User? For example,
I have a parameter for Country and I have 2 Users... User1 should only see let's say China, Japan and Korea, while User2
should be able to see all countries..
Kind Regards and Many Thanks,
MarkI am facing the Same Issue. I implemented Dynamic LOV and published the CR into BOE. But when user runs the report he/she see all the avilable LOVs. But we need only Selective LOV per User/Group.
Please suggest me where can I use the Current CE User function becuase we are already using security table in Crystal Reports.
Thanks
Reddy -
Sales report per year for copmany code & sales org wise
Hi all
Does anybody knows how to take total sales report per year for copmany code & sales org wise
Please advice me with Tcode if it's possible.
Thanks a lot in advance!
U.mahaHi,
Check your configuration for SIS.If it is not there maintain settings for SIS.
SPRO-Logistic Information system-Updating-Updating control-settings:sales
You also need to run these T-codes. OLI7,OLI8,OLI9
(Test first in quality client).
Thanks,
Vrajesh -
Sales Analysis query per item group summarized per BP Group
Dear experts,
My client is requiring me to create a query that when i select a certain item group it returns a sum/total of sold items in that group per BP group
format:
parameter: Item Group A
BP Group A 1,000
BP Group B 2,000
BP Group C 1,000
I have managed to get total sales per BP Group but i cant seem to figure how to break it down per Item Group
here is my query:
SELECT T2.[GroupCode], SUM(ISNULL(T0.Debit,0) - ISNULL(T0.Credit,0)) as "Amount(LC)" FROM JDT1 T0 INNER JOIN OJDT T1 ON T0.TransId = T1.TransId and T0.TransType IN (13,14)
INNER JOIN OCRD T2 ON T2.CardCode = T0.ShortName
WHERE T1.[RefDate] BETWEEN [%0] and [%1]
GROUP BY T2.[GroupCode]
how can I link Item Groups to JDT1?Hi Carlo
Try This
SELECT t5.ItmsGrpNam AS ItemGroup,
t7.GroupName AS BPGroup,
SUM(ISNULL(T0.Debit,0) - ISNULL(T0.Credit,0)) AS "Amount(LC)"
FROM JDT1 T0
INNER JOIN OINV T1 ON T0.transid = T1.transid
LEFT OUTER JOIN INV1 T3 ON T1.docentry = T3.docentry
LEFT OUTER JOIN oitm T4 ON t4.itemcode = T3.itemcode
LEFT OUTER JOIN oitb T5 ON T4.ItmsGrpCod = T5.ItmsGrpCod
INNER JOIN ocrd T6 ON T0.ShortName = T6.CardCode
INNER JOIN OCRG T7 ON t7.GroupCode=t6.GroupCode
WHERE T1.DocDate BETWEEN [%0] AND [%1]
GROUP BY t5.ItmsGrpNam,
t7.GroupName
Rgds -
Hello Experts,
Is there a way to run a report by purchasing group? The report should output at a minimum:
PO #
Vendor Name
Line Item Number
Line Item $ Value
Line Item $ Actual (Invoiced) Value
Charge Number (WBS)
Performance key input or ME2N almost provides this information, but I Performance key input does not include amount billed and I can not export the ME2N report.
Thanks for any helpHi
KIndly use the below tcodes
PUrchase general evaluations -
ME80FN
PURCHIS: PurchGrp PurchVal Selection --- MC$0
PURCHIS: PurchGrp Freqs. Selection --- MC$2
Regards
Damu -
Report on Material group hierarchy
Dear All,
As we are runnning the report for material group hierarchy, Material
hierarchy is not appering in any of the standard reports like MB51,MB5B
etc.We need to take the report based on material group hierarchy,
Is there any standard report to fetch the Material group Hierarchy,.
How and what configuration needs to be done for mateiral group hierarchy. Any steps.please let me know.
Kindly guide us on this.
Regards,
Girish
0821-3983076Hi praveen,
I know Material group in general. But my query is to get report in any standard report , Whether material group hierarchy is there?
Levels of Hierarchy with material group is there?
Thanks & Regards,
Girish -
Crystal Reports sort by group headers
Hi Experts
I have created a crystal report with 16 groups. Instead of sorted each group, i need to sort the list of groups by the 16 fields. is this possible? If so, how?Hi,
I may be wrong by how the report may be reviewed if there are 16 columns to be sorted. It is seldom that a report have more than 10 columns to sort so that the report is still readable.
Thanks,
Gordon -
I need to filter my report based in group totals
Hello
I'm creating a report for the invoices tables, I need to have the sum of all invoices of the clients by month (only the past three months based in the date of the report). The sum of the invoices is also based in the Item Code.
I retrive the vouchers to be sumarized with thw following formula:
IF {INV1.ItemCode} Like "???DS*" AND
{OINV.DocDate} >= DateValue(Year ({?Fecha}),(Month ({?Fecha}))-3,1) AND
{OINV.DocDate} < DateValue(Year ({?Fecha}),(Month ({?Fecha}))-2,1)
Then {INV1.TotalSumSy} Else 0
Then I group the information By CardCode and sum the vouchers by total fields in crystal.
But (here comes the problem)
I want only view in my report only the clients with the sum of the invoices for each month is equal to 0
Someone could help me telling me some way to do this type of filter
Thanks in advance for your helpHi,
Do you also have a group for Month?
Try filtering the groups with a Group Selection Formula (Report > Selection Formulas > Group). Something like this:
Sum(, {Card Code}) = 0
Hope this helps!
-Abhilash -
Portal Activity Reports for multiple groups
Hi,
Can the report display the count of users belonging to multiple groups or would it have to be created seperately for each group. I have tried to use wild cards and commas and nothing worked, the field does not accept more than one valid group name to be entered. Any ideas how to work around this without having to create a different report for different groups?
ThanksHi EAmin,
You can only show information about users who belong to a specific group and not multiple groups. But if you want to show users in multiple groups, you can create a new group (say temp) and add the other groups to temp. Now, configure the report to display users in group temp.
Rajiv
Maybe you are looking for
-
Can you use factime for 3 devices from one itunes account?
I was wondering i have 3 apple devices macbook ipad2 and ipod touch 4th gen I have facebook on all of them and want to use it when i am away but it all goes through one apple id account can this still work or do i need to generate separate accounts f
-
How to upgrade mpb memery from apple shop? just carry in?
I have mbp which bought in 2009, have duo core and 4g ram. Now want to upgrade to 8G, how to do it? Carry in to apple store? How can I know the cost?
-
Problem in javax.xml.stream package
i am getting some trouble while using the import statement for following package:- import javax.xml.stream.*; I have j2sdk1.4.2 installed in my system. I am using NetBeans 3.6 IDE. Should i copy some jars in order to resolve this issue. You can send
-
Dell Printers with OSX and Apple iBook G4
I recently made the switch from a desktop Dell to an Apple notebook. I have not been able to configure my printer with my new Mac. When I try to setup the printer, there is a huge list of possible printer manufacturers, but no Dell. Are Dell printers
-
Password of ddic in ecc 6.0 ides
hi, Password of ddic in ecc 6.0 ides Thanks in sdvance.