Skip to content

Instantly share code, notes, and snippets.

@GeoHolz
GeoHolz / PRINTREPORT.ps1
Created November 3, 2023 09:56
Script to report on all prints made by a print server over a period of time and send it by email. ( Task scheduler )
$From = "XXX@XXX.com"
$To = "XXX@XXX.fr"
$aPrinterList = @()
$dateActuel= Get-Date -Format "dd/MM/yyyy"
$Subject = $dateActuel+ " : Impression sur XXX"
$StartTime = $dateActuel+" 03:00:00"
@GeoHolz
GeoHolz / ListUserRightsFolder.ps1
Created November 3, 2023 09:54
ListUserRightsFolder.ps1 vous permet d'auditer vos répertoires afin d'obtenir la liste compléte des utilisateurs et leurs droits sur les répertoires. Utilisation : .\Get-FolderACL.ps1 -Path CheminLocal_OuReseau | ConvertTo-HTML | Out-File c:\resultat.html
<#
.Synopsis
This script is used to give the list of users with write access to the given path.
.DESCRIPTION
This script is used to give the list of users with write access to the given path.
-Recurse : The Recurse option allows you to browse also the subdirectories
The variable $ListExclusion allows to give groups to be excluded from the result (Example: Admins Domain)
Geo Holz https://blog.jolos.fr
.EXAMPLE
Access.ps1 - Path "PATH_TO_DIRECTORY" -Recurse
@GeoHolz
GeoHolz / docker-compose-backup.sh
Last active November 3, 2023 09:49 — forked from pirate/docker-compose-backup.sh
Backup a docker-compose project, named and unnamed volumesith exeption list ( Plex ? ) and Gotify push
#!/usr/bin/env bash
### Bash Environment Setup
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
# set -o xtrace
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail
@GeoHolz
GeoHolz / ping.ps1
Created February 6, 2018 13:39
Powershell ping with time
ping -t 8.8.8.8|Foreach{"{0} - {1}" -f (Get-Date),$_}