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

    Copy files from Windows CIFS share

    In this post, I will show a playbook with different tasks to copy files from Windows CIFS shared folder to a Linux folder. First, the status and the prerequisites: I have 3 machines: The Ansible controller ansible_srv01 where the playbook

    shellandco_admin September 20, 2019 Ansible, Automation, Files and folders No Comments Read more

    Ansible – Create a new directory on a CIFS shared folder

    In this post, I will show you how to create a directory on a CIFS shared folder hosted on the Windows machine This task can be achieved by configuring the WinRM listener on the Windows machine. In the playbook, we

    shellandco_admin June 24, 2019 Ansible, Automation, Files and folders 4 Comments Read more

    Get the free space on remote computer disks

    With this simple script, you will be able to get the free space available on the C: drive on a list of remote computers. I’m using WMI to request the remote computers. You can use two different ways for the

    shellandco_admin June 12, 2017 Files and folders, Operating System, Powershell, Tips 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

    Manage the file retention on a folder

    With this script, you will be able to manage the file retention on a specific folder. The file removal is based on age (LastWriteTime file property / source ) #Powershell Script to delete files older than a certain age $intFileAge

    shellandco_admin November 14, 2016 Files and folders, News, Powershell No Comments Read more

    Delete the Recycle bin items older than 60 days

    This script will allow you to delete the Recycle bin items older than 60 days. The recycle bin items are listed in the system where the script is running on. ForEach ($DriveLetter in Get-PSDrive -PSProvider FileSystem) { $DelPath = $DriveLetter.Name

    shellandco_admin November 10, 2016 Files and folders, Powershell No Comments Read more

    Remove local user profile

    I have found a great script to remove local profile to a remote or a local machine. I have added two features to this script : list only the “non loaded” profile possibility to remove all profiles The first point

    shellandco_admin January 14, 2016 Files and folders, News, Operating System, Powershell, Tips 1 Comment Read more

    Windows : Can’t delete a folder with a trailing space

    Recently, I have received this error message while deleting a folder tree : The cause is a trailing space in the folder name. The only to delete this folder is to run this command : rd “\\?\G:\folder_with_a_trailing_space “ I have

    shellandco_admin December 15, 2015 Files and folders, Operating System No Comments Read more

    Archive more than one million files located in one folder

    Archive more than one million files located in one folder Windows operating systems are not good candidates to host and manage million files located in only folder (no subfolders). If you try to list the content of the folder (using

    shellandco_admin August 17, 2015 Files and folders, Powershell No Comments Read more

    Migrate shared folder configuration to Windows Server 2012

    You need to migrate a file server shared folder from a Windows Server 2008 to a Windows Server 2012. Windows Server 2012 now contains Powershell cmdlets to interact with SMB Shared folders, but Windows 2008 not. The purpose of the

    shellandco_admin January 30, 2015 Files and folders, Network, Powershell No Comments Read more
    • « Previous

    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.