Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Sharpharp
  • Order by date
  1. Sharpharp

    Insert a Picture into a Vbscript Created Internet Explorer Message Box

    Hi, I have created a message popup using: Set IE = WScript.CreateObject("InternetExplorer.Application") IE.FullScreen = 0 IE.MenuBar = 0 IE.ToolBar = 0 IE.StatusBar = 0 IE.addressbar = False IE.Width = 640 IE.Height = 480 IE.Left = 0 IE.Top = 0...
  2. Sharpharp

    Preventing the SAME User from logging in for 10 minutes?

    Guys, I already managed to get a working solution. Similar to whats posted, i wrote my own code using date diff and saving to a txt file. I first save the id of the logged out user, then on logon I compare the user id with the previous user. If the difference is 10 minutes the login session can...
  3. Sharpharp

    Preventing the SAME User from logging in for 10 minutes?

    If I had anything I wouldn't have posted on here. I've googled to the point of getting RSI in my hand, but can't find anything which can help even get started on what I need to do. I can't find anything that remembers the previously logged in user, and then retains that information and blocks...
  4. Sharpharp

    Preventing the SAME User from logging in for 10 minutes?

    Hi all, I am trying to work out how to prevent the same user from logging back into the same pc for 10 minutes. We have open access pc's, and want to create a short stay environment. I have worked out a way to log a user out after a short period, but we would like to prevent the same user from...
  5. Sharpharp

    Intercept Windows Logout or Shutdown?

    The PCs are not in a domain, and if I wanted to use local gpedit.msc I would not have posted on here. Just need a scripting method to run a vbscript in the background to monitor for a shutdown and logoff, when intercepted, I need it to run another vbscript. thanks
  6. Sharpharp

    Intercept Windows Logout or Shutdown?

    Is it possible to intercept a Windows logout or shutdown using Vbscript. I want to automate a logout task, so if I have a vbscript which runs at LOGON, it could run in the background and look for a windows event such as logout and shutdown and run another vbscript. Is it possible with...
  7. Sharpharp

    Making a Vbscript USB-CD Check logout bypassing GPO

    Hi, I tried this, and it does not work under Windows 7, any chance of adapting it to work? Thanks, Sharpy
  8. Sharpharp

    Permission Denied 800A0046 Writing to a Registry HKLM Value???

    Thanks, I've managed to get my original script working with evelated permissions in the script itself. However what i was trying to achieve was to edit the registry to place a logoff script in it (the same way you would go to gpedit (locally) and add a logoff script under user configuration)...
  9. Sharpharp

    Permission Denied 800A0046 Writing to a Registry HKLM Value???

    Hi there, Trying to create a registry value using vbscript on Windows 7. I am logged in as a user which is a member of the local administrators group, but when i run a vbscript to add a value under the HKLM area on the registry I get: Permission denied, Code 800a0046 Microsoft VBScript runtime...
  10. Sharpharp

    Any way of Automating a LOCAL Script when PC logs off?

    Hi, I have a batch file i want to run on PCs when the user logs off or shuts down. The PCs are NOT in a domain, so I can't use group policy. I don't want to manually run gpedit.msc and add the batch file to users-logoff-scripts. Is there a way to do it using vbscript which could add an...
  11. Sharpharp

    How to make HTA script STAY ON TOP ???

    I put in the correct command line regsvr32.exe dynwrap.DLL but it still comes up with the same message, in the error message it refers to dynwrap.DDL, any suggestions?
  12. Sharpharp

    How to make HTA script STAY ON TOP ???

    Thanks for your help tsuji, however... I have downloaded and tried to register the activex control, but get an error in Windows 7: The module "dynwrap.ddl" was loaded but the call to DllregisterServer failed with error code 0x80004005
  13. Sharpharp

    How to make HTA script STAY ON TOP ???

    I've added the code to my script, but which activex do i need to register?
  14. Sharpharp

    How to make HTA script STAY ON TOP ???

    ANy ideas how I can do that?
  15. Sharpharp

    How to make HTA script STAY ON TOP ???

    Hi there, I have this script which displays a timer using a HTA script, but I can't for the life of me work out to make it stay on top of any windows that are clicked on. I need the timer to STAY ON TOP even when a user is using applications etc. Can anyone help please? Here's the code...
  16. Sharpharp

    How to set Compatibility mode of an EXE file???

    Thanks for your reply, but that looks well complicated. Would be easily to manually go round than take all that in. Will look for an easier solution.
  17. Sharpharp

    How to set Compatibility mode of an EXE file???

    Hi all, I'm in a bit of a pickle, got a problem with an EXE which we need to set to "Windows 2000 Compatibility Mode". I need to update this on several hundred computers, and was planning on using Group Policy to run a VBscript on login to change the properties on a particular .exe file so...
  18. Sharpharp

    How to check if any USB devices connected on Logout??

    Great idea, i like the pop up box, and the drive tray stayed out slightly longer. Ok, one final final final query :-) This is just for added entertainment value. I have added a script which uses the system motherboard internal speaker to "Beep" Alert the user if they get up to leave without...
  19. Sharpharp

    How to check if any USB devices connected on Logout??

    Mark, Tried that, and the script does indeed eject a DVD, however the tray closes as soon as it as opened fully, without any pause. I've tried altering the sleep time, but no joy.. Sharpy

Part and Inventory Search

Back
Top