DIGIT-ARC read-only archive · snapshot: July 23, 2026

Two querries- Disabling storage devices & monitoring user logon/logoff timings

5 posts · originally from https://geek.digit.in/community/threads/two-querries-disabling-storage-devices-monitoring-user-logon-logoff-timings.146513/

hansraj
hansraj Original post #1
Sep 16, 2011 at 8:00 PM
Hello friends,
I am trying to find a method where in I can use only specific pendrive/storage devices on my office pcs. While doing so, the account has to be an administrator account as well because those specific pendrive/storage devices have to be formatted routinely. As a limited or standard user people wont be able to do that. Second issue is; I want to keep a log of the timings at which the users log on and log off.
Any help shall be greatly appreciated. Looking forward!!
OS: Win7 and XP both
I did some programming in C# using MS visual studio 08. So suggestions regarding codes is fine too.
nims11
nims11 #2
Sep 17, 2011 at 9:21 AM
first query :
you can use desktop central to manage USB devices
Remote Windows Desktop Management and Desktop Administration Software - ManageEngine Desktop Central

second query :
create batch files logon.bat and logoff.bat
logon.bat :
Code:
echo Logon : %USERNAME% at %DATE% %TIME% >> C:\x.log
logoff.bat :
Code:
echo Logoff : %USERNAME% at %DATE% %TIME% >> C:\x.log

goto Run->gpedit.msc->User Configuration->Windows Settings->Scripts
and add the scripts.
hansraj
hansraj #3
Sep 18, 2011 at 1:24 PM
first query :
second query :
create batch files logon.bat and logoff.bat
logon.bat :
Code:
echo Logon : %USERNAME% at %DATE% %TIME% >> C:\x.log
logoff.bat :
Code:
echo Logoff : %USERNAME% at %DATE% %TIME% >> C:\x.log

goto Run->gpedit.msc->User Configuration->Windows Settings->Scripts
and add the scripts.
Thanks a ton... this part is done and achieved.

first query :
you can use desktop central to manage USB devices
Remote Windows Desktop Management and Desktop Administration Software - ManageEngine Desktop Central.

I downloaded it but I am unable to complete the disabling of selective USB storage devices in that. If you are using it, can you share how to do that.
nims11
nims11 #4
Sep 18, 2011 at 2:58 PM
nah, i have never used it. google results show few good ones none of which i am satisfied with. see for yourself : allow specific usb devices - Google Search
hansraj
hansraj #5
Sep 18, 2011 at 7:58 PM
Thanks Nims. Found a software by following the method as suggested by you. USB Block. Some times googling with exactly key words is so important that you just cant succeed otherwise. I tried earlier but with other key words ;)

Anyways ... thank you once again.