Skip to content
shell{&}co

shell{&}co

Menu

  • News
    • Bug and tips
  • Automation
    • Ansible
  • Scripts & Code
    • Perl
      • Network
    • PHP
    • Powershell
      • Active Directory
      • Citrix
      • Cluster
      • Database
      • Exchange
      • Files and folders
      • Hardware
      • Network
      • Operating System
      • PKI
      • SCCM
      • Service and process
      • Tips
      • VMWare
    • Python
      • Monitoring
      • Network
      • PKI
      • Ruby
      • Security
    • Shell
      • Backup
      • Filesystem
      • Image processing
      • Monitoring
      • Network
      • PKI
      • Process
      • Time
      • Virtualization
      • Web
  • Fun
  • Project
    • Github
    • Log Analyzer

    Find an email address in the forest

    With this script you will be able to find an email address in the forest and identify the Active Directory object linked on. (Get-ADobject -Filter {(mail -eq “johndoe@mail.com”)} -Properties sn,givenname,mail,displayname -SearchBase “dc=domain,dc=root” -Server “dc01.domain.root:3268” | ` Select-Object displayname,sn,givenname,mail) References Get-ADObject

    shellandco_admin August 8, 2014 Active Directory, Powershell No Comments Read more

    Display port count per IP address

    Display port count per IP address This script checks for port exhaustion on a specific server (Source). Port exhaustion can cause all kinds of problems for your servers. Here’s a list of some symptoms: Users won’t be able to connect

    shellandco_admin August 8, 2014 Network, Powershell No Comments Read more

    Cleanup data when the user account no longer exists

    This script can be very useful to cleanup data when the user account no longer exists in the Active Directory. Actually, this script moves only the folders linked to a deleted active directory user account (profiles, homes,…) to a temporary

    shellandco_admin August 7, 2014 Active Directory, Powershell 1 Comment Read more

    Copy the group members to another group

    This script copy the group members to another group. You have the choice between Microsoft Active Directory cmdlet or the Quest Active Directory cmdlet. Script (with Microsoft Active Directory module loaded : import-module activedirectory) : $Source_Group = “CN=SourceGroupName,OU=Groups,DC=domain,DC=com” $Destination_Group =

    shellandco_admin August 5, 2014 Active Directory, Powershell No Comments Read more

    List the files in the Recycle bin, which are older than 100 days

    This script will list the files in the Recycle bin, which are older than 100 days. The recycle bin items are listed in the system where the script is running on. ForEach ($DriveLetter in Get-PSDrive -PSProvider FileSystem) { $DelPath =

    shellandco_admin August 4, 2014 Files and folders, Powershell No Comments Read more

    Delete remote Recycle Bin items

    Updated version of the script here This script allows you to delete remote Recycle Bin items (in a shared folder). It can be very useful and interesting if you run it on a file server where the user home drives

    shellandco_admin August 4, 2014 Files and folders, Powershell No Comments Read more

    Audit the Active Directory FREE

    If you want to audit the Active Directory, this is the project you need : low cost Efficient search Bootstrap web design Export events easily in a csv format Visit now the project page here The resources used for this

    shellandco_admin July 11, 2014 Active Directory, Powershell, Project 2 Comments Read more

    Create a GUID hashtable for the schema classes, attributes and extended rights

    With this script, you will be able to create a GUID hashtable for the schema classes, attributes and extended rights. It can be very useful in case of troubleshooting. You probably already see this kind of event in the security

    shellandco_admin June 27, 2014 Active Directory, Powershell No Comments Read more

    Monitor the user object status in the Active Directory

    With this script, you will be able to monitor the user object status in the Active Directory. The script performs these steps set the domain controller list : one dc per domain you want to retrieve the informations create an

    shellandco_admin June 23, 2014 Active Directory, Powershell No Comments Read more

    Count the object types in the Active Directory forest

    You can use this script if you want to count the object types in the Active Directory forest. The script performs these steps: list the domain name in the current Active Directory forest get the Active Directory forest level mode

    shellandco_admin June 23, 2014 Active Directory, Powershell No Comments Read more
    • « Previous
    • Next »

    Recent Posts

    • Get Azure Security event workspace configuration
    • Copy certificate to the Windows Services store
    • Copy files from Windows CIFS share
    • Create a certificate from a request file with Powershell
    • Ansible – Manage multi-threading in playbooks

    Recent Comments

    • shellandco_admin on Get GDI handles by process
    • tadalafil 20 mg on Get GDI handles by process
    • รับออกแบบโลโก้ on Playing with ACL on the Active Directory objects
    • ปืนสั้นแก๊ส on Audit the Active Directory FREE
    • XxGaaabrielxX on Fake update screens
    Copyright © 2025 shell{&}co. All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.