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

    Automatically re-configure secondary Bind server to primary

    Automatically re-configure secondary Bind server to primary With this script, you will able to re-configure a DNS server running on Bind9 from a secondary to a primary role : For “secondary”, I talk about the server that hosts the slave

    shellandco_admin September 23, 2014 Network, Python No Comments Read more

    Get server hostnames on which MSSQLServer service is installed

    Get server hostnames on which MSSQLServer service is installed With this simple script, you will be able to get the server names on which the MS SQL Server service is installed. First, an array is built with the computer names

    shellandco_admin September 10, 2014 Database, Powershell, Service and process No Comments Read more

    Monitor a resource failover on a cluster

    This script will help you to monitor a resource failover on a cluster. This script has been successfully tested on a Microsoft cluster running on a Windows Server 2012 operating system. The following steps are performed : use the following

    shellandco_admin September 3, 2014 Cluster, Powershell No Comments Read more

    Create DNS PTR record if A record exists

    Create DNS PTR record if A record exists. This script will help you to have a DNS PTR record for each existing A record in your DNS zone. If a A record has been created in the DNS zone ($dnsDomainName

    shellandco_admin August 20, 2014 Network, Powershell 10 Comments Read more

    Set the PwdLastSet attribute to the current date and time

    This script will help you to set the PwdLastSet attribute to the current date and time for multiple users. The user list in this script is built from an organizational unit content. You can adapt it with your own requirement.

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

    Add a SNMP permitted manager on remote hosts

    This script will help you to Add a SNMP permitted manager on remote hosts. In this example the hostname of the SNMP permitted manager is : snmpmgr01. The remote hosts name are listed in a text file (one hostname per

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

    Delete folders on remote hosts

    This script will help you to delete folders on remote hosts. The folder names in the example are like $NtUninstallKB* and are located on the remote system admin$ shares. The remote computers are listed on the file C:\temp\BOOK1.txt Script :

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

    Change the user UPN

    This script will help you to change the user UPN (userPrincipalName attribute in the Active Directory) for all the user objects located in the OU OU=Users,OU=Dept,DC=domain,DC=local,DC=net Old UPN : domain.local.net New UPN : newdomain.com To setup a new UPN, follow

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

    Show text/config file without comment lines

    Show text/config file without comment lines (#): alias nocomment=’grep -Ev ‘\”^(#|$)’\”’ nocomment /etc/squid.conf Source Reference Man Grep NAME grep, egrep, fgrep – print lines matching a pattern SYNOPSIS grep [options] PATTERN [FILE…] grep [options] [-e PATTERN | -f FILE] [FILE…]

    shellandco_admin August 12, 2014 Shell No Comments Read more

    Disable and move inactive computer accounts

    This script will help you to disable and move inactive computer accounts to a target OU in the Active Directory. The steps are the following : list all computer accounts inactive for more than 90 days ping each inactive computers

    shellandco_admin August 12, 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.