Home All Groups Group Topic Archive Search About



Scripting for Windows Server

microsoft.public.windows.server.scripting
Score Add AD User in Local Group
Vladimir - 2 Jun 2006 4:26 PM - 6 messages
Hi, I won't add a Active Direcory user to a computer local group  (WS - Carolina_xp, local group - Administrator) Why my script isn't work? Please, explain me my mistakes. Thank you. Dim strComputer strComputer = "Carolina_xp" Dim objGroup, objUser ...
Score Map Drives
Craig - 2 Jun 2006 3:03 PM - 4 messages
Hi I'm using the below script through Group Policy to map drives for PCs and users.  I'd like it to include a test for whether the drive is currently mapped, if it's mapped correctly then left, but if it's mapped ...
Score how do I set a blank password
Bill Gowan - 2 Jun 2006 12:24 AM - 2 messages
How can I set a blank password for a user, or an entire OU, in a Windows 2003 Active Directory domain that requires a minimum 5 character password? ...
Score Scripting and fouled up permissions
Bob - 2 Jun 2006 12:01 AM - 3 messages
I ran a script which moved 800 users to a number of different OUs.  The script read an excel file that contained the user's name and the distination OU.  The script firstly found the user object and the the OU object and then ...
Score [PS] RSS output got truncated
matros - 1 Jun 2006 5:29 PM - 11 messages
I'm trying download RSS feed and save it to file. But text get truncated at the width of the Screen Buffer Size. How can I get full text redirected to the file? PS C:\> ([xml](new-object net.webclient).DownloadString('[link] ...
Score CMD Just File Name?
bradwiseathome - 1 Jun 2006 4:26 PM - 3 messages
I have a long path to a file like c:\windows\system32\myfile.dll and I want to just get "myfile" so I can do a rename. I have played with different file length calculation tricks and etc and have come up ...
Score Add User in Local Group
Thierry - 1 Jun 2006 12:18 PM - 5 messages
Hi, I have this script: strComputer = "." Set objGroup = GetObject("WinNT://" & strComputer & "/Administrateurs,group") Set objUser = GetObject("WinNT://" & strComputer & "/NomUser,user") objGroup.Add(objUser.ADsPath) I obtain error message : Erreur : Impossible d'ajouter ou de supprimer un membre du groupe local car ...
Score Creating groups in child OUs
Shashi - 1 Jun 2006 8:25 AM - 7 messages
Hallo, Here I am trying to crate a group in child ou but I get error"There is no such object on the server". Can anyone help me out. Set objOU = GetObject("LDAP://ou=R&D,ou=users,ou=Local,dc=NA,dc=fabrikam,dc=com") ...
Score copying folders to new loc and renaming folder to date
Randall - 31 May 2006 10:12 PM - 2 messages
Hi all, I want to copy a folder from one location to another network location and rename the folder to the date it was copied. I know as much about scripting as I know about quantum physics (little to nothing!) so any help would be ...
Score Script / Utility to change Gateway in IP settings on many computers?
Alex - 31 May 2006 6:55 PM - 11 messages
Hi I have to change the default gateway on about 60 Windows (200, 2003, XP) machines. Is there a command line utility or another way to do it with a script? Another question: what about mass-changing NIC settings (speed, ...
Score Powershell and writing functions
Sanjeev - 31 May 2006 5:55 PM - 2 messages
I've googled and have not been able to find how to properly write functions that return multiple variables.  I've seen examples of functions that return one variable but not mutliple variables. In VBScript, you could use 'byref' to return variables but how do you do ...
Score FOR from CMD running on same CMD for Expansion?
bradwiseathome - 31 May 2006 4:06 PM - 6 messages
I have a CMD with sections in it like this:       @rem blahblahblah       @rem blahblahblah       @rem blahblahblah       @rem blahblahblah At the top of the CMD, I want the script to read itself for each part ...
Score Problems with getting groupmembers from ADS
Thomas Schuetz - 31 May 2006 1:53 PM - 4 messages
Hi! I tried to get the members of a domaing-roup with the script shown on [link] ------------------------------------------------------------- On Error Resume Next Set objGroup = GetObject _    ("LDAP://cn=Scientists,ou=R&D,dc=NA,dc=fabrikam,dc=com") ...
Score Perl
Roberto Vicen - 31 May 2006 9:11 AM - 2 messages
Hi, I'm new user in Perl. How can I execute perl in Windows XP/2003??? Thanks ...
Score Scheduled Tasks
Carlos Felipe França da Fonseca - 30 May 2006 11:23 PM - 2 messages
Does anybody know how to get all scheduled tasks using VBScript? I've tried the one published in Script Center but it doesn't work. Thanks! Felipe ...
Score Can't set environment variable
Singee - 30 May 2006 8:24 PM - 2 messages
I am working with windows visual sourcesafe from the command line. In order to get it to work i need to point the SSDIR environment variable to the path of SRCSAFE.ini In the old shell i would type (as the msdn page said): set ssdir=U:\TDS ...
Score Win Explorer - Folder Options plus...
Tcs - 30 May 2006 4:24 PM - 2 messages
Windows Explorer is really giving me a PITA.  For no apparent reason, it will NOT remember my settings, such as "Detail", vs "Icons", etc.  I've tried bumping some number (can't remember exactly what at this moment) that was supposed to tell XP to remember more(?) folders to keep track of. (For ...
Score Telephone Number extract utility
Piper - 30 May 2006 10:34 AM - 4 messages
Hi, Total novice when it comes to scripting. Would like to have a utility where an admin type user can extract all users telephone numbers to a csv or other file type. Any assistance greatly appreciated. ...
Score Get computer objects location attribute
Kasper K - 30 May 2006 9:09 AM - 2 messages
I'm trying to set the default printer on the clients in my network. All the clients computer objects in AD are provided with a location in the location field. But when I run the script (.vbs) I get this error: "The directory ...
Score help with this script
Avi G - 29 May 2006 8:22 PM - 2 messages
Hi, i've this script On Error Resume Next Set objNetwork = CreateObject("Wscript.Network") strLocalComputer = objNetwork.ComputerName strComputer = Wscript.Arguments.Item(0) If strComputer = "" then Wscript.echo "You didn't specified any machine to connect to..."    Wscript.quit ...
Score bring a cluster resource online
Don Wilwol - 28 May 2006 7:12 PM - 5 messages
I need to find the vbscript code to bring a cluster fileshare resource online. Does anybody have the code or know where i might find it? ...
Next »