I hereby claim:
- I am markekraus on github.
- I am markekraus (https://keybase.io/markekraus) on keybase.
- I have a public key ASAQRsY5KChGA8ePPV6gQ5ilSZ4KFmVciWsQL-ud4zZnGAo
To claim this, I am signing this object:
$MyObjGlobal = [PSCustomObject]@{ | |
PSTypeName = 'MyObj' | |
Prop1 = 'Value1' | |
} | |
$MyObjFunction = [PSCustomObject]@{ | |
PSTypeName = 'MyObj' | |
Prop1 = 'Value1' | |
} |
I hereby claim:
To claim this, I am signing this object:
#Requires -Modules AzureRM.Profile, AzureAD | |
$DeviceObjectId = '' # Set an objectID for a device | |
$SubScriptionID = '' # change with your subscription ID | |
Add-AzureRmAccount | |
$Subscription = Select-AzureRmSubscription -Subscription $SubScriptionID | |
$currentAzureContext = Get-AzureRmContext -Name $Subscription.Name | |
$TenantId = $currentAzureContext.Tenant.Id | |
$tokenCache = $currentAzureContext.TokenCache | |
$Cache = $tokenCache.ReadItems().Where({$_.ExpiresOn -gt (Get-Date) -and $_.TenantId -eq $TenantId })[0] |
Function Out-Default { | |
[CmdletBinding()] | |
Param( | |
[Parameter(ValueFromPipeline)] | |
[PSObject] | |
$InputObject, | |
[switch] | |
$Transcript | |
) |
[ | |
if( | |
equals( | |
parameters('settings')[copyIndex('settings')].type, | |
'static' | |
), | |
parameters('settings')[copyIndex('settings')].value, | |
if( | |
equals( | |
parameters('settings')[copyIndex('settings')].type, |
class MyEnumerator : System.Collections.IEnumerator { | |
hidden static [bool]$toggle = $true | |
hidden static [bool]$toggle2 = $true | |
MyEnumerator (){} | |
[bool] MoveNext() | |
{ | |
if([MyEnumerator]::toggle) { | |
[MyEnumerator]::toggle = $false |
using namespace System.Collections.Concurrent | |
$StartDate = [datetime]::UtcNow | |
# can be generated with something like | |
# 1..10 | %{ Get-Credential} | Export-CliXml -path 'C:\reports\InboxRules\Creds.xml' | |
# Which will prompt for credentials 10 times and store them in the xml file | |
$CredentialFile = 'C:\reports\InboxRules\Creds.xml' | |
$RunDate = $StartDate.ToString('o') -replace ':' | |
# This is the path of the CSV file. It is imperative that this file not be | |
# access while the script is running |
New-Item -ItemType File -Path 'c:\temp\[a].txt' -value 'Test' -Force | |
Invoke-RestMethod -InFile 'c:\temp\`[a`].txt' -Method Post -Uri https://httpbin.org/post -ContentType 'text/plain' | |
<# | |
Result: | |
args : | |
data : Test | |
files : |
This document sets forth an understanding of copyright related issues between you, Contributor
and the editors of the Book
, tentatively titled The PowerShell Conference Book Volume 3
.
The Book
is being developed and sold as a charitable, not-for-profit, venture.
Your participation is considered entirely voluntary.
Your contributions to the project, which includes your time, written material, and PowerShell code are to be considered charitable contributions.
The only Contributor
compensation will be one (1) free electronic copy of the Book
from the original publisher.
All royalties and income generated from sales of the Book
will be contributed to charitable cause.
That cause is currently designated to support scholarships as part of the OnRamp program sponsored by The DevOps Collective.
While we want this to be a fun, collaborative, and creative process, we still wish to produce a high-quality book we can all be proud of, and readers will be happy to purchase. Editing large numbers of chapters, each from different authors is a significant effort. We have the following expectations of our authors to ease the editing process and ensure a baseline of quality.
What does the project expect of the authors?