![Share on Facebook Facebook](https://www.rootlinks.net/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/facebook.png)
![Share on Twitter twitter](https://www.rootlinks.net/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/twitter.png)
![Share by email mail](https://www.rootlinks.net/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/mail.png)
VBScriptでAcrive Directoryのユーザの作成日時,更新日時を取得する方法
ユーザー アカウントの [オブジェクト] ページ情報の一覧表示
http://gallery.technet.microsoft.com/scriptcenter/0e220011-8efa-4959-96c5-3cf72151cdc4
whenCreated,whenChangedはUTCで取得されるので、その後で+9してJSTに変換しています
1 2 3 4 5 6 7 8 9 |
; html-script: false ] Set objUser = GetObject _ ("LDAP://cn=matsuoka,ou=staff,dc=rootlinks,dc=net") Wscript.echo "作成日(UTC): " & objUser.Get("whenCreated") Wscript.echo "更新日(UTC): " & objUser.Get("whenChanged") Wscript.echo "作成日(JST): " & DateAdd("h", 9 ,objUser.Get("whenCreated")) Wscript.echo "更新日(JST): " & DateAdd("h", 9 ,objUser.Get("whenChanged")) |