Home All Groups Group Topic Archive Search About



Scripting for Windows Server

microsoft.public.windows.server.scripting
Score Help please.
Pluto - 10 Jun 2006 12:18 AM - 7 messages
I have to create the vb script or adsi script which will enumerate all the users in the domain which are members of the certain security groups containing the name accounting. for example: NY Accounting Group EX commity of accounting teams ...
Score [PS] convert string in uk format to datetime
Paul - 9 Jun 2006 8:42 PM - 5 messages
How can I convert a string in uk date format "23/5/2006" to a datetime object without first splitting the string and reformatting it in American date format? I want to use [datetime] "23/5/06" but this returns an error. ...
Score a script that will stop the exchange service then start it.
WSB Corey - 9 Jun 2006 5:17 PM - 3 messages
I need a script that will stop the exchange services so the nightly backup can work better then after a script that will start the exchange services agein. ...
Score [PS] Help exposing private members on object?
Nick Howell - 9 Jun 2006 4:04 PM - 6 messages
I've been working on a set of class, struct and interface definition cmdlets; so far, I have New-Class, New-Interface, New-Struct, New-Field and New-Method. The way method (and eventually property accessor) definition will go is ...
Score Script Error - What's the problem?
KWME - 8 Jun 2006 8:18 PM - 3 messages
I've got the VBS script listed below running on my Server 2003 network.  It is activated by a WMI filter on a particular group policy object.  I can't figure out what the problem is.  This script has been working for almost a ...
Score Moving multiple files
CraigM - 8 Jun 2006 10:06 AM - 4 messages
I want a script which will look into a certain folder and look at the date each file in that folder was created. Then if the file was created more than 6 months ago, i want the script to move all of the files to a folder somewhere else on the network so i can burn ...
Score Move multiple computer accounts in a txt file from one OU to another
barryleon - 8 Jun 2006 9:10 AM - 3 messages
I have a list of computers ID's that are quite random e.g IT1001 or DT1563 or PC9821. So I need a script that can automatically read a text file and move the computer accounts from the Computers container into ...
Score Paging LDAP Results
James - 7 Jun 2006 10:51 PM - 3 messages
I have this code to list the members of a group... --- Set objGroup = GetObject _      ("LDAP://CN=group,OU=groups,DC=domain,dc=com") For Each strUser In objGroup.Member          WScript.Echo strUser ...
Score Filtering an AD mmc with a script
Noventta - 7 Jun 2006 8:53 PM - 3 messages
Hi all, I want to create a custom filtering in a active directory users and computers MMC (View -> filter options -> Create custom - > customize -> advanced) based upon the groups that are "managed by" the currently logged user. ...
Score Adduser.exe from Windows Server Resouce Kit
GhostHalo - 7 Jun 2006 6:54 PM - 7 messages
I'm trying to loacate either the Windows Resource Kit or just the Adduser.exe tool from it. I'm doing some testing and I need to add a large number of users from a .csv file and I really need to get my hands on the Adduser.exe ...
Score Need login script to create registry key for domain users in HKCU
ONIQuestion - 7 Jun 2006 1:08 PM - 3 messages
I currently have a script to add a registry entry to the HKCU section of the registry.  Here is my code: $olksecroot = "HKCU\Software\Policies\Microsoft\Security\" $ret   = ExistKey("HKCU\Software\Policies\Microsoft\Security") If $ret <> 0 ...
Score How do I tell if query returned nothing?
Tcs - 7 Jun 2006 1:02 PM - 4 messages
I'm having a problem trying to determine if my WMI query has returned something or not.  Here's some of my code: ----------   Set objWMIService = _     GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _       strComputer & "\root\cimv2") ...
Score how to say to this code
Avi G - 7 Jun 2006 10:37 AM - 2 messages
if i closed this web site then do something Set objShell = WScript.CreateObject("WScript.Shell") objShell.Run "IEXPLORE.EXE [link]" If i closed "IEXPLORE.EXE [link]" Then WScript.Echo "The MSN web site is now closed" ...
Score add new printer in a network
al_m - 7 Jun 2006 7:59 AM - 2 messages
Hi, I need help, I have installed a new printer in our network of 40 computers. the driver of the printer is installed on a server. How can I write a script that install on a group of pc (I would like to specify the list of pc in the ...
Score Setpassword error
Charles.Pham - 6 Jun 2006 8:07 PM - 3 messages
Hi All.  I am trying to set the local Admin password on Windows XP Pro boxes, but am getting errors.  Here is a copy of the script: Set WshNetwork = Wscript.CreateObject("Wscript.Network") Set WshShell = Wscript.CreateObject("Wscript.Shell") ...
Score Is it possible to run a wsh-script as a service?
Carsten Krueger - 6 Jun 2006 5:45 PM - 4 messages
Hi, is it possible to run a wsh-script as a service? greetings Carsten ...
Score Registry filling up in Kiosk PC
Tyson - 6 Jun 2006 3:25 PM - 3 messages
I have been tasked with finding a solution to an issue which has been giving us trouble with our Win2000 Kiosk PCs. These PCs are hooking into the company network and allow users to log in with their own accounts to browse the ...
Score Is there a way to poll the status of scheduled tasks ?
dmittleider - 6 Jun 2006 1:21 PM - 2 messages
Is there some Windows scripting language I could possibly use to query a scheduled task to see if it's still running? My company uses scheduled tasks to kick off these batch scripts that moves some data.  It should run for about 45 minutes.  If I open the ...
Score adding tcp/ip printer ports and installing printers on windows 200
thebucs - 6 Jun 2006 12:25 PM - 5 messages
i have a question, i am attempting to add about 125 tcp/ip printer ports to 16 different servers, and install 125 printers on these servers. i see that there is a script to do this in xp and 2003 server per ...
Score Restart Pending
Brad McDonald - 5 Jun 2006 11:47 PM - 3 messages
Hello, Has anyone come up with a WMI query that determines if a system has a pending restart waiting in the wings, following Windows Update? I know the CreateObject("Microsoft.Update.SystemInfo"), but I'm looking to query these systems remotely. ...
Score Passing a Monad (powershell) variable as command parameter
crosby.tim - 5 Jun 2006 7:58 PM - 3 messages
I'm trying to accomplish something that I thought would be very simple.   I guess I'm just missing something but here goes. I want to simply call an executable from within my Monad script and send that executable a parameter in the form of a variable set earlier ...
Score Problem with "List All the Members of a Group"
Jolene - 5 Jun 2006 4:02 PM - 3 messages
I am trying to use the script from the script repository to list all members of a group.  It is working but I have one large problem.  The resulting array only gives me 1500 users and I know I have over 3000 users in that group.  ...
Score Need script: to change Servername
QA - 5 Jun 2006 2:45 PM - 5 messages
For a specific application, I need to setup a variable called client_server to be:     "servername"-test.FQDN Basically: 1.  I need to get the servername and add "-test" 2.  Get the FQDN and append it to step 1 ...
Score Trying to get space information from multiple servers
Daniel.Phillips - 5 Jun 2006 2:14 PM - 5 messages
I am trying to get space information from all my servers.  I input the server information on the command line and pass the password and login.  I am getting to 'You are hear2'  than 'You are hear4' only once (There are 3 hard ...
Score local network connection
SHADY - 4 Jun 2006 4:49 PM - 2 messages
i need to automat the enableing and disableing one of the local network connection  by making a schedual task to enable the connection and other to disable it SO DO ANY ONE COULD HELP ME FIND OUT HOW COULD THIS HAPEND ...
Next »