Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Active Directory > Re: DSGET not working on Windows 7!!

Reply
Fix Vista Errors
Thread Tools Display Modes

Re: DSGET not working on Windows 7!!

 
 
Paul Bergson [MVP-DS]
Guest
Posts: n/a

 
      11-24-2009



It works fine for me and I am running on Win7 with both elevated and
non-elevated permissions. My guess is there is a hidden character in your
string.


--
Paul Bergson
MVP - Directory Services
MCTS, MCT, MCSE, MCSA, Security+, BS CSci
2008, 2003, 2000 (Early Achiever), NT4
Microsoft's Thrive IT Pro of the Month - June 2009

http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewsGroup This
posting is provided "AS IS" with no warranties, and confers no rights.

"JayDee" <> wrote in message
news:d60ddb40-072b-41f8-8eec-...
> Hello. I installed the Windows 7 AdminPak and everything seems to work
> great (all the MSC plug-ins). the DSQuery command-line tool works
> great as well. But... surprisingly and weirdly, DSGET does not seem to
> be working!! When I do something like...
>
> DSQUERY computer ou=whatever,dc=company,dc=com
>
> ...I get all computers.
>
> But when I do...
>
> DSQUERY computer ou=whatever,dc=company,dc=com | DSGET computer -samid
>
> ...Nothing happens!! Just back to a prompt instead of listing all the
> SAMs. Any ideas?
>
> I copied the DS commands out of the windows\winsxs directory (not sure
> why they were there) to another directory and ran from there. Here are
> they dates:
>
> 07/13/2009 05:14 PM 64,000 dsadd.exe
> 07/13/2009 05:14 PM 81,408 dsget.exe
> 07/13/2009 05:14 PM 61,440 dsmod.exe
> 07/13/2009 05:14 PM 31,744 dsmove.exe
> 07/13/2009 05:14 PM 75,776 dsquery.exe
> 07/13/2009 05:14 PM 35,840 dsrm.exe
>
> thanks!
> - JayDee
>



 
Reply With Quote
 
Paul Bergson [MVP-DS]
Guest
Posts: n/a

 
      11-25-2009
I don't know, but it is most certainly localized. Try this on another Win7
machine.

--
Paul Bergson
MVP - Directory Services
MCTS, MCT, MCSE, MCSA, Security+, BS CSci
2008, 2003, 2000 (Early Achiever), NT4
Microsoft's Thrive IT Pro of the Month - June 2009

http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewsGroup This
posting is provided "AS IS" with no warranties, and confers no rights.

"JayDee" <> wrote in message
news:ec5e64f3-d4f0-4f57-b012-...
On Nov 24, 5:19 am, "Paul Bergson [MVP-DS]" <pbbergs@no_spammsn.com>
wrote:
> It works fine for me and I am running on Win7 with both elevated and
> non-elevated permissions. My guess is there is a hidden character in your
> string.
>
> --
> Paul Bergson
> MVP - Directory Services
> MCTS, MCT, MCSE, MCSA, Security+, BS CSci
> 2008, 2003, 2000 (Early Achiever), NT4
> Microsoft's Thrive IT Pro of the Month - June 2009
>
> http://www.pbbergs.com
>
> Please no e-mails, any questions should be posted in the NewsGroup This
> posting is provided "AS IS" with no warranties, and confers no rights.
>
> "JayDee" <dopam...@mail.com> wrote in message
>
> news:d60ddb40-072b-41f8-8eec-...
>
>
>
> > Hello. I installed the Windows 7 AdminPak and everything seems to work
> > great (all the MSC plug-ins). the DSQuery command-line tool works
> > great as well. But... surprisingly and weirdly, DSGET does not seem to
> > be working!! When I do something like...

>
> > DSQUERY computer ou=whatever,dc=company,dc=com

>
> > ...I get all computers.

>
> > But when I do...

>
> > DSQUERY computer ou=whatever,dc=company,dc=com | DSGET computer -samid

>
> > ...Nothing happens!! Just back to a prompt instead of listing all the
> > SAMs. Any ideas?

>
> > I copied the DS commands out of the windows\winsxs directory (not sure
> > why they were there) to another directory and ran from there. Here are
> > they dates:

>
> > 07/13/2009 05:14 PM 64,000 dsadd.exe
> > 07/13/2009 05:14 PM 81,408 dsget.exe
> > 07/13/2009 05:14 PM 61,440 dsmod.exe
> > 07/13/2009 05:14 PM 31,744 dsmove.exe
> > 07/13/2009 05:14 PM 75,776 dsquery.exe
> > 07/13/2009 05:14 PM 35,840 dsrm.exe

>
> > thanks!
> > - JayDee- Hide quoted text -

>
> - Show quoted text -


Typed the following lines fresh. You can see the result from the first
and nothing appeared after the second. No errors... nothing.

LINE1:
>dsquery computer -samid usushpifwv027$


LINE1 Result:
"CN=USUSHPIFWV027,OU=Infrastructure,OU=Servers,OU= corp,DC=abcompany,DC=com"

LINE2:
>dsquery computer -samid usushpifwv027$ | dsget computer -samid


LINE2 Result: NONE!


Then I did a Cut-n-Paste (To rule out a hidden character as you
suggested) on a Windows 2003 server:

C:\>dsquery computer -samid usushpifwv027$ | dsget computer -samid
samid
USUSHPIFWV027$
dsget succeeded


On windows 7, all of the GUI MMC plug-ins work great and so does
DSQUERY.

- j


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 7 email program? Paul H Windows Vista Mail 113 1 Day Ago 06:28 PM
Can download updates, but will not installs Peter Windows Update 4 11-16-2009 02:30 PM
Windows Live Mail does not import sub-folders from Windows Mail Bharani Windows Vista Mail 2 11-16-2009 01:36 AM
Windows Update Service is not working Asif Update Services 1 10-27-2009 05:54 PM
Getting Ready for Windows BETA 2 - QuickStarter Andre Da Costa [Extended64] Windows Vista Installation 2 06-07-2006 06:22 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59