I’ve been trying for 2 days to deal with what looks like a small problem but I can’t find any solution
I need to run my Active Directory which works fine when I double click on it → Run as administrator ; BUT if I try to automatically load with a PS script :
Start-Process -FilePath “C:\Windows\system32\dsa.msc” -Verb “RunAs” Powershell
It shows me the message
PowerShell : -verb : The term ‘-verb’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check
At line:1 char:1
Please when you post code or error messages format it as code using the preformatted text button ( </> ). Otherwise the forum software will mess up you code and error messages.
Your fixed command DID opened the Active Directory console BUT without admin rights
Maybe I confuse or gave you wrong information: ot deails so I’ll try to fix the information:
I am trying to “automate” the opening of my AD (meaning: instead of opening it with SHIFT + Left mouse key) . I mean to cdouble click on it and open it immiedily .
ith admin. It is an excuse to practice “PowerShell for begginers”
BTW after i used your script the line still greyed out which indicated that I still have no admin rights
OK Thnaks. I did know THIS thing. but I DID KNOW that mouse left click + shift -->> Run as administrator is as good as your suggestion. Holwever - I Just wanted to “create” a simpe program that I will double click on it adn it will open my AD as admin. Just to practise … Never mind ; I am letting it go
Thank you any way