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 generates a report containing the nessesary information about Size, LastChangeDate, LastReadDate on any given share | |
# The script needs to run locally on the server to optimize speed | |
param ([System.IO.DirectoryInfo]$Path, [switch]$SkipUnicode) | |
if (!$Path.Exists){ | |
Write-Warning "$($path.FullName) not found!" | |
break | |
} | |
#Add Unicode switch |
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
$c=1 | |
1..20|%{Write-Host $c | |
$i=0 | |
$a=@($c[0]) | |
while($i -lt $_){$a+=($c[$i]+$c[++$i])} | |
$c=$a} |
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
Import-Module posh-git | |
$GitPromptSettings.DefaultPromptBeforeSuffix.Text = '`nPS' | |
function Get-Access {Get-AzContext -ListAvailable | Sort-Object account | Out-ConsoleGridView | Set-AzContext} | |
function Get-Subscription {Get-AzSubscription | Sort-Object Name | Out-ConsoleGridView | Select-AzSubscription} | |
Import-Module PSReadLine | |
Set-PSReadLineOption -PredictionSource History | |
function _ { |
OlderNewer