Browse by Tags
All Tags »
VBScript (RSS)
Hi all, We may have a group in our Active Directory with members from a foreign domain . We may try to retrieve all those members with ADSI and a code like this: Using IADs::GetInfoEx for Range Retrieval . The issue with this code is that we will only
Read More...
Hi all, welcome back, As we read in Windows Security Center – Managing the State of Security , the vast majority of antivirus Independent Software Vendors (ISVs) support WMI integration. Windows Security Center uses it to detect antivirus and firewall
Read More...
Hi all, welcome back, Today I'll post a very straight forward sample which gets a list of all users in an Organizational Unit ( OU ) in Active Directory ( AD ) using VBScript : ' Get OU ' strOU = "OU=Users,DC=domain,DC=com" ' Create connection to AD '
Read More...
Hi all, welcome back, Today I'll share with you a couple of VBScript samples I developed the other day. They use WMI and its StdRegProv class to read the Windows registry . This sample will take a registry key and show its subkeys and the values within
Read More...
Hi all, welcome back, You may want to give users or groups access to perform read/modify WMI operations on WMI objects , and for that you need to change the Security Descriptor ( SD ) for WMI objects. There are several ways to achieve this: 1) Manually
Read More...
Hi all, welcome back, Today I'll show how we can set the following permissions on a registry key with RegIni.exe and a VBScript : - Creator Owner Full Control - Users Full Control - Power Users Full Control - Administrators Full Control - System Full
Read More...
Hi all, welcome back, It's very easy to find out the user name and the domain name of the user running a VBScript, and the computer name where it's running: Set objNet = CreateObject("WScript.NetWork") strInfo = "User Name is " & objNet.UserName &
Read More...