This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ping -t 8.8.8.8|Foreach{"{0} - {1}" -f (Get-Date),$_} |