Guest Lewandowski Bartłomiej Posted April 12, 2023 Posted April 12, 2023 Hello, I made a simple program that print specified computers in our Domain, sadly there is a problem with returning an object from a function after call. First call does not work, 2nd print same output 2 times. Do you have any idea how to display it in a first run? As far as i know it is a problem that get-ad makes object and objects are not so eazy to return from function. function MyFunctionOne{ $Computers=(Get-ADComputer -Filter * -Properties MemberOf,description | Where-Object {[sTRING]$_.MemberOf -notlike "*GroupNa Continue reading... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.