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
<# | |
.synopsis | |
Remove Soft-deleted API Management service | |
.description | |
Re-deploying the API management service fails with a message | |
See https://aka.ms/apimsoftdelete | |
That says call the REST API. This does that. | |
#> | |
[cmdletbinding(SupportsShouldProcess=$true,confirmImpact='High' )] | |
param ( |
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
# rev 0.2 added more comments, and made the regax a bit more precise. | |
function SplitEmUp { | |
param ( | |
$paramString | |
) | |
#This regex will isolate quoted blocks e.g. " -example )( $quote " | |
# and will identify matching open and close () {} and [] even if nested. | |
$opensAndCloses = @' | |
(?x) # Allow comments and ignore spaces and line breaks in the layaout. | |
^(?> # Start and make the repeating group ‘atomic’. |
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
#I created this to show how much there is on the MS Graph API. | |
#I pulled down the openapi (nee swagger) files for Users, users.actions, Users,functions and groups | |
#And using my https://github.com/jhoneill/PSGraph - my version of Kevin Marquette's graphViz Module | |
#this litte bit of script produced a graphical version | |
$paths = @() | |
$ParentHash = @{} | |
function hasParent { | |
# .synopsis if the parent isn't in the call recursively with the parent. Add item and its parent to the hash | |
param($path) |
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 Show-Help { | |
<# | |
.Synopsis | |
Open help in "Show window" mode | |
#> | |
param ( | |
[parameter(ValueFromPipeline=$true)] | |
[ArgumentCompleter({ | |
param($commandName, $parameterName,$wordToComplete,$commandAst,$fakeBoundParameter) | |
[System.Management.Automation.CompletionCompleters]::CompleteCommand($wordToComplete) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
########################################################## | |
# # | |
# Tools for getting information from the Lightroom DB # | |
# To use this script you need to download the SQL Lite # | |
# ODBC driver from http://www.ch-werner.de/sqliteodbc/ # | |
# # | |
# and set your default catlog path # | |
# # | |
########################################################## |
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
<# | |
.Synopsis | |
Copies images downloaded by Windows Spotlight | |
#> | |
[cmdletbinding()] | |
param ( | |
#Where to send JPEGS which are Landscape format e.g ~\AppData\Roaming\Microsoft\Teams\Backgrounds\Uploads | |
$LandScapeDestination = "C:\users\Public\Pictures\Sample Pictures", | |
#Where to send JPEGS which are portrait format | |
$PortraitDestination = "C:\Users\Public\Pictures\Portrait Samples" |