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 wOOdy-Soft 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: Briandr
  • Content: Threads
  • Order by date
  1. Briandr

    comparing installed version with downloaded MSI version

    Hi, I am trying to compare the currently installed Google Version via the registry with the version inside the latest one's internal MSI database. This code looks choppy and probably could stand some cleaning up. What I having trouble with is the if statement below that determines if the MSI...
  2. Briandr

    problem with setting path via objSysEnv

    Hi, Just looking for assistance with a line I am thinking is coded wrong. Probably don't need to see all of this, but setup.exe is not being found via the statement in red. Any ideas why the path is failing to be set correctly? And yes, I did verify the folder does exist. Thanks 'Define...
  3. Briandr

    question on WshShell.Runas

    Hi, I want to run an existing vbscript using different user name and password. WshShell.Runas "cmd.exe /c Net Localgroup " & Chr(34 ) & "Administrators" & Chr(34 ) & "abc\Test /add If I got this right I am specifying the local group (admins) and the domain group (abc\test), but how do I...
  4. Briandr

    add domain group to local admin group

    Hi, Can someone give this the one over? Not sure what some of you guys use for distribution. Unfortunately we use Kace (opinion on this for different time, different forum) and when this is run as a stand alone vbscript it appears to be just fine. So I am thinking this darn Kace does not have...
  5. Briandr

    run vb against all and not current users

    Hi, Can this snipet of code be adjusted to work for all users and not just current user? Const CSIDL_COMMON_PROGRAMS = &H17 Const CSIDL_PROGRAMS = &H2 Const CSIDL_STARTMENU = &HB Set objShell = CreateObject("Shell.Application") Set objFSO = CreateObject("Scripting.FileSystemObject") Set...
  6. Briandr

    script help

    Hi, This is a vbscript dealing with zip file. According to this code I found online if the outFolder does not exist, it should be created automatically. Any ideas as to what may be wrong? What I am also not sure about is where the zip file should reside so the script can find it. Here is the...
  7. Briandr

    help with script

    Option Explicit Dim FSO : Set FSO = Createobject("Scripting.FileSystemobject") Dim Shell : Set oShell = WScript.Createobject("WScript.Shell") Dim AllUsersProfile : AllUsersProfile = Shell.ExpandEnvironmentStrings("%AllUsersProfile%") Dim Target Hi, Can someone tell if this code is correct, I...
  8. Briandr

    script for clear type

    Hi, I found this code sample from another forum. The post was old (5+ years). I think this was designed for XP, but it should work with W7. Dim WsShell, Path, Key, Value, Type Set WsShell = WScript.CreateObject("Wscript.Shell") Path = "HKCU\Control Panel\Desktop\" Key = "FontSmoothing" Value =...
  9. Briandr

    system restore w/Disk Percent specified

    Hi, I found this script online for enabling windows system restore. I tried adding in some code that would set the disk percent, but it does not set correctly. I can through this script enable system restore. Const GLOBAL_INTERVAL_IN_SECONDS = 100000 Const LIFE_INTERVAL_IN_SECONDS = 8000000...
  10. Briandr

    Disables the File Sharing Wizard in windows 7

    Hi, I found this somewhere else and it disables the File Sharing Wizard in windows 7. The first time I ran it things looked good. On a second run after re-enabling the File Sharing Wizard it did not appear to work. Any thoughts on the code: Option Explicit Dim objShell, FileExt, SharWiz...
  11. Briandr

    Pin to W7 start menu

    Hi, I found this script for pinning items to the Win 7 start menu for all users. Const CSIDL_COMMON_PROGRAMS = &H17 Const CSIDL_PROGRAMS = &H2 Set objShell = CreateObject("Shell.Application") Set objAllUsersProgramsFolder = objShell.NameSpace(CSIDL_COMMON_PROGRAMS) strAllUsersProgramsPath =...
  12. Briandr

    call batch silently from vbscript

    I am having a devil of a time getting this line to call my batch silently. Any ideas? CreateObject("Wscript.Shell").Run chr(34) & "cmd.exe /c %TEMP%\AltirisCleanup\AACleanup.bat" & chr(34) & " /silent",0,true
  13. Briandr

    vb directory to use

    Hi, I am trying to extract a vbscript and batch file from an exe created with W7's Iexpress. Iexpress does not tell you the default location files are extracted to. I think its a temp directory of some kind. Problem I am having is the vb needs to know where the batch file is in order to run...
  14. Briandr

    Second line return with VbCrLf

    Hi, How can I get a second line return using VbCrLf? varRestart = oShell.Popup ("Test." & VbCrLf & "Test2", 3600, sTitle, vbExclamation+vbYesNo+vbSystemModal) Thanks
  15. Briandr

    script to allow non-admins to install printers

    Hi, Does anyone have a vbscript that would allow non-admins to install printer drivers? I know there is a GPO setting that can be changed, but I am looking to deploy this via script. Thanks,
  16. Briandr

    vbscript to set autoupdate = true for firefox

    Hi, Found this batch file and vbscript online that sets auto update = false for Firefox. Seems like it would work. Haven't tested either I would like to reverse it so it would be true and not false. Can someone tell me if the vbscript is correct :DisableFirefoxUpdate for /F "tokens=1 delims= "...
  17. Briandr

    vb to silently call batch is not working

    Hi, This one line vbscript calls a batch file to run silently. The batch file is opening a window. Can someone help. vbcommand: CreateObject("Wscript.Shell").Run "%TEMP%\AltirisCleanup\AAInstall.bat",0,True batch: If [%ERRORLEVEL%] == [0] ( echo X86 cd %systemroot%\system32 If...
  18. Briandr

    Script generate event id messages?

    Hi, I don't think this is possible, but I could be wrong. A script being run remotely and checking for a file on a hard drive, could it generate event id 4624, logon type 3 messages in event viewer logs? Thanks.
  19. Briandr

    message box vs pop up

    Hi Guys, Maybe someone answered this in reply to one of my other postings. Sorry if I asked twice, but just looking for clarification. Will a message box or pop up timeout via inactivity timer? Does it depend on the operating system? I was led to believe a message box would not timeout whereas...
  20. Briandr

    Problem with popup not appearing

    Hi, I have a vbscript with a 'Do' section that should invoke a pop up timer. This works well on XP, but on W7 x64 I am not even getting the pop up. The code short of the MSI file being different for each respective platform is exactly the same. Any ideas? Dim oShell, fso, prodir, strKeyPath...

Part and Inventory Search

Back
Top