This file contains hidden or 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
$Data = 1..10 | ForEach-Object { | |
New-Object psobject -Property ([ordered]@{ | |
Col1 = (Get-Random -Maximum 1000) + 1 | |
Col2 = (Get-Random -Maximum 1000) + 1 | |
Col3 = (Get-Random -Maximum 1000) + 1 | |
Col4 = (Get-Random -Maximum 1000) + 1 | |
Col5 = (Get-Random -Maximum 1000) + 1 | |
}) | |
} |
This file contains hidden or 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 ( | |
[Parameter(Mandatory=$True,Position=1)] $UserName, | |
$SharePath = "\\vsnhq1coap01mes\HomeMDB", | |
$CsvsToSearch = 1 | |
) | |
# From CSV which lists Exchange server for each store, | |
# Create a lookup hash table | |
$StoreServer = @{} | |
Import-Csv -Path "store-server.csv" | |
This file contains hidden or 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-Fibonacci { | |
# Function yoinked from http://blogs.technet.com/b/heyscriptingguy/archive/2010/03/07/hey-scripting-guy-march-7-2010.aspx | |
Param([int]$max) | |
For($i = $j = 1; $i -lt $max) { | |
$i | |
$i,$j = ($i + $j),$i | |
} | |
} | |
Function Get-Stats { |
NewerOlder