Any way to find if there are any users without a login script.

Posted on 2007-08-12
Last Modified: 2010-03-05

Is there Any way to find if there are any users without a login script configured in the ads

Question by:bsharath
    LVL 26

    Accepted Solution

    Click Start -> Run -> Cmd.exe

    dsquery * domainroot -filter "(&(objectCategory=Person)(objectClass=User)(sAMAccountName=*)(!scriptPath=*))" -Attr sAMAccountName -limit 0
    LVL 11

    Author Comment


    I get all the users in the output.
    Will this show users with or without a login script.?
    LVL 23

    Assisted Solution

    by:Malli Boppe
    Sharath You can use the blow command
    path is  where you want the csv file ex:c:\users.csv
    FQDNOFDC is fully qualified domain name of DC ex: sydn1print1.corp.local

    CSVDE -f "path where you want the CSV file" -r  objectClass=User -l cn,scriptpath -s FQDNofDC

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Have you considered what group policies are backwards and forwards compatible? Windows Active Directory servers and clients use group policy templates to deploy sets of policies within your domain. But, there is a catch to deploying policies. The…
    When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
    In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now