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 | |
To add the File Shares Operators in the ACL with the template permissions on a single directory | |
.DESCRIPTION | |
Ce script ajoute l'entrée pour le groupe 'File Shares Operators'(ou le groupe spécifié) dans les ACL du répertoire choisi | |
afin que celui-ci puis gérer les permissions sans lire le contenu. | |
This Script adds ACEs that allows a FileSharesOperators Group to manages the ACL on the directory without allowing | |
the group to read the content of files. |
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
# Execute this PowerShell from inside your directory. | |
# Adjust the pattern based on your needs. Don't include the extension | |
# Filename for this pattern : Replay_2023-12-01_21-04-14.mp4 | |
$pattern = "Replay_(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})_(?<hour>\d{2})-(?<minute>\d{2})-(?<second>\d{2})" | |
Get-ChildItem -Filter "*.mp4" | % { | |
if ($_.Basename -match $pattern) { | |
$Matches.Remove(0) | |
$filedate = Get-Date @Matches |
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
#Requires -Version 7 | |
[CmdletBinding(DefaultParameterSetName = "Check")] | |
param ( | |
# Check Switch | |
[Parameter(ParameterSetName="Check", Mandatory)] | |
[Parameter(ParameterSetName="CheckAndUpdate")] | |
[switch] | |
$Check, |
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
[CmdletBinding(DefaultParameterSetName="Interactive")] | |
param ( | |
# Parameter help description | |
[Parameter(ParameterSetName="Interactive")] | |
[switch] | |
$Interactive, | |
[Parameter(ParameterSetName="InputString")] | |
[string] | |
$InputString, | |
# Set |
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
$newNetFirewallRuleSplat = @{ | |
Name = "ICMP-Ping" | |
DisplayName = "Allow ICMP Ping" | |
Profile = 'Any' | |
Direction = 'Inbound' | |
Action = 'Allow' | |
Enabled = 'True' | |
RemoteAddress = "0.0.0.0/0" | |
Protocol = 'ICMPv4' | |
EdgeTraversalPolicy = 'Allow' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer