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
#region Helper functions | |
function Set-Ownership { | |
[CmdletBinding(SupportsShouldProcess = $false)] | |
param( | |
[Parameter(Mandatory = $true)] | |
[ValidateNotNullOrEmpty()] | |
[string]$Path, | |
[Parameter(Mandatory = $true)] | |
[ValidateNotNullOrEmpty()] [ValidatePattern('(\w+)\\(\w+)')] |
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
#region ### BUILD THE CONFIGURATION ### | |
# Declare the configuration: | |
Configuration TestDscWithoutWinRm { | |
Import-DscResource –ModuleName PSDesiredStateConfiguration | |
node localhost { | |
File akada { | |
Ensure = 'Present' | |
Type = 'File' | |
Contents = 'Martin was here!' |
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
@ECHO off | |
@setlocal EnableDelayedExpansion | |
@goto label1 | |
@echo this lines should not be printed | |
@echo and this whole block (lines 4-8) can actually be removed | |
@echo I added these just for Charlie22911 | |
@:label1 | |
@set LF=^ |
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
PARAM( | |
$RemoteComputer = $env:COMPUTERNAME, | |
$Sender, | |
$Message = (Get-Date), | |
$ImageFile | |
) | |
function New-ToastNotification { | |
param($Sender, $Message, $ImageBase64) |
OlderNewer