+ Post New Thread
Results 1 to 2 of 2
Scripts Thread, Please help with dsmod in Coding and Web Development; I have this working username = tomjones dsquery user -name "%username%" | dsmod user -disabled yes But if the username ...
  1. #1

    Join Date
    Sep 2010
    Location
    Hampshire
    Posts
    12
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Exclamation Please help with dsmod

    I have this working

    username = tomjones
    dsquery user -name "%username%" | dsmod user -disabled yes


    But if the username contains a .

    username = sue.smith
    dsquery user -name "%username%" | dsmod user -disabled yes


    I get the following error:

    dsmod failed:'Target object for this command' is missing.
    type dsmod /? for help.

  2. #2

    Join Date
    Sep 2010
    Location
    Hampshire
    Posts
    12
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Worked it out !

    -name is the display name
    I wanted

    dsquery user -samid "%username%" | dsmod user -disabled yes

SHARE:
+ Post New Thread

Similar Threads

  1. Please help with Nvidia 8400 GS video card
    By jas811 in forum Hardware
    Replies: 1
    Last Post: 29th June 2012, 09:03 AM
  2. Replies: 0
    Last Post: 11th March 2010, 03:13 AM
  3. Please help with dying server
    By tmcd35 in forum Hardware
    Replies: 58
    Last Post: 30th June 2009, 02:48 PM
  4. Replies: 17
    Last Post: 21st August 2008, 11:28 AM
  5. Help with iPod choice please.
    By Kyle in forum General Chat
    Replies: 17
    Last Post: 4th January 2007, 10:14 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •