Click here to Skip to main content
15,888,037 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to make a written PowerShell script that searches for all computers connected to 192.168.122.0, retrieves a list of shared resources (shared folders, printers, scanners etc) and outputs all of the above to the .csv file.

I'm getting an error: Unable to find a default server with Active Directory Web Services running.?


What I have tried:

Get-ADComputer -Filter * -Properties IPv4Address | Where-Object {$_.IPv4Address -like "192.168.122.0"}
Posted
Updated 13-Oct-19 5:59am
Comments
Richard MacCutchan 13-Oct-19 11:57am    
I think the error message is quite clear. The AD server cannot be found.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900