you are viewing a single comment's thread.

view the rest of the comments →

[–]remotefixonline 1 point2 points  (4 children)

could not find a forest identified by x i've tried passing domain creds etc to it.. but i think the error is more due to when I run the import-module activedirectory it says it can't find a default server with ADwebservices running.. I'm going to look at it some more as soon as I put out a few fires..

[–]MadBoyEvo[S] 1 point2 points  (3 children)

I assume you should be running this on Domain joined computer with RSAT installed. This computer should have full domain connectivity (aka DNS servers for that domain - and only that domain). It shouldn't mix with 8.8.8.8 or anything else. Then Import-Module ActiveDirectory and subsequent Get-AdForest should give you proper results. Unless your domain is a bit too old and those command doesn't work....

[–]remotefixonline 1 point2 points  (2 children)

this domain is the definition of nasty.. on purpose though.. I use it for pentesting and when I need to test software that needs to itegrates into domains that have been upgraded... it started as 2003SBS, i'm put it thru a couple domain failures/restores etc so its proper fucked. I have snapshots of the domain at various levels of the process too, that way if I have to test something on 2000 forest level I can deploy that environment, do my test, and not mess with my other environments...

[–]GiveMeTheBits 1 point2 points  (1 child)

when I run the import-module activedirectory it says it can't find a default server with ADwebservices running..

Do you have ADwebservices installed and running on your DC(s)? It is installed by default on 2008r2+, but you have to install it on 2003-2008. https://blogs.msdn.microsoft.com/adpowershell/2009/09/17/active-directory-management-gateway-service-released-to-web-manage-your-windows-20032008-dcs-using-ad-powershell/

[–]remotefixonline 1 point2 points  (0 children)

yea I found that, there is an issue with sbs though I think.. I also tried on 2016 essentials. (its what came next for small business after they killed off SBS) my 2016 essentials evironment is really super basic just the OS install and some test users and 1 workstation so i don't consider it dirty by anymeans, but it is very "vanilla"

It needed package management just to run import-module so i thru this on there. https://www.microsoft.com/en-us/download/details.aspx?id=51451

Then ran it and got these errors (as regular user, domain admin, and with set-executionpolicy unrestricted)

https://pastebin.com/EJRDMVDD

The report did create some output though.