Dude where's my PFE?

I am a Premier Field Engineer (PFE) for Microsoft.

Group Policy Sample Script Issue, solved

Group Policy Sample Script Issue, solved

  • Comments 3
  • Likes

This is an interesting one-off that we felt would be worth posting.  Might help a few folks not pull their hair out one late evening…

Issue: Running the ‘getreportsforallgpos.wsf’ script from the GPMC sample scripts, from a command prompt (even as admin) – I get the following error message:

Exact syntax is: 

C:\Program Files\Microsoft Group Policy\Sample Scripts>cscript getreportsforallgpos.wsf c:\users\bob\desktop\gpoexport /domain:Contoso


Error:  (47, 18) (null) : A referral was returned from the server


Resolution:  Use the domain’s FQDN instead of short name (NetBIOS name)


Example:   C:\Program Files\Microsoft Group Policy\Sample Scripts>cscript getreportsforallgpos.wsf c:\users\bob\desktop\gpoexport /domain:Contoso.com

Hope that helps someone out there in the great big world someday.  Shout out to Roger Southgate, fellow PFE, for finding this gem.

 

Cheers!

Comments
  • Thanks for posting this -- what an easy fix, if you know what it is :-)

  • Yeah no doubt :)  Glad it helped!

    Jeff

  • simple but outstanding ..... thank you so much

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment