Skip to content

Instantly share code, notes, and snippets.

View kiwi-cam's full-sized avatar

Cameron kiwi-cam

View GitHub Profile
@kiwi-cam
kiwi-cam / Start-DownloadsCleanup.ps1
Last active July 15, 2019 01:17
Single .ps1 to clean up files stored in Downloads. It removes items opens to view (e.g. JPG and PDF) and Clears Duplicates. Useful for Google Chrome users to clear files downloaded only to view - e.g. PDFs. Based on Winston McMiller Duplicate File Finder and Remover
<#
.SYNOPSIS
Finds and removes file duplicates from the Downloads folder
.DESCRIPTION
Single .ps1 to clean up files stored in Downloads. It removes items opens to view (e.g. JPG and PDF) and Clears Duplicates. Based on Winston McMiller Duplicate File Finder and Remover
.PARAMETER DownloadPath
Specifies the folder used to store Chrome's Downloads. Default: %USERPROFIKE%\Downloads
@kiwi-cam
kiwi-cam / Get-ADComputerAudit.ps1
Last active August 8, 2018 01:41
Gets a list of Computer Objects in the supplied domain, including if they're online (i.e. ping-able).
<#
.Synopsis
Gets a list of Computer Objects in the supplied domain, including if they're online (pingable).
.DESCRIPTION
This script uses the ActiveDirectory module to get a list of all computer objects (optionally filtered).
It will also add an Online boolean attribute showing if the Computer is pingable or not.
.PARAMETER Domain
A String specifying the domain you'd like to audit
.PARAMETER Filter
A standard Filter to reduce the Computer Objects returned. By default all Computers object will be returned/