Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <#
- .SYNOPSIS
- This script start a powershell console as admaccount
- #>
- function elevPS {
- $cred = Get-StoredCredential -Target admaccount
- Start-Process powershell.exe -Credential $cred -ArgumentList "Start-Process powershell_ise.exe -Verb runAs"
- }
- Export-ModuleMember -Function elevPS
Add Comment
Please, Sign In to add comment