1
vote
1answer
32 views

Windows Server 2003: Schedule FORFILE loop in TASK SCHEDULER

I am trying to create a SCHEDULED TASK that will kick off a FORFILE loop, and terminate the process after an hour (or 12 hours). I expect there to be MILLIONS of files the the paths defined, and I ...
0
votes
2answers
48 views

How can i get the total records in my DNS Server

I'll need to count all the records in a dns server 2008, for all the zones configured on the server, by running a script locally Thanks, aca
0
votes
1answer
144 views

Drive mappings being lost overnight

I have an interesting problem. I have a Server 2003 environment, with a Windows XP computer that continually loses its drive mappings overnight. No other users report this problem. The user reports ...
0
votes
4answers
1k views

Restart a Windows service from a script?

I know there are several similar posts on the subject, but what I would like to know is how to re-start a service that has already been stopped. Is there a .bat or .vbs script that would check if the ...
-1
votes
1answer
56 views

Automate Monitor string in different log files

I have few log files in different servers and I want to check output in the end of those log files for e.g . success: 4000 failed: 200 These logs files are getting generated daily and I have to keep ...
1
vote
2answers
337 views

List of groups and users on Windows 2003 Server

I am setting up a user group and user audit/review process. For this I am looking for a script that can easily generate a list of groups and the assigned users. E.g.: Administrators/Administrator ...
3
votes
2answers
177 views

Programmatic, script-based, or command line method to change starting program for user on Windows Server 2000/2003?

I have written an app that we want to distribute to a large number of customers to be used as the shell program when they log onto their server with a particular admin account. I have figured out how ...
2
votes
2answers
67 views

Remotly create shares

I need a script to create the same shared folder on 50 remote Windows Server 2003. I have tried with psexec but havent got the syntax correct yet psexec @c:\serverlist.txt cmd net share ...
1
vote
0answers
295 views

Controlling rdp listener connections from command line

RPD on my windows 2003 server sometimes becomes incapable to accept connections. But netstat shows that port is listened. c:\> netstat -ano | find "3389" TCP 192.168.1.1:3389 0.0.0.0:0 ...
1
vote
3answers
140 views

Best Practice: Copy a file at a certain time?

I've been wrangled into the world of Windows system administration. Coming from a Linux sysadmin background, I am looking for the best way to copy a file to a directory at a specific time. (Change ...
4
votes
3answers
947 views

How would I create a PDF print server?

I have some old workstations with WindowsXP that I can install pretty much anything on, an office with about 80 people, a wintel environment, an existing Server 2003 file/printer server, and everybody ...
0
votes
1answer
434 views

Remote GPO through BATCH Script exiting

Right so, I'm trying to make a remote GPO script that from one of our management machines will push the GPUPDATE command to certain servers. After some googling I found a script that I tried to ...
0
votes
1answer
184 views

Have a script which adds Security on share to “Everyone”

[Old post] I have a shared folder on the network which is shared with "Everyone" 'Read' & 'Read & Execute' privileges. A few people have 'Write' access and sometimes somehow when they either ...
0
votes
1answer
102 views

Find zero byte files

I'm looking for a modern (though not PowerShell) script to help me find zero byte files newer than say, 12 hours. The BAT scripts I'm finding on the web aren't working well. Server is Windows 2003 and ...
0
votes
3answers
161 views

Scripting share security & NTFS settings for AD2003

We will be deploying "dynamic" classrooms using SCCM, and thus will also need to create OU's and matching users and homedirs on the fly. I am currently trying to figure out how to edit the security ...
0
votes
2answers
50 views

Set security on pattern of sub folders (Server 2003)

I have a folder structure similar to the one shown below these paragraphs. How do I change security on every 'Photos' folder without clicking through each individually in Windows Explorer? There are ...
1
vote
2answers
212 views

User provisioning script for Exchange and AD?

I'm currently running Exchange 2007 and Windows Server 2003 ADs. If I wanted to create a user creation/deletion script that would create and delete users, what would be the best way of dealing with ...
2
votes
1answer
77 views

How do I automate an MSI install on a Server 2003 box?

I have about 20 applications that need to be run in a specific order. I want to script them so that I can do this remotely. Each one of the applications has a Setup.exe and an MSI. I was hoping just ...
1
vote
2answers
760 views

Kill / Run Processes Remotely on Network

We have fairly small windows (XP/7) based network of about 15 machines. I have developed a few software applications that we use internally which are updated regularly. To update the software, the ...
0
votes
2answers
1k views

Install Software with MSIEXEC with GPO Shutdown Script

I am trying to install software with GPO at comptuer shutdown. My first question is it is possible to do it with Software Install in Win2003 Server? Then I tried to put a batch script to shutdown ...
0
votes
1answer
218 views

Wizard or script to assign folder permissions

I'm new to server support; spending most of my time in desktop support. I've been given a request to add read-only access to a list of subfolders on a Windows 2003 Server. Rather than adding the ...
0
votes
2answers
66 views

How can I get a listing of all users and their AD exchange settings?

I'm open to different methods, from scripting to open source software, but I need a list of all active directory users, and some settings about them, specifically, the Exchange Advanced tab's ...
2
votes
3answers
1k views

Cisco Configuration backup or Reboot with Windows Script

We have a client with a lot of Cisco Devices and we would like to automate the backups of these devices through telnet. We have both 2003 and 2008 servers and ideally use tftp to back it up. I wrote ...
0
votes
2answers
287 views

Automate setup of constrained kerberos delegation in AD

I have a web app that uses some backend servers (UNC, HTTP and SQL). To get this working I need to configure ServicePrincipalNames for the account running the IIS AppPool and then allow kerberos ...
0
votes
4answers
323 views

Writing all running services to a .csv file with WS2003

I want to list all the current running services and output it to a .csv file. Does anyone know how to do this?
1
vote
3answers
411 views

Script that will copy a file based on the date modified

I need to run a script which will copy a file from one directory to another based on the date it was modified. Basically I have a database dumped into a directory on a daily basis and I want to be ...
0
votes
2answers
133 views

Scripting Windows Service Pack installation

I am evaluating the LabTech managed service provider software, which among other things can install windows updates. Most updates are installed correctly, but some, such as installing SP2 on Win ...
1
vote
3answers
45 views

Free Resource For Windows Scripting

I have to automate several tasks on a windows 2003 server machine. I have been struggling with all sorts of quirks in windows batch files (like the lack of SLEEP command and the fact that WMIC is not ...
0
votes
2answers
489 views

Delete files older that 2 days with some exceptions

I need to delete files older than two days inside a folder, except files last modified the 1st of each month. Forfiles does not support exceptions. Operating System is Windows Server 2003. Any idea? ...
0
votes
1answer
237 views

How do I set up an installation script including ODBC-connection?

Easy question this time.... I have a installation file, and a registry edit in my script. How do I set up a ODBC-connection as well, actually I need to script up 2 ODBC-connections. Any advice for ...
4
votes
3answers
219 views

Windows Server 2008/2003 - determine all “used” local network ports

I have been tasked with enabling the local firewall on 100+ servers. The systems are running many different applications using many different ports. I began with an nmap scan, but without going to ...
2
votes
1answer
65 views

Is it possible to tell what machines I'm logged in to (but disconnected from)?

I infrequently work on about 20 Windows servers via remote desktop. There are times when it'd be really convenient to know if and where I have disconnected sessions open. Is there a powershell script ...
2
votes
1answer
671 views

Script to do Windows Update on windows server 2003

Is there any batch script or command line command that can do Windows Update automatically on multiple remote servers (maybe via psexec)? Not prefer using a VB script, but if there's one available, ...
2
votes
2answers
2k views

How to run powershell script as Logon/logoff script on Windows 2003?

I've installed PowerShell Version 1.0 on my Windows 2003 server. How do I run a PowerShell script during logon or logoff event? I tried this through Local Computer policy>User ...
3
votes
2answers
902 views

Printer monitoring script (PowerShell)

I am going to write a script of some sort to check event viewer in a windows server 2003 for all printjobs, and then write them to a comma delimited textfile like printername_floor_room.txt I am ...
0
votes
3answers
248 views

Having trouble getting startup scripts to work in Server 2003

Thanks for taking the time to read this. I am having trouble getting my startup scripts to run correctly on the domain I am administering. Before anyone gets upset and says "go read xxx article from ...
2
votes
1answer
337 views

Setting WMI permissions remotely

I've developed a tool that does a simple retrieval of registered services and installed applications from remote Windows Server 2003 servers via WMI. My problem is, the tool needs to be run on an ad ...
2
votes
4answers
999 views

Need a way to run a script on windows boot up prior to a user logging in

I need to run a custom script which runs when Windows boots up.I know its possible to run it when a user logs in but I want to run it when the system reboots i.e. prior to a user logging in. The OS in ...
2
votes
2answers
49 views

Disabling scripting on login

We recently discovered that an employee of our client was able to execute a "script" that prevented other users from logging into the server. This is a Windows Server 2003 box and employees connect ...
2
votes
1answer
430 views

How to get the total records in my DNS SERVER (windows Server 2003)

How can i get the total records in my DNS Server (Windows Server 2003 - Active Directory Environment) Is it possible to get this information via Powershell/wmi ? Update: So far i used this with ...
0
votes
4answers
1k views

PST backup with Volume Shadow Copy Service

I was asked to implement the task of backing up 35 PST files ranging from 800Mb to 2000Mb. Windows XP and Windows 2000 workstations are assigned to the users and we have a Windows 2000 domain ...
0
votes
4answers
105 views

Windows Scripting

How to pull the users list from AD with only one read permission account by using a script.? also I want to Create a script which allows in AD to create 10 OU's and 50 users in each OU. Please ...
1
vote
3answers
6k views

How can I copy a file from one Windows server to another in a script?

I have two Windows 2003 servers, and I want to write a backup script on one that will copy a file to the other. What's the most idiomatic way to do this on Windows? Essentially, I'm looking for the ...
1
vote
4answers
6k views

Login script not running when user logins into Windows

windows 2003 sbs currently patched clients are a mix of windows xp, vista, and windows 7. Here is a simple login script I created. If I manually run the script it works just fine and they are no ...
0
votes
3answers
112 views

Find Edit rights on GPO

All DCs : Windows 2003 SP2 DFL& FFL at Windows 2003 In our environment we have 500+ GPOs, I want to know which groups/users have been given rights to edit GPOs. and we need this list for each ...
1
vote
2answers
354 views

Bat file in another account

I have a bat file which will delete files in some folder (Profile Folder). But i do-not have access to that folder. But another account has access to the folder. How to run a batch file from one ...
1
vote
1answer
316 views

script for removing the temp files during logout

Is it possible for one of you to write a script for removing the temp files during logout for all users? (or server during restart) Or this script can be scheduled alternate weeks. As unnecessarily ...
0
votes
6answers
1k views

Script that will start a service every time it stops

The company I work for has a server that monitors the outside camera/surveillance system. The following process continues to die: PureActiv Video Processor. My team has to consistently restart the ...
4
votes
6answers
8k views

How to get the IP Address for your Local Area Connection on Windows Server?

I want to create a batch or vbs file that will put together a url and executed. Part of that url needs to be the actual ip address of the machine. How I am able to get that IP address in a variable ...
2
votes
2answers
2k views

Is it possible to script DCOM permissions using built-in Windows Server 2003 tools?

Is it possible to script commands using batch commands, VBScript, or anything else? I need to modify a few DCOM components to grant permissions to local groups.