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!

Search results for query: *

  1. Briandr

    comparing installed version with downloaded MSI version

    Let me start with the top portion of the code that deals with the registry. It does return the version installed correctly via the echo command. The bottom portion of the code that deals with querying the MSI file that too confirms the version that was downloaded with the msg box command. If...
  2. 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...
  3. 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...
  4. 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...
  5. Briandr

    add domain group to local admin group

    Yes, found script online and tweaked it to fit the need. The fact your not familiar with KACE only speaks to the fact it is not a enterprise product. I hope you never have to use it. No offense to the KACE users that love it, but heck Dell themselves use MS SCCM. What does say about the almight...
  6. 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...
  7. 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...
  8. 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...
  9. Briandr

    help with script

    Thanks
  10. Briandr

    help with script

    I am not sure what the oShellLink was in reference to. I am modifying a script by a prior person. This new revision works, no errors but it does not place the shortcut in the correct folder It should be under Programs\Microsoft Office\Microsoft Office 2010 Tools. The shortcut appears under...
  11. Briandr

    help with script

    This is what I have now: Set FS = CreateObject("Scripting.FileSystemObject") SM = ("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office 2010 Tools\") oShellLink.TargetPath = "C:\Program Files (x86)\Snapshot Viewer\SNAPVIEW.EXE" oShellLink.WorkingDirectory =...
  12. Briandr

    help with script

    Hi, I went back and re-worked this, but I still don't think it is working correctly. The folder I want removed is not being removed from the Windows 7 start menu and the new shortcut is not being created. OON ERROR RESUME NEXT DIM path, fso, WshShell, oShellLink, icon 'Set the File system...
  13. 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...
  14. 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 =...
  15. 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...
  16. Briandr

    Pin to W7 start menu

    Hi, Well I kinda of got what I am after, but now in addition to pinning I need to unpin from start menu. The code to pin works great (no errors), but I can not unpin IE Const CSIDL_COMMON_PROGRAMS = &H17 Const CSIDL_PROGRAMS = &H2 Const CSIDL_STARTMENU = &HB Dim objShell, objFSO Dim...
  17. Briandr

    Disables the File Sharing Wizard in windows 7

    Hi, Maybe the next time the website gets updated there will be a feature to edit posts would be nice. So the vbscript with the lines in red removed I am placing in: c:\users\default\appdata\Roaming\Microsoft\Windows\Start Menu\Programs\Start Up folder That should work in the interm as the...
  18. Briandr

    Disables the File Sharing Wizard in windows 7

    Sorry for the repeated postings. I am not trying to spam the board. I wish I could figure out how to edit my post. The stuff in red I should not need or am I wrong?
  19. Briandr

    Disables the File Sharing Wizard in windows 7

    Hi Again, Option ExplicitDim objShell, FileExt, SharWiz, CheckBox, strModify, strDelete, objDesktop FileExt = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt" SharWiz = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\SharingWizardOn" CheckBox=...
  20. Briandr

    Disables the File Sharing Wizard in windows 7

    Hi, Thanks for the link. Did not come across that when searching through google. So are you suggesting do this for the current user or modifying this so that it works for the default user as suggested by the poster in the other forum? I would prefer to this for the default user and let this run...

Part and Inventory Search

Back
Top