Home All Groups Group Topic Archive Search About



Scripting for Windows Server

microsoft.public.windows.server.scripting
Score Syntax of Email Recipient File For Postie Command
basis_consultant@hotmail.com - 16 Dec 2006 4:08 AM - 2 messages
Hi, We have postie working as a utility to send emails, including attachments, etc.. However, I tried using the "tofile" option with a recipient text file, but I was unable to get that to work. (I can get the "to" option to ...
Score Computer Rename Script in Vista
LT - 15 Dec 2006 11:47 PM - 4 messages
We have been using the standar WMI script to rename computers in XP for a while but it fails in vista.  I recieve an Error #5 which is Access Denied.  Anyone have an idea why I am getting denied and how to get around it?  I am ...
Score Add AD group to local Admin via user interaction
Paul O - 15 Dec 2006 9:51 PM - 3 messages
Thsi script will do what I want. But I want to add functionality to it via an HTA and the Inputbox function. [link] ******************************* strComputer = "atl-ws-01" Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators,group") ...
Score List User in a Groups
poboy_n.o_style - 15 Dec 2006 9:06 PM - 3 messages
I got most of this to work but it will only enumeratrates a few of them before it errors out. It does create the Excel file with at list of users but It gives some error:Group.vbs(25, 1) Active Directory: The directory property ...
Score check if computer exists in AD
Hans - 15 Dec 2006 2:40 PM - 3 messages
hi, I am quite new to scripting so I am asking all you VBS gurus out there for help :) I'm looking for a way to found out wether a computer exists in AD or not. When running the script, I prompt for a computer-name ...
Score Enumerating Subfolders when Folder name contains apostrophe
JeffLima - 14 Dec 2006 8:15 PM - 5 messages
I cannot seem to solve this. MSDN scripting guide shows this code to enumerate subfolders: strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colSubfolders = objWMIService.ExecQuery _ ("ASSOCIATORS OF {Win32_Directory.Name='c:\scripts'} " _ ...
Score VBS Equivalent to %userprofile% (User Desktop)
Andy - 13 Dec 2006 7:28 PM - 4 messages
Im new to VBS Scripting, and I was assigned the task of converting our batch files into VBSScript since we went to Active Directory 6 months ago. I can map drives and get a user and group membership (I think). But ...
Score instr stops after the first search
Joseph - 13 Dec 2006 6:20 PM - 3 messages
Hi, I'm using instr to do a search and replace the words in a text file. Which works great, however, there are multiple words on same line, instr stops searching for another in that line, instead moves on to next line. ...
Score Changing the login script for all user objects in OU
ezarems70 - 13 Dec 2006 1:09 PM - 4 messages
would like to see a simple multiloop script that can be altered to perform a task on all user objects in a given OU. simply put would like to use the script once alter3ed and tested to create a script that I can run against all ...
Score dns scripting
IT Staff - 13 Dec 2006 7:59 AM - 2 messages
Can someone point me the direction to do this ? scenario a) i opened up dnsmgmt.msc and point to my dns server. b) then i click forward looup zone and it display all Host(A) records. c) i wanted to delete certain host or ip address. Currently i m doing a GUI ...
Score WMI script to change 1 octet in the IP address field
newbie - 12 Dec 2006 9:58 PM - 2 messages
We have about 50 machines that are moving from one part of the network to another but keeping their last octet the same. THe subnet mask stays the same.  I can change their gateway address fine. Here is an example. ...
Score VBS: Finding if user explicitly logs on with cached credentials
Matt Brown (brand, branded and/or bigflavor) - 12 Dec 2006 7:58 PM - 2 messages
Hello, I would like to know how to determine if a user has logged on with cached credentials. Testing has shown that the %logonserver% does not change when a user is using cached credentials (meaning checking %logonserver% against %hostname% will not work). ...
Score checking for a group membership
James - 12 Dec 2006 7:45 PM - 3 messages
I want to exclude a set of servers from running a login script. That is, if a user (system admin) logs into one of these servers, the login script will not run. Is there a way to do this in batch file (not vbscript) by checking the ...
Score Stopping a service script
craigbowens - 12 Dec 2006 3:06 PM - 4 messages
I'm new to scripting and need the script below to run for several servers from a list.  How do I go about doing that? strComputer = "." Set objWMIService = GetObject("winmgmts:" _     & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") ...
Score Read Home Folder
brian - 12 Dec 2006 1:42 PM - 2 messages
Does anyone have any code for something that will query AD for a users Home Folder, then map according to what is specified there? I map users home drives from the AD profile tab. However when they VPN in the script doesn't run. I have a shortcut for them to run the ...
Score Registry Change to 6 services_denied
IT Jeff - 12 Dec 2006 1:12 PM - 5 messages
I've written a logoff script to import a few registry changes on every machine in our AD2000 network. Low-Level users are prohibited from making these changes. Win2K gives errors, WinXP doesn't give errors, but it doesn't ...
Score i want to add a promt to a batch command.
Seth - 12 Dec 2006 10:16 AM - 5 messages
this is the command: subinacl /noverbose /subdirectories C:\*.* /accountmigration=OldDomain\OldUser=NewDomain\NewUser I need to run this on a lot of machine. But i don't want to edit the OldDomain\OldUser and NewDomain\NewUser part eveytime.. When i run the batch script on command prompt c:>Migrate.cmd I want the ...
Score Problem with folder-options > file types and bat-files
d4 - 11 Dec 2006 10:01 AM - 4 messages
Dear all, I changed the folger options for bat files and got problems with it. Unfortunately, I somehow cannot go back to the default behaviour.  I would appreciate some advice. What did I do? (sorry, my Windows is German, so maybe the names are ...
Score Add ip Address
Avi G - 11 Dec 2006 6:08 AM - 3 messages
Hi, i'm looking for script that add ip address to my machine that already configured with one, i need additional IP to the same Network card. How i do it and how i delete the ip that was assigned after? ...
Score Please Help !! VBscript convert my image/music file into VBscript file
chunyu19 - 10 Dec 2006 7:30 AM - 2 messages
Dear all. I am not sure this is the RIGHT forum, but I hardly need help from all people who is familiar with VBscript. I received a email from my friend with attached with a *.vbs file, which is a image he claimed. After I download the file, the outlook ...
Next »