You had me @ stfu

Snippets for PsObject

›
This one pulls PrimarySMTP from ProxyAddresses: ipmo ActiveDirectory $PAS = Get-ADUser -Filter * -properties ProxyAddresses | select -Ex...

O365 - resuming move requests

›
For resuming move requests outside of business hours Picks up failed move requests too (if PAW is configured) -  https://blogs.technet.mic...

O365 - suspending move requests

›
For suspending move requests during business hours (only those below 94%) Bear these in mind: The script has to produce a move request s...

Office 365 move requests - random incremental sync interval

›
EMS: There are two random number generation processes here. Firstly, a random number to change the sort order of the move requests (this i...

MSOL license check

›
*Requires O365 admin account with Licensing permission* PS: [string]$DateTime = (Get-Date).Tostring("dd-MM-yyyy_HHmmss") [str...

Exchange online PS connection

›
PS: #(Refer to post regarding encrypting credentials) #Modify accordingly and save in PSProfile [string]$ExchOnline = "outlook.of...

Encrypt password (e.g. for use in PowerShell)

›
PS: Defined as a function (e.g. to use in PSProfile) function fcreds(){ $GetCredential = Get-Credential [string]$usr = $GetCredential....

PowerShell profile

›
As per:  https://technet.microsoft.com/en-us/library/ff461033.aspx (almost - just skip step 6) PS: $check = test-path $profile if($che...

One-liners

›
Re-vamping this blog a bit. You'll notice that I do often like to squeeze my scripts into one-liners a lot of the time. Basic Progre...

Full mailbox access, send as

›
EMS: FULL MAILBOX ACCESS Add full mailbox access for a user: $mailbox = Read-host "Mailbox to be actioned upon"; $user = R...
‹
›
Home
View web version
Powered by Blogger.