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

    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

    Online custom password generator

    This is an online example on how to create a password generator. This password generator is written using Javascript. You can combine four parameters to create the password : upper case letter lower case letter number special character The minimum

    shellandco_admin August 20, 2014 News, Security No 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

    Export users to a CSV file

    Export users to a CSV file Script : Script (with Microsoft Active Directory module loaded : import-module activedirectory) : Get-ADUser -filter * -ResultSetSize $null -Properties SamAccountName,displayname,description ` | select-Object SamAccountName,displayname,description ` | Export-Csv “c:\folder\export.csv” Script (with Quest Active Directory module)

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

    Retrieve the domain controller hostnames in a forest

    With this script, you will be able to retrieve the domain controller hostnames in a forest. $myForest = [System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest() $myforest.Sites | % { $_.Servers } | Select Name, Domain References MSDN Forest Class Properties Name Description ApplicationPartitions Gets a collection

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