My current project requires different execution strings in custom actions based on whether the computer is a domain member. Is there a way to check if the computer is on a domain?
Thanks!
Andy
Code: Select all
(get-wmiobject -class win32_computersystem).PartofDomain