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...
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...
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,
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...
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 =...
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
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...
Hi,
How can I get a second line return using VbCrLf?
varRestart = oShell.Popup ("Test." & VbCrLf & "Test2", 3600, sTitle, vbExclamation+vbYesNo+vbSystemModal)
Thanks
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,
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= "...
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...
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.
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...
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...
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.