Group Policy Sample Script Issue, solved

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!

3 comments

Leave a comment

Your email address will not be published. Required fields are marked *

Exit mobile version