Welcome to MSDN Blogs Sign in | Join | Help

Decrypt my World

Cryptography, Security, Debugging and more!

News

  • Any of my posts is supported under any Microsoft standard support program or service. They are provided "AS IS" without warranty of any kind, and confer no rights.

Where are my readers?

Locations of visitors to this page

Favorite Posts

Browse by Tags

All Tags » VBScript   (RSS)
How to get LastLogon property for all users in a Domain (VBScript)
Hi all, The following VBScript sample retrieves all users in Active Directory that haven't ever logged on the domain, or haven't logged on for at least maxDays (an argument passed to the script): On Error Resume Next ' Constants ' Const ONE_HUNDRED_NANOSECOND Read More...
How to sign EXE files with an Authenticode certificate (part 2)
Hi all, welcome back, The other day a customer of mine was having an issue with SignTool.exe when signing an EXE file. The EXE file was getting corrupted /unusable after signing it. When troubleshooting this issue, I had the chance to play a bit more Read More...
How to change Windows Theme programmatically in XP
Hi all, You may know already that there is no i.e. COM object or .NET class we can use to change the Windows Theme programmatically on Windows XP . You may also know the following VBScript which can be used to do this change without user intervention: Read More...
How to get more than 1000 group members including foreign SAMs (VBScript)
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...
How to get Antivirus information with WMI (VBScript)
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...
How to get a list of all users in an OU (VBScript)
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...
How to read a registry key and its values (VBScript)
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...
How to change the Security Descriptor of WMI objects
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...
How to change Registry Permissions with RegIni.exe (VBScript)
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...
How to get the user running a VBScript
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...
Page view tracker