Description:
Microsoft scripting newsgroup.
|
|
|
How to convert to unicode in ADSI - "mail" attribute?
|
| |
Hi all, I made a vbs to add an extra e-maill address to a distribution list group. The e-mail address should be <group name>@dnv.com. As we are a Norwegian company, the group name sometimes contains Norwegian character such as "Ø". When I look into ADSI, the string with "Ø" do updates in "mail" attribute.... more »
|
|
Find a unused drive letter
|
| |
Hello I've got a to use the subst cmd on a PC, and when the script is run I won't know what drives are mapped at that time, so I'd like to be able to find a letter that isn't mapped, then I'll just use that in the subst cmd. My question, is how do i find a drive letter that isn't mapped?
|
|
vbscript start excel run macro not working
|
| |
I am trying to run a vbscript that opens excel then executes a macro. I have code that works but I get an error saying "The macro "sort" can not be found. I found that if you open excel by the script it does not load any of the macros. I did some searching and found that by opening excel via automation does not load all addins and startup files to load... more »
|
|
Installing a printer using WSH
|
| |
Hello, I am using a script to install printers but I get a strange error message Set WshNetwork = WScript.CreateObject("WScript. Network") PrinterPath = "\\server1\sharedName_hp1" WshNetwork.AddWindowsPrinterCo nnection PrinterPath WshNetwork.SetDefaultPrinter PrinterPath When the user logs on for the the first time the receive an error... more »
|
|
Running exchange powershell command from vbscript
|
| |
Hi! :) I need to run one powershell command from vbscript. I have no problem running a command like Get-Command but what I need to run is an Exchange command (Set-Mailbox). How can I do this? I tried: Dim objShell : Set objShell = CreateObject("Wscript.Shell") objShell.Run("C:\Windows\Syste m32\WindowsPowerShell\v1.0\pow ershell.exe -noexit... more »
|
|
Group membership query fails because of special character
|
| |
Hello All. Consider the following script: (watch for word wrap) strComputer = "atl-ws-01" strGroup = "Administrators" Set objGroup = GetObject("WinNT://" & strComputer & "/" & strGroup & ",group") For Each objUser in objGroup.Members Wscript.Echo objUser.Name Next This script works fine; except if there's a dollar sign ($) in the... more »
|
|
Type Mismatch Error After Converting vbs to wsf
|
| |
Have a fairly simple vbscript application that was originally coded in a single .vbs file. Includes one function (MJLogTypeIdFromAbbr) that I wanted to move to a common "library" so that I could make it available for use in other vbscript apps. So, I split that function out into a separate .vbs file, and created a wsf... more »
|
|
force reading csv fields as text
|
| |
I'm trying to put together a vbscript that will read a .csv file using the ADODB tools. However I'm running into an issue with IP addresses in this .csv. It looks like it is treating them as decimal numbers. So my question is, is there a sane way to force the reading of .csv fields (that are not surrounded by quotes) as string values, if you... more »
|
|
|