Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

DSquery and DSmove

Featured Replies

Hello, I'm trying to query my active directory for disabled accounts and then move them into an OU named "disabled ou".

I've tried the following:

dsquery user -disabled | dsmove -newparent "ou=disabled group,dc=etc,dc=etc,dc=etc"

however i received the following message.

dsmove failed:`CN=blahblah,OU=Disabled group,DC=etc,DC=etc,DC=etc,'is an

unknown parameter.

type dsmove /? for help.

I cant seem to figure it out.

Andy help would be great.

Thanks

Andy


You have to tell dsmove what you're moving. :)

dsmove "cn=disabled_account,ou=current_ou,dc=etc,dc=etc,dc=etc" -newparent "ou=Disabled Group,dc=etc,dc=etc,dc=etc"

Edited by nmX.Memnoch

  • Author

So are you telling me it is not possible to pipe the results of a dsquery command into dsmove to move multiple accounts? I have 800 account to move.

Thanks

Andy

dsquery user -disabled | dsmove user -newparent "ou=disabled group,dc=etc,dc=etc,dc=etc"

memnoch is right you just didn't tell it what you wanted to move but to pipe in the query, just use the user option

  • Author

Ahh, i c. I'll give it another go in the morning,

Thanks guys.

Andy

  • Author

Given it a try but it doesn't work, tell me the target is incorrect. I've heard of several people having problems piping dsmove, has anyone had any luck doing this?

Thanks

It's probably the space in your OU name. Try these:

dsquery user -disabled | dsmove user -newparent ou="disabled group",dc=etc,dc=etc,dc=etc

dsquery user -disabled | dsmove user -newparent "ou='disabled group',dc=etc,dc=etc,dc=etc"

Another question...is "Disabled Group" under another OU?

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.