Answer No to Confirmation Prompt (to avoid a destructive operation)

New-AzureRmResourceGroup -ResourceGroupName “Name” -Location “uksouth” Provided resource group already exists. Are you sure you want to update it? [Y] Yes [N] No [S] Suspend [?] Help (default is “Y”): N How do I answer No in the script? -Confirm:$false doesn’t work -Force would overwrite the existing resource group which is the opposite of what I […]

Download Flash MSI updates from Distribution page

I am trying to make a PowerShell script that will download flash MSI updates from this page. https://www.adobe.com/products/flashplayer/distribution5.html The page requires a login, I have tried passing cred into the invoke-webrequest cmdlet but am not having luck. $cred = Get-Credential $html = Invoke-WebRequest -Uri “https://www.adobe.com/products/flashplayer/distribution5.html” -Credential $cred The HTML object is not from that page. […]

AzCopy really slow?

Trying to upload an empty .txt file to blob storage and it just runs indefinitely? Any ideas? EDIT: Looks like the journal file was screwed up because I must’ve killed the process at some point. I deleted the journal files and it ran quickly the next time. submitted by /u/FstLaneUkraine [link] [comments]