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
function Get-ImageTakenDate { | |
[CmdletBinding()] | |
param ( | |
# Path | |
[Parameter(Mandatory)] | |
[string] | |
$Path | |
) | |
try { |
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
function Happy-ValentinesDay () { | |
param ( | |
[Parameter(Mandatory)] | |
[datetime] | |
$TheBeginning | |
) | |
while ($true) { | |
$TimeInLove = (Get-Date) - $TheBeginning | |
$Days = "{0:d4}" -f $TimeInLove.Days |
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
<?xml version="1.0" encoding="utf-8"?> | |
<RDCMan schemaVersion="1"> | |
<version>2.2</version> | |
<file> | |
<properties> | |
<name></name> | |
<expanded>True</expanded> | |
<comment /> | |
<logonCredentials inherit="None"> | |
<userName></userName> |
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
function New-RDCManFile () { | |
param ( | |
# AD Group Names | |
[Parameter(Mandatory=$true)] | |
[string[]] | |
$ADGroupName, | |
# Output File | |
[Parameter(Mandatory=$false)] | |
[string] |
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
<# | |
* Heavily modified from: | |
* https://github.com/PowerShell/xPSDesiredStateConfiguration/blob/dev/Examples/PullServerDeploymentVerificationTest/PullServerSetupTests.ps1 | |
* | |
* Once you setup your pull server with registration, run the following set of tests on the pull server machine | |
* to verify if the pullserver is setup properly and ready to go. | |
#> | |
<# | |
* Prerequisites: |
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 | |
Deploy using Robocopy or Copy-Item for folder and file deployments, respectively. | |
.DESCRIPTION | |
Deploy using Robocopy or Copy-Item for folder and file deployments, respectively. | |
Runs in the current session (i.e. as the current user) | |
.PARAMETER Deployment |
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
function Invoke-Robocopy () { | |
[cmdletbinding()] | |
param ( | |
# Copy from location | |
[Parameter(Mandatory=$true)] | |
[string] | |
$Path, | |
# Copy to location | |
[Parameter(Mandatory=$true)] |
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
# Note: Edited from | |
# https://foxdeploy.com/resources/ise-snippets/xaml-to-gui/ original XAML loader script | |
# Change contents of here string to your XAML code from Visual Studio | |
$RawXAML = @" | |
Enter XAML contents here | |
"@ | |
[void][System.Reflection.Assembly]::LoadWithPartialName('PresentationFramework') | |
[xml]$XAML = $RawXAML -replace 'mc:Ignorable="d"','' -replace "x:N",'N' -replace '^<Win.*', '<Window' |
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
<# | |
Author: Joshua Barton | |
Version: 1.0 | |
Version History: | |
Purpose: Get last expected reboot time for a server that reboots on Nth Xday of the Month | |
#> | |
function Get-MonthlyReboot () { |
NewerOlder