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

    Change a value in a remote registry

    With this script, you will be able to change a value in a remote registry (remote computer names listed in a host file). The registry value type can be the following (http://msdn.microsoft.com/en-us/library/microsoft.win32.registryvaluekind.aspx) : String ExpandString Binary DWord MultiString QWord $file

    shellandco_admin November 11, 2016 Operating System, Powershell No Comments Read more

    Resolve the CBS.log file size problem

    System File Checker is a utility in Windows that allows users to scan for corruptions in Windows system files and restore corrupted files. The exe file, sfc.exe, generates a log file called %windir%\Logs\CBS\CBS.log. The Sfc.exe program writes the details of

    shellandco_admin September 12, 2016 News, Operating System, Powershell, Tips No Comments Read more

    Get the regional settings with Powershell

    Sometimes, it can be useful to get some informations through command line instead of using the GUI. It is the case for the regional settings. If you want to compare the regional settings between two user accounts, you can both

    shellandco_admin July 18, 2016 News, Operating System, Powershell, Tips No Comments Read more

    Local Security Authority cannot be contacted

    Symptom While connecting on a Windows Server 2012 using RDP you might notice the following error: Remote Desktop Connection: An authentication error has occurred. The Local Security Authority cannot be contacted Cause This is probably due to the cached account

    shellandco_admin July 13, 2016 Bug and tips, Operating System, Security 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

    Generates a full-memory minidump of a process

    The original source of this function is available on Github here You can use this function to generate a process dump file using Powershell. function Out-Minidump { [CmdletBinding()] Param ( [Parameter(Position = 0, Mandatory = $True, ValueFromPipeline = $True)] [System.Diagnostics.Process]

    shellandco_admin December 9, 2014 Operating System, Powershell, Service and process No Comments Read more

    Get the server uptime in days with WMI

    This script gets the Active Directory server uptime in days using WMI. The WMI class used is Win32_OperatingSystem I have used the New-Timespan to calculate the uptime (difference between the current date and the last Windows boot up time). [TimeSpan]$uptime=New-TimeSpan $LBTime

    shellandco_admin May 28, 2014 Active Directory, Operating System, Powershell No Comments Read more

    Get GDI handles by process

    This script requires Powershell 3.0 This script get the number of GDI handles by process Script : $global:sig = @’ [DllImport(“User32.dll”)] public static extern int GetGuiResources(IntPtr hProcess, int uiFlags); ‘@ Get-Process | select ProcessName -Unique | ? {$_.processname -notmatch “Idle|System|svchost”}

    shellandco_admin May 27, 2014 Hardware, Operating System, Powershell 2 Comments Read more

    Query remote servers for installed hotfix

    This script query all servers in a specific OU and running on Windows Server 2003 and check if a specific hotfix is installed or not. Script (with Microsoft Active Directory module loaded : import-module activedirectory) : $server_list = Get-ADComputer -searchbase

    shellandco_admin May 27, 2014 Operating System, 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.