Category Archives: software testing

Creating a Powershell session under a different set of credentials

Below code can be handy if you need to create a powershell session under a different credential than the one you are logged into. This allow to support multiple scenarios: Test role base access control Increase privilege for important operation [powershell] # Avoid displaying the UI prompt when creating credential object Set-ItemProperty ‘HKLM:\SOFTWARE\Microsoft\PowerShell\1\ShellIds’ ConsolePrompting $true… Read More »