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

How to list the top level folders of a drive using VBScript?

I'm looking for VBScript code that will list the top level folders of the D: drive and not the subfolders. I use the following WMI query so far but it gives me all folders and goes down to many levels. Also seems to just stop for a reason I have…
lewisc
  • 1
  • 1
  • 2
0
votes
2 answers

VBScript: Linking existing GPO to new OU

I am trying to link an existing to a new OU (that was just created), using the resources found here: http://support.microsoft.com/kb/248392 and here:…
HannesFostie
  • 845
  • 14
  • 29
0
votes
1 answer

hamachi intranet connection

I have a intranet website shared on my local network which displays tables from a sql database. I want to expand this to certain people who are not on my local network. Is it to use Hamachi to enable them to connect to my website? If not what is…
kurupt89
  • 117
  • 4
0
votes
1 answer

IIS 7 and dynamic 404 error

I have set a 404.asp page on my iis 7 yesterday and on this page beside some chacking i had at the end if anything was false i had: response.status "404 Not Found" response.AddHeader "location", domain & "/notfound" it worked for an hour and then…
Y.G.J
  • 317
  • 5
  • 14
0
votes
3 answers

logon script -> if mapped drive's unc = this then disconnect and remap, otherwise do nothing

I'm in the process of moving file servers. Once completed, I will have to change the UNC path that the mapped drive letters used network wide to point to the new machine. I want to handle the change through a VBS logon script that I'll attach to…
mikepreble
  • 1
  • 1
  • 1
0
votes
1 answer

VB Scripting for counting the client connection

I want to Count the number of client connection connected to a shared folder using vbscript. I can use any service but not WMIservice.
0
votes
1 answer

vbscript and windows script host error

i tried to runn a vbscript, and i get this message in the picture. how do i fix it?
Smith
  • 133
  • 5
0
votes
2 answers

vbscript and secure connection

I don't know if anyone has been able to connect to a secure mssql server over the internet with vbscript using the adodb object is there pilicy that restrict script connecting to secure servers?
Smith
  • 133
  • 5
0
votes
1 answer

Discover network drives users have manually mapped via remote script

I am trying to write a script that will pull computer names from a text file, then query the remote registrys for any subkeys under hkey_users\SID\network. Then translate the SIDs into the username and output the results to a text file named after…
0
votes
1 answer

2 VB Scripts one to remove Default Gateway and one to add a Default Gateway

I have a client with a bunch of children using about 30 machines on a regular basis. All machines that the children user are set with Static IP Addresses. The machines that the kids use, I would like to be able to run a script that will remove the…
Tom
  • 745
  • 3
  • 9
0
votes
1 answer

Setting inheritance on folder structure with iCACLS

New to this forum. I am trying to finish up a script that creates a folder structure and assigns permissions via icacls. I have the script working correctly except for one thing. When setting permissions with iCacls the folders have inheriting…
Dan
  • 1
  • 1
0
votes
1 answer

Programmatically assigning an existing ssl cert to a website in iis6 via powershell or vbscript

I have the following powershell script that creates a new website in IIS6: https://github.com/dagda1/iis6/blob/master/create-site.ps1 Does anyone know how I can assign an existing ssl cert to the website? I know I can set the port number using…
dagda1
  • 247
  • 3
  • 7
  • 19
0
votes
2 answers

admin right to IIS7 for user using group policy or script?

I want to provide administrator rights to user account under windows 7 just for IIS7 and user shouldn't be able to manage any other application. I have create group policy rules using applocker for windows7 where user can manage all the installed…
Mit Naik
  • 344
  • 2
  • 11
0
votes
4 answers

Writing all running services to a .csv file with WS2003

I want to list all the current running services and output it to a .csv file. Does anyone know how to do this?
Kraffs
  • 132
  • 7
0
votes
1 answer

Is there a way to enumerate Public Folder permissions on Exchange 2003?

My organisation is about to start the process of migrating from Exchange 2003 to 2010. However we have a large number of public folders and in order to maintain functionality for users need to somehow enumerate the permissions of each public folder…
chunkyb2002
  • 688
  • 3
  • 9