473,805 Members | 2,268 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Show "LastLogonTimeS tamp" with script in 2003 Active Directory

1 New Member
My work's intranet actually works with Windows 2003 (PDC) and some NT (BDC), so the active directory works only in 2003 interim mode.

I must list the "LastLogonTimeS tamp" value of all the users of the Active Directory.

I found a small script that, in theory, helps. It is:

Dim UserDE as new
DirectoryEntry( "LDAP://cn=sharpe,ou=us ers,dc=cahs,dc= colostate,dc =edu")

Dim highpart,lowpar t,lastlogon as long
highpart = UserDE.Properti es("LastLogonTi meStamp")(0).Hi ghPart
Lowpart = UserDE.Properti es("LastLogonTi meStamp")(0).Lo wpart
lastLogon = (HighPart * 2^32) - Lowpart

msgbox DateTime.FromFi leTime(lastLogo n)


It doesn't works!

Is it not visual basic script? Is something wrong?

Thanks for your help
Jan 4 '08 #1
0 2955

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1451
by: Greg Buckley | last post by:
I have come across an interesting problem. Let me first state that I am not a fluent ASP programmer. I am a network engineering trying to port an existing app. The app in question is currently running on IIS 5.0 (2Kserver) in a NT 4.0 domain. I am moving it to an IIS 6.0 server in a 2003 Active Directory domain. My app calls this variable <%= varUser %> and brings the users login name to the web page as well as using it to pull data...
0
791
by: tangolp | last post by:
I tried to build a WS to authenticate the user by passing user id and user password (hashed) to AD. Is there any documentation on how to approach this issue? Thanks.
2
38295
by: drac99 | last post by:
This is a call to everybody in the forum. Please help me with interview questions for windows 2003 server, Active Directory and Exchange Server Thank you
2
1694
by: Dabulsta | last post by:
I am trying to design a network using Windows Server 2003 Active Directory infrastructure for the following company(below) and I was wondering if there was some sort of walk through available to help me throughout the design process, any suggestions will be welcomed. The company Technical Computing has acquired a set of new offices with the option of taking over more at a future date. The company has been established as a private tuition...
0
1203
by: teejayem | last post by:
Hi. I have searched the groups and have been unable to find an answer to my question. I am trying to reset the password of a user account in active directory. I have been trying to do this using the following code:-
0
2880
JamieHowarth0
by: JamieHowarth0 | last post by:
Hi guys, Up until 3 weeks ago I was running a Microsoft Windows Server 2003 R2 Enterprise Edition Beta from home on an ADSL connection with dynamic IP absolutely fine - until the beta decided to expire. I have since upgraded to a valid licensed copy but because the "upgrade" option wasn't given to me I had to do a clean install - so format and re-install my hard disk. Fortunately, I was clever and stored all my vitals - mailbox database,...
7
2785
by: Vio | last post by:
Hello everyone, i currently a beginner in php. I want to ask about Win2003 Active Directory users. Is it possible to retrieve Win2003 AD (just username & password) with php. I'm currenty developing web based application for my small office. I put my Apache+php+MySQL in Win2003 Server. My Clients using IE as default browser. What i want to do is to integrated active directory user with my application.
4
5291
by: alex091088180189 | last post by:
Hi all, working in a school and coming into a new school year I have to add 180+ new users to the school network ready for September. I've been using CSVDE command line app for a while now, to perform AD exports of users and computers, but for some reason cmd keeps giving me an error when trying to import users As always the faithful windows doesn't tell me why the import failed... it just tells me it failed. Has anyone had to import...
0
1421
by: manishrathi | last post by:
I am getting following message while trying to install active directory. "the wizard has detected there are no valid ip addresses assigned to any of the network adapters for this computer" Do I need to be connected to internet to install active directory ? I dont have internet connection for this computer. When I use "ipconfig" command on command prompt, I following message "Windows IP configuration Ethernet adapter Local Area...
0
10614
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10369
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10109
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3847
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.