-
Hello Aleksandar, thanks for posting these useful tips. A question please [ADSI} type adapter information seems to be thin on the ground. For example I am familiar with the GetType() method but have only used it with GetType.FullName (I am still ver new to PowerShell, and scripting in general, but loving it ). I see above you have used a method .GetType() then a sub-method (another thing I did not know was possible) .InvokeMember() Is there any documentation of the .InvokeMember and any other available
-
Hello Actually I just checked and the statement without the inner set of brackets in 5 milliseconds faster Jo
-
Hello, I canot see a way to use a NOT LIKE statement in WQL for example Get-WmiObject -query "select SerialNumber FROM win32_bios WHERE SerialNumber LIKE 'to be filled by O.E.M%'" Gets my BIOS Serial Number as it is set to, to be filled by O.E.M However I want to say WHERE NOT LIKE, I see you can you <> or != for non strings. However there does not appear to be a NOTLIKE or [NOT]LIKE in WQL I know I could do this for example (Get-WMIOBJECT Win32_BIOS).SerialNumber | where
-
Thanks very much Richard, so that's how you do it like you way not too obvious. For ease of reading I will use this Get-WmiObject -query "select SerialNumber FROM win32_bios WHERE NOT (SerialNumber LIKE 'to be filled by O.E.M%')" Jo
-
Hello, I am quite new to scripting as a whole but I understand the basics of PowerShell. I have a 2003 R2 AD domain, and need to extract information regarding Group Policies. Basically the guys that package software and assign to GPO for distribution to the users, cannnot always see some of the GPO's. It looks like a issue with Delegation rights. Therefore I want to audit the GPO's pulling out the delegtion rights and seeing which ones a given group does not have the correct delegation rights