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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Sharpharp

  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?

Part and Inventory Search

Back
Top