Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there a way to view which logon script is running for an AD user without having domain admin rights.

I've tried gpresult and it isn't displaying any login/logoff scripts, but I believe the script is configured under the user's Profile tab in AD Users&Computers.

Are there any events logged I could refer to, or does this logon script get stored locally by chance?

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

In PowerShell:

Import-Module ActiveDirectory
Get-ADUser MDMarra -Properties scriptpath | Select scriptpath

In cmd:

dsquery user -samID MDMarra | dsget user -loscr

This will return the path of the logon script set in the Profile tab of ADUC.

or

Just install ADUC on your workstation and look at the Profile tab for the user in question. You don't need to be a domain admin to view objects in ADUC.


By default, you can view this attribute for all users in your domain without having Domain Admin rights.

share|improve this answer
    
Thank you for this, I originally used another VBScript to access the same info, but this worked too. –  MarkF May 13 '13 at 15:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.