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...
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...
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...
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...
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...
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...
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...
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...
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...
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 =...
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...
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...
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 =...
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...
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...
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...
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?
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.