Skip to main navigationSkip to main contentSkip to footer
  • Home
  • Blog
    • Miscellaneous
    • Powershell
    • Pester
  • Azure Devops Extensions
    • Logoff Windows Users
    • Manage Citrix Applications
    • Manage IIS Application Pools
    • Windows Share Management
    • Windows Task Scheduler
  • About
Peter the Automator
  • Home
  • Blog
    • Miscellaneous
    • Powershell
    • Pester
  • Azure Devops Extensions
    • Logoff Windows Users
    • Manage Citrix Applications
    • Manage IIS Application Pools
    • Windows Share Management
    • Windows Task Scheduler
  • About
Peter the Automator

Month: August 2021

ForEach versus ForEach-Object

Posted on: August 3, 2021 Last updated on: August 3, 2021 Written by: Peter
The ForEach-Object cmdlet performs an operation on each item in an array of input objects. There are two methods to implement the ForEach command; 1. $Range | ForEach-Object {}2. ForEach ($Number in $Range) {} Both methods perform the same actions with the same outcome, but they do their job in a different way. In this…
Continue reading “ForEach versus ForEach-Object”…

Recent Posts

Pester 5 Configuration settings

Since Pester v5 was released this legacy warning appears every time a Pester test is performed with the -CodeCoverage flag being used. WARNING: You are using Legacy parameter set that adapts Pester 5 syntax to Pester 4 syntax. This parameter set is deprecated, and does not work 100%. The -Strict and -PesterOption parameters are ignored,…
Continue reading “Pester 5 Configuration settings”…

ForEach versus ForEach-Object

The ForEach-Object cmdlet performs an operation on each item in an array of input objects. There are two methods to implement the ForEach command; 1. $Range | ForEach-Object {}2. ForEach ($Number in $Range) {} Both methods perform the same actions with the same outcome, but they do their job in a different way. In this…
Continue reading “ForEach versus ForEach-Object”…

Run Python (Django) websites in IIS

I got into a scenario where it was required to run a Python (Django) website in IIS and, as an additional requirement, the configuration needed to be fully automated. I made a little index with all the steps that I took to make the scenario happen. Install Python Install Microsoft IIS with required extra features…
Continue reading “Run Python (Django) websites in IIS”…

Disable and remove inactive accounts in Active Directory

Quite a few companies don’t have proper account management software to maintain their users in Active Directory . Accounts that remain active while the employees already left the company can be a security risk. This little script will disable and remove inactive accounts. The script performs the following actions:– Disable accounts that have not been…
Continue reading “Disable and remove inactive accounts in Active Directory”…

Removing large folders in Windows

Removing folders with a large quantity of files can take up quite some time. Windows explorer first calculates the the removal time by counting the files and sizes before the removal process eventually starts.There are faster ways to remove these large folder by batch and PowerShell. Both don’t do any form of calculation, but begin…
Continue reading “Removing large folders in Windows”…

Badges and flairs

profile for Pba at Stack Overflow, Q&A for professional and enthusiast programmers
Copyright © 2022 PETER THE AUTOMATOR — Powered by NanoSpace
  • LinkedIn icon(Opens in a new window)