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
<# | |
This script will only copy folder structure found in the $Source | |
path to the $Target path. | |
#> | |
# Adjust paths to suite needs | |
$Source = [path] | |
$Target = [path] | |
# This will only copy folders |
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 Start-PresentationMode { | |
# change certain colors to be friendlier to those with color blindness | |
Write-Host -ForegroundColor Yellow "Changing ERROR foreground color from RED >>> BLUE" | |
$Host.PrivateData.ErrorForegroundColor = "Blue" | |
Write-Host -ForegroundColor Yellow "Ghanging ERROR backround color >>> WHITE" | |
$Host.PrivateData.ErrorBackgroundColor = "white" | |
# Could add more here based on what colors are preferred but this is a start. |
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-DaysLeftPwshSummit { | |
<# | |
Created By: Bill Kindle | |
Twitter: @BillKindle | |
Description: | |
This is just a simple function you can add to your PowerShell profile | |
as a reminder to register for PowerShell+DevOps Summit. |
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-NetAccountInfo { | |
#obtain the data and do some minor cleanup | |
$data = net.exe accounts | |
$data = $data -replace '^[T].*','' | |
foreach ($line in $data) | |
{ | |
#split on double colon character | |
$line = $line -split '\:\s+' |
NewerOlder