Public/Start-ADUC.ps1
Function Start-ADUC { [CmdletBinding()] param ( [Parameter()] [pscredential] $AdminCredential ) begin { IF (!($AdminCredential)) { [pscredential]$AdminCredential = Get-Credential -UserName "wfm\" -Message "Provide Admin Credentials for Lauching Active Directory Users and Computers" } Start-Process powershell -Credential $AdminCredential -workingdirectory $PSHOME -ArgumentList "/c dsa.msc" } process {} end {} } |