• Ballmer Peak

    1
    3 Votes
    1 Posts
    835 Views
    No one has replied
  • Free Course on Python (offer expires 1/2/16)

    2
    4 Votes
    2 Posts
    832 Views
    DashrenderD

    Thanks.

  • Accessing View Data from MongoDB for NodeBB

    2
    0 Votes
    2 Posts
    4k Views
    scottalanmillerS

    gte and lte values create the "bounds" of the query. Adjust accordingly to change the date range. Value is "epoch time."

  • PHP 7 RC7 Released

    1
    1 Votes
    1 Posts
    944 Views
    No one has replied
  • Googles Go Language Turns Six

    1
    1 Votes
    1 Posts
    1k Views
    No one has replied
  • BASH Word Length Histogram

    2
    0 Votes
    2 Posts
    2k Views
    scottalanmillerS

    And here is a sample output:

    ./counter.sh five six four three two one seven twenty onehundred eleven ten do a deer a female deer and that is how the cookie crumbles and i am pretty sure that you will find that this is a really useful bash script no matter how many things that you want to pass into its parameter fields 1 letters: 4 2 letters: 6 3 letters: 12 4 letters: 17 5 letters: 2 6 letters: 11 8 letters: 1 9 letters: 1 10 letters: 1
  • Is Apache the Best at Anything?

    3
    1 Votes
    3 Posts
    1k Views
    scottalanmillerS

    @WingCreative said:

    ... about the performance and efficiency gains one can expect from switching to nginx.

    Most performance gains from nGinx are from developments in the last few months or relate only to certain workloads. For average users Apache is easier to use, far more mature, often the more performant for very small workloads, far more broadly compatible and known. Given those factors, people who need nGinx (like us, we are using it right now) tend to be trained admins and know when and why to deploy it and those that just need basic reliability and simplicity will get Apache by default.

    Even today where Apache is not the big winner it used to be, it seems like it is still a sensible default.

  • Picking a First Language to Learn to Program

    14
    11 Votes
    14 Posts
    4k Views
    scottalanmillerS

    Every major coding interview I've done in the past decade has either requested or accepted Python for code.

  • 3 Votes
    14 Posts
    5k Views
    scottalanmillerS

    @coliver said:

    Wasn't there a project that ran Python on top of Python?

    Likely.

  • 2 Votes
    1 Posts
    872 Views
    No one has replied
  • ownCloud development reports

    2
    5 Votes
    2 Posts
    1k Views
    mlnewsM

    Makes sense, thanks!

  • Powershell - Network share permissions user level

    7
    2 Votes
    7 Posts
    3k Views
    P

    Team,

    I have made some head way, but what I need to know is how do I call the function "MyADGroups" in my script. not sure if the below script is correct, but what it needs to do is check who has access to the parent folder and all the children folders only, if its inherited I do not want to know, which the script does :). but if it is a Group it needs to expand the group and show me the users only.

    I have done a function but I am not sure if it is correct and it will output the data I need.

    $exclude = @( 'CREATOR OWNER' 'NT AUTHORITY\SYSTEM' 'BUILTIN\Administrators' 'HTBPLC\Domain Admins' ) Function Get-MYADGroups($GroupsAD){ Return Get-ADGroupMember -Identity $GroupsAD -Recursive | Where {objectClass -eq "User"} } # Get-ADGroupMember -Identity -Recursive | Get-ADUser -Property DisplayName | Select Name,ObjectClass,DisplayName? $credentials = Get-Credential Get-ADUser -Credential $credentials -Filter * -Properties DisplayName,EmailAddress,memberof,DistinguishedName,Enabled | % { $RootPath = "\\XYZ.net\users\GP\DEPT\IT\" $folders = [array](Get-Item -Path $RootPath) $folders += Get-ChildItem -Path $RootPath -Recurse -Directory $acls = foreach ($Folder in $Folders){ get-acl $Folder.fullname | Select-Object -ExpandProperty Access | Where-Object { -not $_.IsInherited -and $exclude -notcontains $_.IdentityReference } | Select-Object -Property *,@{ 'Name' = 'Folder' 'Expression' = { $Folder.FullName }} }} $acls | Export-Csv -NoTypeInformation -Path C:\NTFS\DEPARTMENTS1.csv

    @DustinB3403 @dafyre can you maybe help me out on this one, should be a quick fix, just need to know if I am on the right tracks.

    Thanks

  • Powershell - AD permissions all users

    37
    2 Votes
    37 Posts
    10k Views
    P

    thanks @dafyre looks good, but I have been doing a bit of reading online and I think I will change the output to make it output the data as rows with each user named with what member they are part of next to there name. two columns. in other words the output would be "Transpose" and then I would use a pivot table to do the rest.

    still working on it, but if anyone knows of an easy way please do share 🙂

    again thank @dafyre

  • Powershell - Export CSV of Group Memberships for your AD

    5
    1 Votes
    5 Posts
    2k Views
    P

    I would need to incorporate the top script into the bottom script. Get-ADGroupMember is part of the script which only expands the groups, which works fine, need that to be added into the 2nd script which only outputs groups and other users, rather then all users.

  • Powershell - List all group members

    1
    2 Votes
    1 Posts
    844 Views
    No one has replied
  • Powershell - Network Share Permissions CSV

    1
    4 Votes
    1 Posts
    1k Views
    No one has replied
  • Powershell - Disable a Leaving or Terminated Employee - AD

    1
    2 Votes
    1 Posts
    470 Views
    No one has replied
  • 4 Votes
    1 Posts
    758 Views
    No one has replied
  • Getting Started in COBOL Today

    1
    1 Votes
    1 Posts
    796 Views
    No one has replied
  • Linux Kernel in a Single Map

    1
    5 Votes
    1 Posts
    1k Views
    No one has replied