ACL change report
Hi Everyone,
I'm trying to create powershell script which would alert when ACL changes are made to shares, folders and subfolders running on multiple servers
What I have so far kind of works, I'm getting ACL report fine but how would I correctly diff ACL report from previous day withe current ACL report? When I do compare-object I'm getting permissions changed listed value without path. Here is what I have:
$shares = "C:\scripts\dirs.txt"
$ref = "C:\scripts\ref.csv"
$refchanged = "C:\scripts\ref.txt_$date"
$curracl = "C:\scripts\curracl.csv"
$date = get-date -uformat "%y%m%d.%H%M%S"
$output = "C:\scripts\result.txt"
gc $shares | % {
$folder = $_
$folders = Get-ChildItem -path $folder -force -recurse | Where {$_.PSIsContainer}
$dirs = $folders
ForEach ($d in $dirs)
get-acl -path $d.FullName | format-list -Property path, accesstostring | | Out-file -Append $curracl
$diff = compare-object -referenceobject $(get-content $ref) -differenceobject $(get-content $curracl) | fl | Out-file "C:\scripts\diff.txt"
$result = (gc C:\scripts\diff.txt)
Also, when I export to csv I'm getting permissions listed only for one user, the user listed first in directory ACL.
What am I missing here?
Hi,
When open the CSV, what it looks like? There should be two colum, one is path, another is accesstostring.
I run below command, got two colums:
get-acl e:\test | select path, accesstostring | export-csv e:\result.csv
Please also go through the below article to audit permissions using powershell:
Audit File Server Permissions Using PowerShell
http://blogs.technet.com/b/zarkatech/archive/2012/01/14/audit-file-server-permissions-using-powershell.aspx
Hope this helps.
Regards,
Regards, Yan Li
Similar Messages
-
Hi
I have requirement to track ACL changes for a specific folder in KM. I need to keep a track of ACL changes happening and create report out of this.
I thought of repository services. But I could not see any events related to ACL/Permission changes.
Is there any way to capture ACL change events.
Regards,
YogaClosing thread
-
Purchase order price change report
Hello
How to retieve the purchase order price change report ? do we have any standard report for it or any table which gives these data?
kindlHI
Have you activate version management at your end for PO,i think this will help you to track changes of PO for qty,price etc.
[http://wiki.sdn.sap.com/wiki/display/ERPLO/Version+Management]
Regards
Kailas Ugale -
Change report S_ALR_87012168 - 0SAPDUEAN-01
I am in FDI2 for changing report 0SAPDUEAN-01-Due Date Analysis for Open Items. I would like to add one more characteristic in the list available in the right hand side. Currently there are only 26 characteristics available for selection
Hi Suma,
In my last project I worked a lot on that to add new characteristic but I didn't get in clue. If you get any idea that would be great.
Best of luck
Sreenivas -
How to change report displayname at runtime when run from the report server?
hi all,
with the reportviewer widget in a winforms app, i'm able to change report displayname at runtime by handling thesubmittingparametervalues event like so:
private void reportViewer1_SubmittingParameterValues(object sender, ReportParametersEventArgs e)
string po = e.Parameters["Order"].Values[0];
this.reportViewer1.ServerReport.DisplayName = "Load Out - " + po + " - " + DateTime.Now.ToShortDateString();
question: how do i achieve the same thing when the report is run via the ssrs reportserver website?
thanks for any tips,
sffHi sherifffruitfly2,
According to your description, you want to change the display name of report in Report Manager. Right?
In Reporting Services, we can't make the report file name dynamically. But we have Build-in Fields to show report name and execution time in a report. We can add a textbox and put in the expression below:
="Load on- "+Globals!ReportName+" "+Globals!ExecutionTime
It will show the report name with execution time when we run the report:
Reference:
Built-in Collections in Expressions (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
How can I change reports in report painter.
Dear Consultants,
I need to change report according to client requirment.
1, Lay out change in std report.
2, How can I customize report to get cost element group wise with sub totals one by one.
Please tell me how to do it step by step, I'll will award full points.
Kind regards,
Arvey.Dear Arvey,
1. Layout can be changes by going into report painter change transaction GRR2, selecting the report (by double click) and then going to Formatting-->Report layout.
2. Second question is not very clear to me. pls provide more detail.
Regards, -
Trying to Add IBAN Field to Vendor Changes Report
Hi,
I need to add IBAN field to vendor changes report (S_ALR_87012089).
These are the steps I took:
1) Go to OBAT and add new field group
2) Go to OBAU and add new fields to field group created in (1)
However, TIBAN fields cannot be added to the field group.
Are there any workarounds?
Thanks.No solution except customization
-
How to use Prompts in the Filter created in Change Report Properties
Hi all,
I have created one Datetime prompt in Change report properties dialogue box.
Now how can I use this same one in the filter ??
Since I didn't get Surface and Prompt option for the Date field in the filter.
Any help is appreciated.
ThanksActually problem is with Datatype..It was timestamp but it should be Datetime
-
How to add the new character in FDI1FDI2 Define/Change Reports?
Hi,
There are some fixed charcters defined in the T. Codes FDI1FDI2 Define/Change Reports, can we add the characters here based on which we can get teh desired output. If yes, hen please tell me how to add the characters?
Thanks in advance...
Regards
Nitinthanks
-
Hi,
Is there any report is available in SAP to find what changes have made in FSSO and OB52 and Vendor master data and Customer master Data?
Thanks
ChiruHi,
Display Changes reports for vendor T.code: FK09
customer: FD09
G/L Accounts :FS04
For Open items and closeing postinperiods: OB 52,
then from menu select Utilities--> Change log.
Regards
gvr -
Hi experts,
We want to have a period wise PR Changes Report, how can we get it.
Please help.
Regards
IshuHi,
Use report ME5A with
Dynamic selection (Shift +F4) --> choose field -->Changed on --> with select ranges there you can give from date to To date.
SAM -
In a previous thread titled [Change Report Owner|Change Report Owner; by [Roy King|http://forums.sdn.sap.com/profile.jspa?userID=4028889] he was asking how to change the owner of a report.
Since the post went unanswered, I thought I would post the solution that worked for me:
If you are using ASP.Net like I did, you can follow the post from [Pinchii.com: How to Change Owner for a Crystal Reports Server Report|http://pinchii.com/home/2011/01/how-to-change-owner-for-a-crystal-reports-server-report/]
The code on this page is a complete .NET project ready to use
If you are using Java, you can use the code from [ Forumtopics.com's BoB LoblaW: Re: Change Report Owner|http://www.forumtopics.com/busobj/viewtopic.php?p=699058#699058]. Bob's code is only the bit you need to change the owner, but you still have to code the rest
The key to change the owner is to change SI_OWNERID
and the fix for Roy Kings Code:
Replace the line oSourceUserObject.save();
sourceUser = (IInfoObjects) iStore.query("select * from ci_infoobjects where si_id=" + repID);
for ( int i = 0; i < sourceUser.getResultSize(); i++ ) {
oSourceUserObject = (IInfoObject)sourceUser.get(i);
//oSourceUserObject.properties().setProperty("SI_OWNERID",ownerID); //set new Name/ID
oSourceUserObject.properties().setProperty(CePropertyID.SI_OWNERID,ownerID); //set new Name/ID
//oSourceUserObject.save();
oSourceUserObject.save();
with
iStore.commit(sourceUser);
The above code is not complete, you need to declare an instance of the infoStore service which is represented above by iStoreI would open a support ticket, since you appear to have an interesting case.
As background, there's some things that can trigger change in ownership to Administrator, where the main culprit is that the original owner User is either deleted or disappears. When the owner is gone, then documents are transferred to the Administrator.
For example, if you have AD or LDAP authentication based Users, and the connection to the authentication server dies, then a refresh update can remove those users (unless you generate Enterprise auth aliases for each User).
Sincerely,
Ted Ueda -
How to change report region fields in read only mode?
How to change report region fields in read only mode?
skud.add the following javascript fuction to page header(or Javascript function and variables section)
function disableItems(pRegionStaticId,pDisableFlag) {
$('#'+pRegionStaticId).find('[name^=f]').each( function(){ /* matches fxx */
if( $(this).attr('name').match(/f[0-9][0-9]/) ){
return $(this);
}).attr('disabled',pDisableFlag);
pRegionStaticId is the region's static Id+
Note that this code specifically disables only application arrays. Disabled items are not available after submission (and hence are different from readonly) . But any page javascript can modify disabled or readonly items(client side), so you must check at the server side to validate the data.
You can disable items using
disableItems('MY_REGION_ID' ,true);and enable them by passing false
disableItems('MY_REGION_ID' ,false); -
Hello Guys,
I have an editable ALV in which the user is able to change the entries by clicking a Change Button. For this purpose i have used the class <b>cl_gui_alv_grid</b>.
I need to change the Report Title from 'Display Report' & 'Change Report' when the user clicks the change button in the ALV.
Please suggest.
SuhasHello Sandeep,
Thanks for the hint. It really helped me !!! I missed this point entirely
Thanks again ..
Suhas -
Solman system not shown RCA Change reporting for ABAP_Transport store
Hi,
We have configured RCA in Solman system.
We try to get Change reporting comparison of ABAP_transport for Dev and
Qas system.
But it shows error as Different technical system in Reference and CustomValue.
SAP Solution Manager 7.01 SP20
Regards,
KarthikJansi,
After selecting my QAS and DEV system in System Analysis for Change Reporting.
Select ABAP_Software(6store) of both system and then i click Comapre
And the status displayed as u201Cu2260u201DChanges were detected of Dev system, then i select the Dev system showing
Name Reference Value Status Custom Value Details
ABAP-SOFTWARE
ABAP_NOTES
ABAP_PACKAGES
ABAP_SWITCH_FRAMEWORK
ABAP_TRANSPORTS Different Technical System Not allowed/Not Relevant Different Technical System
I am comapring ABAP_Transport of QAS and Dev system. but its showing not relevant status.
Regards,
Karthik
Maybe you are looking for
-
How to save input from a text file in to array
I got this assignment, and almost have no clue, and my teacher doesn't even teaches us anything This is what i am suppose to do 5. The program must store the following data about each student in this Talent Show: * The student's name (store as a Stri
-
Placing Image - InDesign vs InDesignServer
I have a script that correctly places images in tagged rectangles via script in InDesign, the script then exports to PDF. All is well. When I run the same script with the same image path folder structure in InDesignServer, the exported PDF does not s
-
System Designer Role in Jdeveloper (ADF)
Hi, I would like to know how Oracle recommends on doing a detailed design of an ADF application. Let's say you have the requirements and use cases of the application, and you are asked to do the detail design knowing that you are going to use JSF and
-
How do I retrieve deleted emails and messages?
How do I retrieve deleted emails and messages?
-
Dataguard configuration in production
Hi friends, I need to configure my production environment (primary database) for a standby database. i have a question for this i need to do some changes in parameter file(spfile/pfile) at any moment shall i need to bounce my primary database or i