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.
Questions tagged [vbscript]
217 questions
0
votes
3 answers
How to get all the logon time of a particular user account
I know to use event viewer to check who logged into the system and when. But I am trying to figure out for a particular local user account, say administrator - what all are the login date and time for this particular user in that machine. I use this…

Vysakh
- 13
- 4
0
votes
1 answer
psexec cannot run .vbs local or unc
I am trying to run a .vbscript remotely via psexec. Even with switches like -u -p -s -c, I am getting errors. Here is what I've tried:
1.)
psexec -u user@domain -p password -s \\computer "\\uncpath\file.vbs"
"access denied"
I have seen that to…

Benjamin Jones
- 326
- 1
- 9
- 23
0
votes
1 answer
Finding list of fonts for each PC
I am trying to find the best way to find a list of clearview fonts on each PC on our domain. Questions:
1.) Should I use SCCM & how? I've create a Query but I am getting nothing right now. I was told that SCCM does not inventory fonts. I created a…

Benjamin Jones
- 326
- 1
- 9
- 23
0
votes
1 answer
Inventory VBScript doesn't load processor or RAM attributes
I've been working on a VBscript inspired by these posts:
http://deployhappiness.com/series/creating-an-inventory-with-active-directory/
and I've found a decent amount of success in my test machines with the Manufacturer, Model Series, MTM, and…

nerdythor
- 1
- 4
0
votes
1 answer
VBScript permission denied moving a folder
Help please. this is driving me nuts.
Running a CMD prompt (As Administrator) on a Win2K3 AD server
I have a source folder on a local disk (C:\test)
I have a dest folder on a network share (\\device\share)
When I do a ojbFS.MoveFolder "C:\Test",…

Ian Chilvers
- 437
- 2
- 10
- 19
0
votes
0 answers
Run vbscript on server as scheduled task
I've written two scripts in vbs, one iterates through a bunch (+10000) of folders on our server and creates a shortcut in a specific folder to any folder that has a specific name. ('ax' followed by the number and name of a project). This way we can…

Teebs
- 123
- 5
0
votes
1 answer
set login script flag for vbs 'All Users' script so it doesn't run again
We have a vbs All Users script that creates a bunch of printers (approximately 25 printers) when a user logs on. It takes a minute or two to run so we don't want it to run again if not necessary. How can I set some sort of flag so that this script…

mindmischief
- 172
- 2
- 2
- 9
0
votes
1 answer
VBScript- Input DisplayName Output AD Username
If I had a txt file with a bunch of names:
Dan Smith
Jim Bob
Ryan Jones
etc,etc
using a VBscript could I convert the displaynames to AD Usernames?
If Powershell is only options, could you please let me know how I could format my text file for it to…

Benjamin Jones
- 326
- 1
- 9
- 23
0
votes
1 answer
Windows Registry to VBS
I have this registery (.reg) file that I use to modify screensaver properties:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control…

Maytham Fahmi
- 111
- 1
- 5
0
votes
2 answers
VBScript that wait for DHCP answers before execution
I am writing some script that automatically executes during startup of computer (XP), the script is actually mapping a network drive to windows. The problem I have is that the DHCP in the network is not responding fast enough and that the script…

xandy
- 105
- 1
- 1
- 4
0
votes
1 answer
Calling an ASP function from an external ASP file
For some reason, I can include an ASP file with the following code:
But, I have some functions in that file, and I can't call them into my main file. Can someone help? I'm calling them like this:
<%…

willbeeler
- 235
- 3
- 9
0
votes
1 answer
Scheduled Task fails to stop
I have a Scheduled Task on a Windows (64-bit) 2008 R12 (SP1) server.
It’s a housekeeping task and I was expecting its first run to take some time catching up on backlog of actions , so set what I thought were appropriate “Stop the task if Runs…

SimonTi
- 1
- 1
0
votes
1 answer
Networkmapping script (VBS) Vista doesn't work, XP does
I've got a weird problem, (like always :p )
Okay: Situation: Windows 2003 domain with XP clients. With a GPO I'm running a VBS script on login to map a few drives. This works great on XP, but not on Vista. If I manually run the script after the…

The_cobra666
- 167
- 1
- 3
- 12
0
votes
1 answer
Script to set default printer for specific user
We have multiple printers installed for our labs. We have a special testing account in AD that can't print to the room the tests are being taken in to protect personal information.
I need a logon script that will set a different printer as the…

user318320
- 33
- 1
- 6
0
votes
1 answer
VBscript - returning the path & size of a file
I would like to add a piece of code to SYDI that would return me the location & size of a specific file.
For example, a server "X" has a DB file(s) & path like this: "C:\XYZ\Database\randomfilename.ext" and which is lets say 45 GB.
The…

user2629636
- 774
- 5
- 19
- 40