Using Object properties

A lot of people see PowerShell as conversion tool, but it can do so much more. It can uninstall apps, inventory your applications. Rename files to a standard. Create shares, modify files and sessions and give an Administrator access to a computer without interrupting a session. It is built on .net/c# so it can doContinue reading “Using Object properties”

Audit Objects in your Domain(s) using switch statements in PowerShell

I find it important to figure out who and what is in your active directory OUs get-aduser $TargetedUser What about groups, and computers? get-adobject $targetObject this includes users, groups, and computers. here is a switch that will report differently based on object class property that gets returned. get-adobject -filter *| foreach-object{ Switch($_.Objectclass) { User{ write-hostContinue reading “Audit Objects in your Domain(s) using switch statements in PowerShell”

Add-Member if you want to effectively “object” all things and possess their property.

I thought I would clarify this as most articles don’t simplify this to easily wrap you head around. Add-member is what I would use to add a new member to a group of properties on an object I create the object ¬†Add a noteproperty that translate to text create a scriptmethod that can do thingsContinue reading “Add-Member if you want to effectively “object” all things and possess their property.”