Setting "Advanced security settings" on an OU using Powershell

Hello,
I have been tasked to create an OU with the simular permissions as another. On the current OU, the admin1 acount has special permissions (set within the Advanced Security Settings). For the new OU, they want a new admin2 account to have the same permissions
on the OU as admin1 has on the current OU.
I was able to extract the OU permissions using the following Powershell script:
Get-QADObject 'OU=Temp,OU=,OU=Group,DC=Department,DC=Company,DC=com' -SecurityMask Dacl -sizelimit 0 |
Get-QADPermission -Inherited -SchemaDefault |
Select-Object account, rights, source, appliesto |
Sort-Object account |
Export-Csv c:\temp\report.csv -NoTypeInformation
However, Powershell script did not provide the "Advanced Security Settings". Therefore, I am looking for a couple Powershell commands that:
1. Copies the permission entries of the Advanced Security Settings Properties on an OU
or
2. Sets the permission entries of the Advanced Security Settings Properties on an OU
Any help would be greatly appreciated.
Mxer4life

Hi,
Please try with the following code to copy the atestuser1's ACL on TempOU1 and assign atestuser2 on TempOU2. Please be advised to test in your lab/test environment first. I tested only once. :)
$ou1 = [adsi]"LDAP://OU=TempOU1,dc=adatum,dc=lab"
$user1 = 'adatum\atestuser1'
$ou2 = [adsi]"LDAP://OU=TempOU2,dc=adatum,dc=lab"
$user2 = 'adatum\atestuser2'
$acl1 = $ou1.psbase.ObjectSecurity.Access | ? {$_.IdentityReference -eq $user1}
Write-host ($acl1 | out-string)
$acl2 = $acl1 | % { New-Object -TypeName System.DirectoryServices.ActiveDirectoryAccessRule -ArgumentList ([System.Security.Principal.NTAccount]$user2), $_.ActiveDirectoryRights, $_.AccessControlType, $_.ObjectType, $_.InheritanceType, $_.InheritedObjectType }
Write-host ($acl2 | out-string)
$acl2 | % { $ou2.psbase.ObjectSecurity.AddAccessRule($_) }
$ou2.psbase.CommitChanges()
Write-host "After update with $user2"
Write-host ($ou2.psbase.ObjectSecurity.Access | ? {$_.IdentityReference -eq $user2} | out-string)
rgds,
AZ

Similar Messages

  • Command to set modify Advanced Security Settings (Audit Settings for folders) on windows 2008

    Hello,
    We have requirement to modify  Advanced Security Settings (Audit Settings for folders) on windows 2008. I am looking for a command which does this job.
    I know, using group policies I can do this; in fact I had done this using group policies. However, I need to do this on number of servers which are not in domain. There are around 15 folders on which I need to enable Auditing; manual editing folder advanced
    permissions is a cumbersome job. Hence, I am looking for a command line options.
    I need to know how command can be utilised to enable Audit option on a folder. Please share a command which can do this; once I get the command, I will create a batch file for other necessary folders. (BTW, this is not a scripting question, I just need to
    know the command hence, please do not re-direct me to scripting forum)
    Manually through GUI, I am setting following.. snaps are given below
    Thanks !

    You can try using Auditpol.exe: http://technet.microsoft.com/en-us/library/cc731451%28v=ws.10%29.aspx
    This
    posting is provided "AS IS" with no warranties or guarantees , and confers no rights.   
    Microsoft
    Student Partner 2010 / 2011
    Microsoft
    Certified Professional
    Microsoft
    Certified Systems Administrator: Security
    Microsoft
    Certified Systems Engineer: Security
    Microsoft
    Certified Technology Specialist: Windows Server 2008 Active Directory, Configuration
    Microsoft
    Certified Technology Specialist: Windows Server 2008 Network Infrastructure, Configuration
    Microsoft
    Certified Technology Specialist: Windows Server 2008 Applications Infrastructure, Configuration
    Microsoft
    Certified Technology Specialist: Windows 7, Configuring
    Microsoft
    Certified Technology Specialist: Designing and Providing Volume Licensing Solutions to Large Organizations
    Microsoft Certified IT Professional: Enterprise Administrator
    Microsoft Certified IT Professional: Server Administrator
    Microsoft Certified Trainer
    Thanks but I guess, auditpol ca be used only to manipulate system audit policies. how do I specify a folder and user in auditpol ? I could not find or understand how folder can be included with auditpol command line options.
    Thanks !

  • How to set Current quota template dropdownto 50 GB using powershell script

    In central administrator under Application Management -> Configure quotas and locks  we have Current quota template drop down. I  want to set drop down value to 50 GB using powershell . Is it possible and it if it possible then How ? Please
    let me know 
    Thanks in Advance 
    Regards
    Subhash
     

    Hi Sub_84,
    A quota template consists of storage limit values that specify the maximum amount of data that can be stored in a site collection. When the storage limit is reached, a quota template can also trigger an e-mail alert to the site
    collection administrator. You can create a quota template that can be applied to any site collection in the farm. The storage limit applies to the sum of the content sizes for the top-level site and all subsites within the site collection.
    You can create quota template using powershell, ojbect module and sharepoint UI.
    Create new Quota template using powershell:
    $newQuotaTemplate = New-Object Microsoft.SharePoint.Administration.SPQuotaTemplate
    $newQuotaTemplate.Name = "New Quota Template"
    $newQuotaTemplate.StorageMaximumLevel = (150 * 1024) * 1024
    $newQuotaTemplate.StorageWarningLevel = (100 * 1024) * 1024
    $newQuotaTemplate.UserCodeMaximumLevel = 300
    $newQuotaTemplate.UserCodeWarningLevel = 300
    $contentService =[Microsoft.SharePoint.Administration.SPWebService]::ContentService
    $contentService.QuotaTemplates.Add($newQuotaTemplate)
    $contentService.Update()
    Check the link which can guide you how
    http://www.c-sharpcorner.com/uploadfile/anavijai/quota-templates-in-sharepoint-2010/
    Please mark the Answer and vote me if you think that above solution can help you to resolve the issue

  • Set advanced IMAP settings with profile manager?

    I've finally gotten profile manager working successfully so that my employees can enroll their iOS devices and laptops for easy setup of our company services. However, there are two advanced IMAP settings we need to manage that are not available in the Profile Manager controls.
    Is there a way to crack open a profile source and add in the keys for advanced IMAP settings? Specifically, i need to set "Remove Deleted Messages" to "Never" and assign an alternate mailbox for "Deleted Mailbox" under "Mailbox Behaviors"
    Thanks for any help or advice!

    While I was not at the time trying to do it via Profile Manager I did previously look at trying to enable Location Services via a script. Unfortunately I found it too hard or more accurately I failed to do this. I ended up 'cheating' by logging in on a test Mac, manually setting up Locations Services the way I wanted including most importantly setting the Security & Privacy settings to allow a specific application to use Location Services. I then saved a copy of the relevant configuration file which is -
    /private/var/db/locationd/clients.plist
    I then as part of my DeployStudio workflow to image fresh computers included a step to copy this to the correct location on the fresh computer, thereby 'restoring' the settings.
    So the short answer is that /private/var/db/locationd/clients.plist is the file but the structure is such that a simple defaults write is not possible.
    Let me know if you get anywhere with this.

  • How do I re-set my security settings to acommodate the problem below

    I am trying to enter a link in my article body copy for a URL and I get this message(below) when I try to copy and paste. I need to reset Firefox Security level to allow me to do same.
    "Your browser security settings don't permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C)."
    Please advise.
    Thanks,
    Frank McDonald

    See this Discussion

  • How do I access advanced security settings (like in the old firefox) not the pathetic "advanced" screen in firefox4 ?

    I want to get to the oldstyle control panel then if there are no further options available under preferences - security/advanced. I use to be able to set things like java applets to prompt the user before running rather than simply enabling or disabling java (for example). They are the only two options available in the current menu system.

    Set the pref <b>browser.tabs.insertRelatedAfterCurrent</b> to false on the about:config page.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • Setting default value of document library column using powershell

    Created document library based on template which is using custom content type containing managed metadata based column.
    I can upload documents. Everything looks normal except when I visit Column default value settings page in DL settings, I get error message below
    Application error when access /_layouts/15/ColumnDefaults.aspx, Error=Value does not fall within the expected range.   at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)    
    at Microsoft.Office.Server.WebControls.MetaDataNavTree.TreeViewDataBound(Object sender, EventArgs e)     at System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect()     at Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationContext.OnTreeViewLoad(SPTreeView
    spTreeView)     at Microsoft.Office.Server.WebControls.MetaDataNavTree.PerLocationPageLoad()     at Microsoft.Office.DocumentManagement.Pages.ColumnDefaultsPage.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()
        at System.Web.UI.Page.ProcessRe...  6bf73b9c-e4f3-10ae-0f74-9672cdd9936f
    I tried many things but nothing seems to work. When I create document library using SharePoint OOB template, everything works.
    Any help would be appreciated.
    Thanks.

    I found another way to fix this. Thanks to you pointing me to the file "{List Name}/Forms/client_LocationBasedDefaults.html"
    I found the difference between this file and the one of a list that worked:
    I had "&" in the names of some folders. The recreated subsites from a template that contained such folders in the document library had the problem descriped by the OP. In the recreated client_LocationBasedDefaults.html there were actual '&'
    in the folder names instead of '%26' escape characters. After replacing those characters with their escaped version everything worked as expected again.

  • Allowing Global Security Settings for Local Flash Content

    Hi all,
    We have developed one e-learning course for our client. This
    course will be deployed on the CD; that means it will run locally.
    This CD will be dstributed to thousands of users. In this scenario
    I am currently suffering from the Global Security Settings issue as
    this project uses Fscommand to communicate with the javascript. We
    can set the Global Security mannually but it is not feasible to ask
    client to mannaully set the Security Settings to "always" as there
    are thousands of users viewing this course locally.
    I have tried setting "always" value to allowScriptAccess
    property of the Object/embed tag in the html but it does not work
    where the browser Security Settings are kept as "High".(I think
    this is the reason)
    So what will be the workaround for this issue?
    Please reply me if you gone through this problem and found
    any workaround.
    Thanks in advance.

    Hi Popocatepelt,
    Glad to hear that worked for you….
    Local Access Only allows the published SWF file to interact
    with files on the local system, but not on the network. Access
    Network Only lets the published SWF file interact with files and
    resources on the network, but not on the local system.
    For more info take a look at the following
    http://www.adobe.com/products/flashplayer/security/
    For local content:
    http://www.adobe.com/products/flashplayer/articles/localcontent/

  • How can I disable the Security Settings popup in Acrobat XI?

    We are currently using Acrobat X and are getting ready to upgrade to version XI. We dynamically set the security settings w/a button in the toolbar menu to secure documents. Works great. However, while testing the same functionality in version XI a popup always appears when this function is called. The settings are correct in the security setting popup but we do not need the popup to actually appear. Is there a way to disable the popup from appearing? It's confusing my users.
    Thanks in advance for your help.

    Adobe generally has quarterly updates for Acrobat/Reader. If they decide to fix this, I'd be surprised if it made the first one (January 2013?), so it would probably be more like April/July, but that's just a guess. When you submit the bug report, be sure to include how much this negatively affects your workflows and prevents you from upgrading.

  • How to create a pdf document with specific security settings

    Hallo,
    in Adobe Acrobat you can set security settings which make documents unprintable, unchangeable etc.
    What I want to do is: I want to set these security settings by creating the pdf-document, because I do not want to open every document and change the security settings. Is this possible at all???
    Thank you for help
    Elisabeth

    How are you creating the documents? If using Adobe PDF printer, use the security options in Adobe PDF printer settings. If using PDFMakers (Acrobat buttons inside Office applications, open the Preferences menu item and set security there)

  • WS2012 - IE 11 Suggested Security Settings Prompt

    I published IE as a remote app on Windows Server 2012 for users to access via RDWeb.  
    When a new user tries to open IE 11 for the first time they are presented with a prompt to use IE's suggested security settings or not to use those settings.  For users remoted into a full desktop environment, they can choose an option and continue
    as normal. However, if a new user tries to open IE via the published app, instead of that box popping up IE just freezes on the remote end.  
    So far, the only workaround I have found is to log into each user's account on the server and click the box for the first run of IE, which causes IE to work perfectly fine for remote users.  However, I do not want to have to do this for every single
    user.  Is there a GPO setting to turn off this box?
    I have already tried to configure the following policy settings, to no avail:
    User(or Computer) Configuration/Policies/Administrative Templates/Windows Components/Internet Explorer:
    Turn off security settings check feature (enabled)
    Prevent Running First Run wizard (enabled)
    Any ideas?

    Hi,
    Based on your description, I am not sure that we can do this via group policy. However, would you please further confirm with us what the specific prompt up message is?
    Best regards,
    Frank Shen

  • Instructions for setting WRT54GS security to WPA2? Can't find them anywhere.

    Hi,
    I'm an amateur at this, so please excuse this load of ignorant questions.
    I have 2 PC clients, both Dell Dimensions 3.2GHz 1GB RAM, Wireless-G adapters. OS is Windows XP SP2
    The router is a Linksys WRT54GS. I'm using the wireless ports only, at least when I'm not modifying the security settings. Then I use a temporary cable to connect one of the PC's to the router.
    I also have a TiVo DVR series 3 with a wireless adapter.
    The router came with a copy of Linksys Advisor. When I ran this software I was able to set the security level to WPA-Personal. However I could find no option to set the level to WPA2.
    I know the TiVo supports WPA2 because I saw the option when I was configuring it for WPA-personal.
    My question(s):
    Why doesn't EasyLink Advisor have an option to set the security level to WPA2? Is it just deficient, or does it check to see if the client PCs support WPA2 and disable the option if they don't?
    How would I go about checking if my PCs support WPA2?
    Finally, if I have to set the security to WPA2 manually, what is the procedure for doing this?
    It's pretty easy to see how this can be done on the router's little web server pages; but as soon as I set the security to WPA2 there, I'm going to lose wireless connections to the PCs and I won't be able to access the router.
    I know I can get there via a cable connection, but then what do I do? How do I set up my clients for WPA2?
    What's a real pain about all this is that the EasyLink Advisor gives hints on how to optimize performance on secured wireless systems. It advises going to WPA2! But its Wizard doesn't give the option to do that. Its offline help file is minimal - it just says "use the wizard" and that's it.
    The online help describes how to manually configure WPA but not WPA2. And the instructions for WPA are incomplete. They explain how to set up the router, but then do not explain how to use the enccryption keys when reconnecting client PCs. They just say to select the SSID in the wireless icon's connect menu, then click on connect. Where does the key go?
    Thanks for your time in reading this,
    Big Al Mintaka

    First of all, Windows XP SP2 can do WPA2, however it requires a patch.   Go to Microsoft Knowledge base, article ID=917021 and it will direct you to the patch.
    Sadly, the patch is not part of the automatic Windows XP updates, so lots of people are missing the patch.
    Additionally, be sure to give your network a unique SSID. Do not use "linksys". If you are using "linksys" you may be trying to connect to your neighbor's router. Also set "SSID Broadcast" to "enabled". This will help your computer find and lock on to your router's signal.
    As to why EasyLink Advisor works the way it does - I just don't know.
    To setup WPA2, you will first need to patch Windows XP, then, using a computer that is wired to the router, go into the router and change the encryption to "WPA2 - personal"  with  "AES".  Reboot modem and router.  You are correct that you will now loose your wireless connections until you update the settings in your wireless devices.
    Next go into your computers and likewise change the encryption to "WPA2 - personal"  (= WPA2 = PSK2 ).   (Note:  You do not necesarily need to specify "AES" in your computers (or Tivo), but if you are given a choice between TKIP and AES, choose AES.)
    To find these settings for your computers, go to the wireless software in your computer, and go to "Preferred Networks"  (sometimes called "Profiles" ).  There are probably a few networks listed. Delete any network named "linksys". Also delete any network that you do not recognize, or that you no longer use.  Delete your current network  (this will clear any old settings).  Reboot computer.  Return to "Preferred Networks" and enter your network info (SSID, encryption, and key). Then select your current network and make it your default network, and set it to automatic login. You may need to go to "settings" to do this, or you may need to right click on your network and select "Properties" or "settings".  Reboot computer.
    You will need to check the Tivo manual for how to change the Tivo to WPA2.

  • Security settings for email form

    I created a form with LCD 8 with the intention of having different departments able to just complete the forms and click the "Submit by email" I was able to get the form to email as a PDF but I do not like that the user can change the form and I tried to set the security settings but when I did that the form would not email.
    I really do not want the user to have to enter a password if possible.

    Ok, if you are using LiveCycle Designer to make the form, I recommend
    the LiveCycle Designer forum (LiveCycle is part of the name of many
    different things). For other questions about Acrobat, including forms
    made in Acrobat, I recommend the Acrobat Windows forum.
    Good luck,
    Aandi Inston

  • Security settings: prevent "save as..." !?

    Hello there, I am using Acrobat 9 standard and would like to know how I can manage to set up security settings of a document in such a way that the "save as..." menue-entry will be disabled.
    I can manage to prevent printing and saving the same document again - no problem. But I need to make sure that the reader of a document does not save it under a different name.
    How can this be done?
    Thanks for any advice.
    Wolfgang Armbruster

    We _are_ using Acrobat Reader to display these files within an Intranet. If you open such a file as an embedded PDF in Firefox you will see a buttonbar at the top with icons to print and to save and so on.
    I do not have problems to make the print icon greyed out and unusable. But I need to do the same thing with the "save as" icon.
    And are you really saying this can not be done? Acrobat support told me before buying the software "this can be done"... though they will not tell me how... I need to clarify this in some forums...
    So I'm still hoping to get better advice...!?

  • Acrobat shuts down with an error every time I access Password security settings

    Hi
    I wonder if anyone can help me.
    I have just bought Acrobat 8.1.2 professional, which I am using on a Windows XP machine.
    When I enter the Password Security-Settings dialogue, about 2 seconds later, I get an error message saying that "Acrobat has encountered a problem and needs to close". When I click on "Send" or "Don't send", it then closes.
    So I can't password protect my documents.
    I experience this with a number of documents (including very, very simple ones), including pdfs I did not create.
    I have run "repair" and also completely uninstalled and then reinstalled Acrobat,without success.
    Has enyone else experienced this and found a solution?
    Many thanks
    Helena

    I have now found a workaround for this! If you set the security settings you want as a security policy, and then apply that policy to your document (rather than trying to set the settings for the indoividual document), it all works fine without crashing.
    It will mean that if you create lots of documents, all of which have slightly different security settings, you'll have a long list of policies, but I tend to use only about 2 security set ups, so it's fine for me. Hope it works for you too, L Haen.
    Helena

Maybe you are looking for

  • Sort Faces in Aperture 3

    Sorry, my english is not good. my Topic to german. Ich habe von iPhoto 9 auf Aperture 3 gewechselt. Die vorhandenen Bilder, Gesichter und Geodaten aus iPhoto wurden ohne Probleme übernommen. Jetzt habe ich ein Problem beim Sortieren der Namen in der

  • Migrate the bi publisher report

    How to migrate bi publisher reports for one instance to another instance. we getting the following error: XML Parsing Error: no element found Location: http://172.16.113.62:8002/xmlpserver/servlet/xdo Line Number 4, Column 1: Regards Gopal

  • Viewing photos in the Filmstrip

    This question was posted in response to the following article: http://help.adobe.com/en_US/lightroom/using/WS45EA239A-7EEE-46ef-889F-EF064422BCD3.html

  • How to get a selectOneMenu option

    hi, I have a drop -down list in my page.for this I have used selectOneMenu tag in my jsf page.but the options for this menu must be from the bean.the method returns an arraylist .this arraylist contains DTO objects.In this DTO,one property is my menu

  • Cannot update or access inspiration Browser after installing Photoshop 10

    I have followed the Inpiration browser update instruction on Photoshop elements welcome page. With error message when downloading Adobe Air. I uninstalled Adobe Air and Inspiration browser, then tried to download again and received the same error mes