PowerShell, Executing Internet Explorer as Network Service

Sometimes as part of troubleshooting things will work when you try them as an administrator, but they will not work when executed as Network Service, here is a PowerShell script that will open Internet Explorer in the context of the Network Service: (of course you could use the same script to run any program with…


Powershell for Changing AppSettings in Application Configuration File

Here is a PowerShell Function that I created with the objective of changing an application configuration file and then, if we want, restart a service   Function Set-ApplicationSettingConfigProperty { param ( [parameter(Mandatory = $true)][ValidateScript ({Test-Path $_})][string] $PathToConfigFile, [parameter(Mandatory = $true)][string] $PropertyName, [parameter(Mandatory = $true)][string] $PropertyValue, [Parameter(Mandatory = $false)][Validatescript ({(Get-Service $_) -ne $null})][string] $NameOfServiceToRestart = $null)…

1

Debugging like a Boss with Visual Studio!

There are a couple of things that I would like to go thru inthis post in what I consider the most important things to know while debugginga .net application in visual studio… In this post I will assume that you knowhow to attach to process and debug local processes that way.   Debugging remote processes…


Azure AD, Licensing users in a Security Group

Today I was trying to figure it out how to license a set of users in a Security Group and I came up with a PowerShell function to do it so, the function is based on this article from 365Lab First you need to install the latest “Windows Azure Active Directory Module for Windows PowerShell”.  The commands…