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
2
votes
2 answers

printer assignments for windows xp workstations within an active directory environment

I'm using the following script to handle removing any old networked printers from machines and then assigning the propper ones and making one of them the default. This script is assigned to the OU the workstations reside in and uses group policy…
2
votes
1 answer

Remote installing an msi on citrix servers using WMI

OK, I'm a C# programmer that is trying to streamline the deployment of a custom windows form app I inherited and built an installer for with WiX (this app will need to be reinstalled regularly as I'm making changes to it). I'm not really used to…
capn
  • 123
  • 1
  • 5
2
votes
2 answers

How do I fix "No usable signing certificates are available" in VBA?

We have a VBA script in Outlook that generates a popup when sending external emails. Apparently the script's signature expired over the weekend. The person who signed it is no longer here. I see the certificate in the CA on our DC but no option…
naps1saps
  • 177
  • 3
  • 13
1
vote
1 answer

Using Vbscript/PowerShell How to check if an AD user account has permissions to modify AD group membership?

I have a custom Operating System deployment solution (OSD Upgrade) which as part of the process has to first modify a few associated AD group memberships using the user account of the person who triggers the OSD. I need to programmatically check…
Steve
  • 111
  • 1
1
vote
2 answers

How to find vbscripts running on Windows Servers

This is a question for a managed services provider managing thousands of windows 2012-2016 servers. The August 2019 Microsoft patch purports to break many (all?) VB scripts. I've got the ability to run wmi and/or ansible commands against these…
Peter Turner
  • 2,178
  • 9
  • 33
  • 45
1
vote
6 answers

Standardising on a single Windows Scripting Language

I wasn't quite sure whether this would be better on StackOverflow or not, feel free to move it if you think it's more appropriate there. Anyway on to the question... The Situation We currently have a mish-mash of VBScript, DOS batch files and a…
David Hayes
  • 442
  • 4
  • 12
1
vote
1 answer

A positional parameter cannot be found that accepts argument 'WScript.CreateObject'

Trying to execute: Set objWshShell = CreateObject("WScript.Shell") Getting error: [![PS C:\Windows\system32> Set objWshShell = WScript.CreateObject("WScript.Shell") Set-Variable : A positional parameter cannot be found that accepts argument…
1
vote
1 answer

FTP upload vb script : files are not overwriting

I am passing value as 16 but its not working for me, my files are not overwriting and even getting popup also, Is there any work around ? I checked with as 20 value also but not working. Const copyType = 16 strFolderPath = "D:\sample" Set objFSO =…
Raghav
  • 11
  • 2
1
vote
1 answer

Add printer VBS Script SWbemObjectEx Access denied

The script runs fine when run as admin on the local computer, but when deployed via GPO as a startup script gets 'access denied' from SWbemObjectEx.put_. Here's the whole script: strComputer = "." Set objWMIService = GetObject("winmgmts:" _ &…
sdjuan
  • 221
  • 2
  • 16
1
vote
3 answers

Script to list current user's mapped network drives

I have a Windows XP/ Server 2003 environment here users have mapped different network drives themselves using arbitrary drive letters. Some of these users do not know how to tell the true UNC path of these drives, and I would like to be able to run…
Dmart
  • 304
  • 1
  • 3
  • 10
1
vote
3 answers

How to get a list of Domain Admin users from a windows 2003 DC

I'm trying to get a list of domain admin users from my Windows Server 2003 domain controller. I am unable to obtain it with powershell because the ActiveDirectory module is not installed. I need to obtain it from CMD. I have tried net group /domain…
DSKyo
  • 153
  • 3
  • 6
  • 15
1
vote
1 answer

VBScript: Get logged on windows user instead of executing one

I need to perform a small inventory in our network. So I wrote a VBScript which I wanted to deploy with our deployment system. My problem now is: The script is executed in the context of the AD system user. So this lines: Set objNetwork =…
hardmod
  • 431
  • 1
  • 4
  • 9
1
vote
0 answers

Microsoft VBScript Runtime error: Permission denied code 800A0046

I am testing a VBScript and it was working fine earlier. Wanted to try with a different file input, but all of a sudden I'm getting Microsoft VBScript Runtime error: Permission denied code 800A0046. The script was working just fine a few hours ago?…
1
vote
1 answer

SCCM+ MS Office 2013 deployment

This is a 2 part question. Issue: I've created a script that executes the following scripts (in order) Officescrub10.vbs(created by microsoft), LyncRemove2010.vbs(i created), and Office2013Install.vbs script(silent install of 2013 via Microsoft).…
1
vote
1 answer

Run Bat file in Administrator Mode in Windows Server 2008

runas.exe /profile /user:administrator "C:\temp\SQLSP3.bat" will run the SQLSP3.bat file in Administrative Prompt and it is asking Adminstrator password in Windows Server 2008. SQLSP3.bat file has following code C:\Temp\SQLSP3.exe /qs…