Skip to content

Instantly share code, notes, and snippets.

View aaronparker's full-sized avatar

Aaron Parker aaronparker

View GitHub Profile
@aaronparker
aaronparker / Redirect-FoldersOneDrive.ps1
Last active July 13, 2023 20:54
Redirects select folders into the OneDrive folder.
<#
.SYNOPSIS
Sets a known folder's path using SHSetKnownFolderPath.
.PARAMETER KnownFolder
The known folder whose path to set.
.PARAMETER Path
The target path to redirect the folder to.
.NOTES
Forked from: https://gist.github.com/semenko/49a28675e4aae5c8be49b83960877ac5
#>
@aaronparker
aaronparker / IvantiApplicationControlMessageBox.css
Last active May 17, 2018 02:55
Ivanti Application Control Message Box styling
body{
font-family:'Segoe UI','Regular';
background-color:#E6E6E6;
color:#000;
font-size:11pt;
margin:0px;
padding:0px;
overflow:hidden;
}
.header,.description,.confirm-btn{
@aaronparker
aaronparker / New-SecureSharedFolder.cmd
Created July 26, 2017 10:27
Create Secure Shared Folders
@ECHO OFF
REM Creating secure shared folders
REM Sample articles:
REM https://support.microsoft.com/en-us/help/274443/how-to-dynamically-create-security-enhanced-redirected-folders-by-using-folder-redirection-in-windows-2000-and-in-windows-server-2003
REM https://technet.microsoft.com/en-us/library/jj649078(v=ws.11).aspx
REM Create and share folders with permissions for FSLogix Profile Containers or Office 365 Containers
md e:\FSLogixContainers
net share FSLogixContainers=e:\FSLogixContainers /GRANT:Users,CHANGE /GRANT:Administrators,FULL /CACHE:None /REMARK:"FSLogix Containers"
icacls e:\FSLogixContainers /inheritance:d
$Cred = Get-Credential
$session = New-CsOnlineSession -Credential $cred -Verbose -OverrideAdminDomain home.stealthpuppy.com
Import-PSSession $Session
Set-CsOAuthConfiguration -ClientAdalAuthOverride Allowed
$Cred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Cred -Authentication Basic -AllowRedirection
Import-PSSession $Session
Set-OrganizationConfig -OAuth2ClientProfileEnabled $true
Verifying that +aaronparker is my blockchain ID. https://onename.com/aaronparker