I hereby claim:
- I am vexx32 on github.
- I am ta11ow (https://keybase.io/ta11ow) on keybase.
- I have a public key ASBjV0F0zB7el1gfWjEiPjwpe1RdXDwJ_GJQ1TZsJSfvigo
To claim this, I am signing this object:
$Exception = $_ | |
$ExceptionStack = @{ | |
OuterException = $_ | |
} | |
$Increment = 0 | |
while ($Exception.InnerException) { | |
$Increment++ | |
$Exception = $Exception.InnerException | |
$ExceptionStack["InnerException$Increment"] = $Exception | |
} |
using namespace System.Drawing | |
function Export-Png { | |
[CmdletBinding()] | |
[Alias('epng')] | |
param( | |
[Parameter( | |
Position = 0, | |
Mandatory, | |
ValueFromPipeline |
foreach ($SMTPAddress in $SMTPs) { | |
$SMTPAddress | | |
Get-MoveRequest | | |
Get-MoveRequestStatistics | | |
Select DisplayName, @{ | |
Name = 'SMTP' | |
Expression = $SMTPAddress | |
} | |
} |
[CmdletBinding()] | |
param( | |
[Parameter(Position = 0)] | |
[ValidateNotNull()] | |
[PSCredential] | |
$Credential = [System.Management.Automation.PSCredential]::Empty, | |
[Parameter(Position = 1)] | |
[ValidateNotNull()] | |
[uri] |
$Data = Invoke-MySQLQuery -ComputerName k1000 -Credential $creds -Query $sql -Database ORG1 | | |
Where-Object DISK_NAME -MATCH 'Drive C:' | | |
ForEach-Object { | |
[PSCustomObject]@{ | |
'Computer Name' = $_.System_Name | |
'Percent Used' = $_.Percent_Used | |
'Disk Free' = $_.Disk_Free | |
'Disk Name' = $_.Disk_Name | |
'Disk Size' = $_.Disk_Size | |
'Disk Used' = $_.Disk_Used |
function Select-Things { | |
[CmdletBinding()] | |
param( | |
[Parameter(Position = 0, Mandatory)] | |
[string[]] | |
$Param1 | |
) | |
if ($Param1 -contains "one") { | |
switch ($Param1) { | |
"two" { |
###COPY and find photos then move and copy to two locations then upload to exchange ## | |
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010; | |
$OU = "OU=domain,dc=com" | |
$MissingPhotos = Get-ADUser -SearchBase $OU -Filter * -Properties ThumbNailPhoto, SamAccountName, GivenName, Surname | | |
Where-Object ThumbnailPhoto -eq $null | | |
Select-Object SamAccountName, GivenName, Surname | | |
Sort-Object Surname, GivenName -Descending |
$TriggerParams = @{ | |
Daily = $true | |
At = '12am' | |
ErrorAction = 'Stop' | |
} | |
$SettingsParams = @{ | |
ExecutionTimeLimit = [TimeSpan]::FromHours(2) | |
ErrorAction = 'Stop' | |
} | |
$TaskParams = @{ |
if (suffix == 'u' || suffix == 'U') | |
{ | |
if (UInt32.TryParse(strNum, style, NumberFormatInfo.InvariantInfo, out uint u)) | |
{ | |
ulong testresult = u * (ulong) multiplier; | |
if (testresult > UInt32.MaxValue) | |
{ | |
result = testresult; | |
} | |
else |
I hereby claim:
To claim this, I am signing this object: