Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-content/plugins/wordfence/models/block/wfBlock.php on line 536

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-content/plugins/wordfence/models/block/wfBlock.php on line 537

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-content/plugins/wordfence/models/block/wfBlock.php on line 539

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-content/plugins/wordfence/models/block/wfBlock.php on line 554

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-content/plugins/wordfence/models/block/wfBlock.php on line 557

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-content/plugins/jetpack/_inc/lib/class.media-summary.php on line 77

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-content/plugins/jetpack/_inc/lib/class.media-summary.php on line 87

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-includes/kses.php on line 893

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-includes/kses.php on line 893

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-includes/kses.php on line 893

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-includes/kses.php on line 893

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-includes/kses.php on line 893

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-includes/kses.php on line 893

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-includes/kses.php on line 893

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-includes/kses.php on line 893

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-includes/kses.php on line 893

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-includes/kses.php on line 893

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-includes/kses.php on line 893

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/27/d281301701/htdocs/InsideMicrosoft/blog/wp-includes/kses.php on line 893
Powershell Archives - Inside Microsoft

Powershell

What can the Office 365 “Service administrator” / “Service Support Administrator” role do?

Many Office 365 deployments struggle with delegating permissions to specific actions or areas of administration inside the tenant. Many simple administrative activities such as reading licensing and service plan information at the tenant and user level, require administrative access to the tenant. What Office 365 Administrator Role should be used

Detecting and Launching PowerShell with Elevated Administrator Rights

Here is a good reference on detecting whether a PowerShell script is currently running with Administrator rights, and relaunching with elevated permissions if not. Courtesy of Bruno Saille’s JEA Helper Tool 2.0: https://gallery.technet.microsoft.com/JEA-Helper-Tool-20-6f9c49dd ######################################################################################## #Make sure we run elevated, or relaunch as admin ######################################################################################## $CurrentScriptDirectory = $PSCommandPath.Substring(0,$PSCommandPath.LastIndexOf(“\”)) Set-Location $CurrentScriptDirectory    

Azure AD PowerShell Modules

There have been several Windows Azure Active Directory Modules.  Here is a quick reference. What Versions Exist? Microsoft’s evolution and naming of the modules has caused some confusion: V1.  The initial PowerShell module for Azure AD  is named “MSOnline” and was also known as the Office 365 PowerShell module  https://docs.microsoft.com/en-us/powershell/module/msonline/?view=azureadps-1.0

A Clever Method to Call .NET from PowerShell

I came across a very interesting PowerShell technique today courtesy of Guy Bachar’s TechNet Gallery Script Exchange Online Audit Log Report (HTML Format). This PowerShell script contains .NET code which calls the local Windows Credential Manager.  Pheww!  Could come in handy. …. . ###################################################################### # API to load credential from