Home All Groups Group Topic Archive Search About



Scripting for Windows Server

microsoft.public.windows.server.scripting
Score Problem with %f variable.
Dirk - 29 Sep 2006 11:41 AM - 3 messages
Hi, I have a script running to change the location of the ntbackup logs. This script is based on article 241162 [link] Everything works fine in this script exept this command: FOR /F "usebackq tokens=1" %%n IN (`dir c:\templog /b`) DO @FOR /F "usebackq ...
Score Open Execl at 12.00
Arne Hegefors - 29 Sep 2006 8:48 AM - 2 messages
Hello! I have never written a script before (but famailiar to VBA programming..) so I have some basic questions. I want my script to open an Excel file at the same time every day eg 04.00 hrs. The Excel filen then has ...
Score Changing from Bat to VBS Scripting
AndyK - 28 Sep 2006 4:59 PM - 4 messages
I recently joined a school district where they were on an NT Domain. They used batch files for login purposes (1 for every user), and I have refined that process greatly for them (1 batch file for all users). However, now that ...
Score Check computer online or not
TomKing - 28 Sep 2006 2:54 AM - 2 messages
It seems a very simple task. Until now I am still using syntax like following line to access remote computer: Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") But it actually causes a problem if the remote computer is down. It consumes ...
Score Startup vs Logon Script
SameOld - 28 Sep 2006 12:26 AM - 3 messages
Hi All, We have a startup bat script contained in c:\documents and settings\default user\start\programs\startup. problem with it is that when combined with a logon script the logon script does not fully run i.e. no drive mappings etc. ...
Score vbscript snipit to modify text strings in a csv file
James - 27 Sep 2006 6:49 PM - 2 messages
Hello,     I am using the ActiveSync Logparser tool to pull ActiveSync connection data from the IIS logs on my front end exchange server. I had created a script to pull the user data from the csv file the logparser tool creates, ...
Score Run a VBS as a Service
joelcv - 27 Sep 2006 5:39 PM - 3 messages
I would like to run a vbs as a service, but i can´t do it. I have installed srvany.exe and instsrv.exe, but either i can´t start the service. Can anybody help me? ...
Score vbs script for backup & clear event logs
Virendra - 27 Sep 2006 8:19 AM - 3 messages
Hi every body i need a vbs script for backup & clear event logs for windows 2003 servers. i want it to backup all the event logs from all the servers in the domain and archive it to a common location. I want this script will work ...
Score Script to see if a directory exists on d: drive
Ed - 27 Sep 2006 1:46 AM - 2 messages
Need a script to see if a directory exists on the D: drive. If so, continue... to the next part of script If not, prompt the user with a message box ex. WScript.Echo "Directory does not exist.  Please contact support" ...
Score Remotly change power options
Andyinjapan - 27 Sep 2006 1:30 AM - 2 messages
We have 100 laptops which are joined to a 2003 domain and work fine just there is one configuration problem on all. The power scheme is set to HOME/Office Desk and the “turn off monitor is set to 5 minutes” which doesn’t ...
Score Delete internet temp files on logon
Chris @ ecs - 26 Sep 2006 5:13 PM - 5 messages
I found a script to view the contents of the cach but how do I modify it to delete the contents of the cache? Const TEMPORARY_INTERNET_FILES = &H20& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(TEMPORARY_INTERNET_FILES) Set objFolderItem = objFolder.Self ...
Score Setting Static DNS and WINS to use DHCP
L0stIntHeS0up - 26 Sep 2006 3:28 PM - 2 messages
We are migrating from one DNS and WINS box to another. We still have clients using a static DNS and/or WINS entry in their IP stack. I can change these servers through a script but that's not exactly what will be best. For ...
Score Run the script on the perticular day of the week.
Lion - 26 Sep 2006 1:59 AM - 2 messages
I am not script writer, please point me in to the right direction. I need the script that will start a particular program on the work station depending on the day of the week. Something like this **************** If Day of the week = Monday ...
Score Determine if it is a group or account
Al - 25 Sep 2006 7:11 PM - 3 messages
I am enumerating local accounts and groups. The local group may contain additional AD accounts or groups. How do I determine if the element is a group or an account. I need this information to be able to enumerate further ...
Score 451 -- Object not a collection
Migration Guy - 25 Sep 2006 3:45 PM - 2 messages
When I run the script below I get this error: 451 -- Object not a collection What does this mean? If Err <> 0 Then     Wscript.Echo Err.Number & " -- " & Err.Description     Err.Clear ...
Score How to find group members of a OU
Migration Guy - 25 Sep 2006 3:33 PM - 2 messages
I am trying to enumerate group members within an OU. Can this be done via PowerShell? Very new to scripting & PowerShell TIA ...
Score Enable Local area connection
Fabrussio - 25 Sep 2006 9:38 AM - 5 messages
Is there a command to enable "Local Area Connection" network connection via the command line? It is called "Local Area Connection" so can someone give me the correct script please? ...
Next »