Skip to content

Instantly share code, notes, and snippets.

View RemiEscourrou's full-sized avatar

Remi RemiEscourrou

View GitHub Profile
@RemiEscourrou
RemiEscourrou / embedded-file-viewer.md
Created January 31, 2023 14:50 — forked from wheelcomplex/embedded-file-viewer.md
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

@RemiEscourrou
RemiEscourrou / Set-PasswordRemotely.ps1
Created August 21, 2019 11:47
Change a password on a remote forest
function Set-PasswordRemotely {
## Change a password on a remote forest.
## Used Get-Credential to avoid password in PSReadLine
## The method above is actually based on NetUserChangePassword function.
## Inspired from @chryzsh
## https://gist.github.com/chryzsh/f814a3d6088c5bc8f1adfafce2eb3779
[CmdletBinding()]