Skip to content

Instantly share code, notes, and snippets.

View johnarok's full-sized avatar

johnarok

View GitHub Profile
config:
environment.DISPLAY: :0
raw.idmap: both 1000 1000
user.user-data: |
#cloud-config
#runcmd:
packages:
- x11-apps
- mesa-utils
description: GUI LXD profile
@johnarok
johnarok / add-email-aliases-to-office365-group.md
Last active June 23, 2018 02:47
add email aliases to office365 group

Connect to Exchange online

Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication  Basic -AllowRedirection
Import-PSSession $Session

Inquire

@rem *** Disable Some Service ***
sc stop DiagTrack
sc stop diagnosticshub.standardcollector.service
sc stop dmwappushservice
sc stop WMPNetworkSvc
sc stop WSearch
sc config DiagTrack start= disabled
sc config diagnosticshub.standardcollector.service start= disabled
sc config dmwappushservice start= disabled
@johnarok
johnarok / boxstarter.ps1
Created March 31, 2018 22:46 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <[email protected]>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:

Keybase proof

I hereby claim:

  • I am johnarok on github.
  • I am johnarok (https://keybase.io/johnarok) on keybase.
  • I have a public key ASBKFFcvtZv3myg2FQGqhgQySw8pGOexcIIG5NnQYWhZAQo

To claim this, I am signing this object: