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 | |
Returns a passphrase | |
.DESCRIPTION | |
Returns a passphrase based on a dice password list. | |
.EXAMPLE | |
New-DicePassPhrase | |
miles welt eta pall 41st |
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 | |
Microsoft 365 Group membership for a user or summary report | |
.DESCRIPTION | |
Output a list of a user's modern group memberships (Teams, Yammer, Planner, Groups) or summary report | |
.EXAMPLE | |
Get-365GroupsForUser -UserName pvenkman | sort DisplayName | select DisplayName,Description | |
.EXAMPLE | |
Get-365GroupsForUser -UserName pvenkman | select DisplayName,Created,Description | Export-Csv -Path .\Grps.csv -NoTypeInformation | |
.EXAMPLE |
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
You can get the videos from Kaltura. | |
In the code in the iframe player, in the <script> section with the comment "// Initialize the iframe with associated setup", the "downloadUrl" value is the path to the source video file. | |
"downloadUrl":"https:\/\/cdnapisec.kaltura.com\/p\/1727781\/sp\/172778100\/playManifest\/entryId\/1_6em2hqfj\/format\/download\/protocol\/https\/flavorParamIds\/0" | |
You can put that value as is straight into your browser's address bar and it will download the video. | |
After downloading, this is the path the browser saw as the download link. | |
https://cfvod.kaltura.com/pd/p/1727781/sp/172778100/serveFlavor/entryId/1_6em2hqfj/v/51/ev/35/flavorId/1_15xqmt35/fileName/18-RJA-1154_RJA_Culture_Video_(Source).mp4/name/a.mp4 | |
The file downloaded as: 18-RJA-1154_RJA_Culture_Video_(Source).mp4 |
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
{ | |
"tileProps": { | |
"height": 480, | |
"width": 254, | |
"hideSelection": false, | |
"formatter": { | |
"elmType": "div", | |
"style": { | |
"padding": "10px", | |
"height": "100%", |
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
# Run elevated. Rebooting is required. | |
# Enter your drive substitute and path | |
$DriveLetter = 'R' | |
$MapPath = 'C:\GitHub' #Ensure this path exists | |
# Inspired by https://superuser.com/questions/29072/how-to-make-subst-mapping-persistent-across-reboots | |
# Do not edit below | |
# Setup GUID in standard Registry notation | |
$GUID = '{' + [guid]::NewGuid().ToString() + '}' | |
# Save the GUID to a file so you can more easily find the registry changes further below. |
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 | |
Fast conversion of Microsoft Stream VTT subtitle file to SRT format. | |
.DESCRIPTION | |
Uses select-string instead of get-content to improve speed 2 magnitudes. | |
.PARAMETER Path | |
Specifies the path to the VTT text file (mandatory). | |
.PARAMETER OutFile | |
Specifies the path to the output SRT text file (defaults to input file with .srt). | |
.EXAMPLE |
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
#Inspired by http://woshub.com/rdp-session-shadow-to-windows-10-user/ | |
#You could feed ConvertFrom-String a template to have a perfect object from the qwinsta.exe command, but I didn't want to | |
#have to keep the template file around. | |
#This is quicker than walking someone through Quick Assist, but QA will work over the internet. | |
#This command will shadow a user's Windows 10 system and you will have control (after remote user's consent if you are proper - see GPO in the link). | |
$PC=(Read-Host -Prompt "PC Name");$ID = (qwinsta.exe /server:$PC | ConvertFrom-String | Where-Object P2 -eq console | select P4).P4;mstsc.exe /shadow:$ID /v:$PC /control |
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 | |
Return a name based on Lorem Ipsum. | |
.DESCRIPTION | |
Calls public Loren Ipsum API and returns name and account name if requested. | |
.EXAMPLE | |
Get-LoremName | |
FirstName LastName | |
--------- -------- | |
Plane Gloriosam |
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
#See: https://1.1.1.1/ and https://www.cnet.com/news/cloudfare-new-1111-dns-privacy-tool-would-speed-your-internet-too/ | |
#Run in elevated PowerShell command shell | |
#Store current DNS servers | |
Get-NetAdapter -Physical | Where-Object {$_.Status -eq 'Up'} | Get-DnsClientServerAddress | Select ServerAddresses -expand ServerAddresses | Set-Content -Path $env:USERPROFILE\OriginalDNSservers.txt | |
$Display current DNS servers | |
Get-NetAdapter -Physical | Where-Object {$_.Status -eq 'Up'} | Get-DnsClientServerAddress | |
#Specifiy CloudFlare 1.1.1.1 service IP addresses (IPv4/IPv6) | |
$DNSservers = ('1.1.1.1','1.0.0.1','2606:4700:4700::1111','2606:4700:4700::1001') | |
#Set client DNS servers to CloudFlare DNS servers | |
Get-NetAdapter -Physical | Where-Object {$_.Status -eq 'Up'} | Set-DnsClientServerAddress -ServerAddresses $DNSservers |
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
$site = 'mysite01' | |
$source = "\\my-web1\e$\websites\$site\" | |
$destination = "E:\websites\$site\" | |
#List only first | |
$logfile = "E:\$site-robo-test.txt" | |
$switches = "/E /L /R:2 /W:3 /NP /FFT /DST /LOG:$logfile /XF "".DS_Store"" ""thumbs.db""" | |
& robocopy.exe $source $destination $switches.Split(' ') | |
#Check Log File | |
Get-Content -Path $logfile -First 17 |