Questions tagged [vbscript]

VBScript is a general-purpose scripting language developed by Microsoft that is modeled on Visual Basic. It is commonly used for Windows system administration. Some applications may use it as an internal scripting language allowing application automation.

217 questions
0
votes
1 answer

VBS script to check the service and its status

I have to check the service in windows machines and if the service does not exists or is in stopped state then the machine should prompt a message and automatically restart after a certain period of time. I have tried the below one but its not…
0
votes
1 answer

VBS Scripting - Access LDAP User object with samAccountName

I am trying to write a VBScript that meets 2 requirements: It unlocks a user's account. It can do so and reference the user using the samAccountName. #1 works. However, the below script I have gotten working only references the user with their…
dthree
  • 367
  • 1
  • 8
  • 26
0
votes
1 answer

Alternative to WMI for querying shared printers

I have an environment with several hundred computers. I am trying to write vBscript that runs and adds the appropriate printer. The printer names can be determined using clues about the computer name. My script (a little dirty due to debugging)…
0
votes
0 answers

Scripting for bulk NTFS permission xcacls.vbs vs PowerShell

I have a batch file with about 1000 lines using xcacls.vbs for customizing NTFS permissions for complex folder structure (removes of grants, removes of inheritance, then grants plus some explicit denies) - it works but very slow. I'f I rewrite this…
Mikhail
  • 1,295
  • 3
  • 19
  • 35
0
votes
1 answer

Disable "Windows Firewall with Advanced Security" for all profiles(Domain,Public,Standard) in local GP using script help! Windows 7 Clients

We need Windows7 with windows firewall to be turned off , so the GOLD image has windows firewall turned off for all profiles(Domain,Public,Standard) and Windows Service disabled No the same GOLD image deployed with MDT (Apply local GPO) has enabled…
0
votes
1 answer

Transfer files without destination access

HI All, I have a issue where I want to create a script (VB or Batch file) that when a user runs the script it will copy files from Folder1 to Folder2. Here's the rub. I don't want the users to have access to Folder2, I need them to run the scipt so…
0
votes
1 answer

Silently uninstall using msiexec without closing explorer.exe

I am trying to use the msi uninstaller to uninstall inventor 2011 but doing it silently causes explorer to close and not restart. I have a VB script from Autodesk that will work however it is not silent even after modifying it appropriately. I…
user188552
  • 1
  • 1
  • 2
0
votes
1 answer

How to prevent schtasks on Windows 7 from showing the command prompt after executing a task?

I am trying to get a scheduled task on Windows 7 to execute once a minute, using schtasks and a batch file. My .bat batch file is: @ECHO OFF wscript "c:\http.vbs" The .vbs script si a simple one, it performs a basic HTTP request: Function…
0
votes
2 answers

VB script + run CMD and display network address by using SendKeys

I use the following VB script ( example ) , to open CMD window and run ipconfig on my WIN XP CMD window was opened but from some reason WshShell.SendKeys not send the ipconfig on CMD window please advice what chuld be the reasons that…
yael
  • 2,433
  • 5
  • 31
  • 43
0
votes
3 answers

read an unknown directories name + copy to it

I would appreciate some help please. I am trying to copy two files "test1.txt" and "test2.txt" into an unknown directory, e.g. into the directory "%USERNAME%\Documents\test\04pql7hw.example" The first section of the directory name is a randomized…
Alex
0
votes
1 answer

Windows server 2008 R2 error running vbscript from Registry at startup

I have a simple vbscript which runs an Exe program both vbscript and exe program are in the same folder c:\xxx, i want this script to run every time the machine restarts as we have 40 servers and restarting manually is not feasible. I have added a…
0
votes
1 answer

Trying to automate server tasks, stuck on gathering critical update information from WSUS

I asked this question at Stack Overflow but they said I would have better luck here. I am using VBScript to automate a lot of server tasks, I'm simply checking to make sure the server build team did their job before the server actually gets…
Envin
  • 101
0
votes
0 answers

Group Policy Email Signature Script

I have a VBS script that builds an Outlook Email signature and saves it to the user's machine. I want this to be called each time the user logs in, using group policy, but so far I've had no luck. The script is as follows: Set oShell =…
0
votes
1 answer

Export hardware specifications to a spreadsheet for Windows Server

I have a bunch of servers : Windows 2003 and 2008. I just wanted to export these hardware specs to a spreadsheet: cpus : num processors, clock speed, etc total hard disk space total used disk space computer model I started writing a script to do…
James
  • 157
  • 3
  • 14
0
votes
1 answer

Script to resolve GUID to String in Active Directory

I am trying to understand the output of the following VB script that resolves a GUID to a string in active directory: http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B325649 This article demonstrates how to convert the hexadecimal string…
user7980
  • 145
  • 1
  • 5