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

    List the GPO GUID

    This simple command allows you to get the GPO GUID in your Active Directory domain. Since Windows 2012, you can use the cmdlet get-gpo to play with Group policies get-gpo -all | select id Reference Get-GPO Gets one GPO or

    shellandco_admin December 9, 2016 Active Directory, Powershell No Comments Read more

    Retrieve the Active Directory functional levels

    You can retrieve the Active Directory forest functional level with the powershell cmdlet Get-ADForest import-module activedirectory Get-ADForest | select forestmode For the domain functional level, you can use the powershell cmdlet Get-ADDomain Get-ADDomain | select domainmode Reference Get-ADForest Syntax Get-ADForest

    shellandco_admin December 8, 2016 Active Directory, Powershell No Comments Read more

    Play with folder ACL

    This script is useful if you want to scan a root folder and get the acl (owner and NTFS security rights) of the subfolders. Script : $rootfolder = Get-ChildItem -Path \\server\user_home_root_folder foreach ($userfolder in $rootfolder) { $userfolder.FullName get-acl $userfolder.FullName |

    shellandco_admin December 5, 2016 Files and folders, Powershell No Comments Read more

    List enabled and disabled Active Directory computer objects

    You can list the Active Directory computer accounts and check their status (enabled or disabled objects) in different ways. First method with the Get-ADComputer cmdlet Script (with Microsoft Active Directory module loaded : import-module activedirectory) : Only disabled computer accounts

    shellandco_admin December 2, 2016 Active Directory, News, Powershell No Comments Read more

    Get the version and patch level on remote MS SQL Servers

    With this script, you will be able to get a status on your Microsoft SQL Server version and patch level. This script uses a csv table I have created and that contains the version and patch level for each SQL

    shellandco_admin November 30, 2016 Database, News, Powershell, Tips No Comments Read more

    Microsoft DNS zones backup

    This script uses the DNS powershell cmdlets available since Windows 2012. It exports the DNS zones hosted on a Microsoft DNS servers. First, a csv file is created (csv file called _-_domain_info.csv) with the following zone details: NotifyServers SecondaryServers AllowedDcForNsRecordsAutoCreation

    shellandco_admin November 28, 2016 Active Directory, News, Powershell No Comments Read more

    List the Active Directory empty groups

    These commands get all the empty groups (no members) in an Active Directory domain. The output lists distinguished name (DN) of these groups. Script (with Microsoft Active Directory module loaded : import-module activedirectory) : Get-ADGroup -Filter * | Where-Object {@(Get-ADGroupMember

    shellandco_admin November 25, 2016 Active Directory, Powershell No Comments Read more

    List the Active Directory deleted objects

    With the cmdlet Get-ADObject you will be able to list the deleted objects in your Active Directory domain Pre-requesite : import-module activedirectory Script : Get-ADObject -Filter ‘isdeleted -eq $TRUE -and name -ne “Deleted Objects”‘ -IncludeDeletedObjects -Properties * | ` Format-List

    shellandco_admin November 24, 2016 Active Directory, Powershell No Comments Read more

    Dump the user object DACL permissions

    You will find below two methods to dump the user object DACL permissions in an Active Directory domain. Script (with Microsoft Active Directory module loaded : import-module activedirectory) : import-module activedirectory $pw = read-host “Enter password” -AsSecureString $cred = New-Object

    shellandco_admin November 23, 2016 Active Directory, Powershell No Comments Read more

    Get all DCs in a forest and resolve hostname to IP address

    With this script, you will be able to get all DCs in a forest and resolve the hostnames to IP addresses. Update 11.22.2016 The DNS Shell cmdlet is not necessary in a Windows 2012R2 environment. We can use the cmdlet

    shellandco_admin November 22, 2016 Active Directory, News, 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.