1
vote
1answer
40 views

Will a Scheduled Task On Windows Server 2008 R2 work correctly if windows are opened and closed?

I have a batch script that I am currently running on my own Windows 7 computer as a scheduled task. The task runs nightly when my computer is locked. The task launches an Progress OpenEdge session ...
1
vote
1answer
21 views

command to add permissions to a folder for a local user in windows server 2008

as part of an installer I need to create a user with limited permissions to add the user I will use net user "<username>" <password> /add /fullname:"<username>" I now need to ...
0
votes
1answer
39 views

Query in dsrm command

I need to remove 1000 computers from AD. I tried the script below, but it's not working. When I used dsmod to disable computers, in the same script, it works. @echo off set ...
-1
votes
1answer
46 views

Script to check the TIME on all servers listed in %FILENAME%

I would like to check the time on a bunch of windows 2003 and 2008 servers listed in an excel file, i.e. (serverlist.txt) and output to another file. Is this possible.
1
vote
1answer
96 views

Automatic Saving of Windows Event Logs [closed]

I'm looking for a way to automatically save off Windows security event logs from several servers to one central location (connected on the network and domain). I want to be able to do this on a ...
0
votes
0answers
104 views

using Lua Scripting in Nginx under windows

i've originally asked a question on stackoverflow but as i didn't get any answers while reading an Article i've noticed i can use lua to do what i need but LuaModule's installation guide doesn't say ...
2
votes
1answer
55 views

Test Multiple Server for login (WIndows 2008)

I currently run a PING sanity check test (batch file with result file) on over 80 servers in 4 environment. But, even if we "ping" ok 100% of the servers, it doesn't mean that the machine are working ...
0
votes
1answer
62 views

Backing up remote Postgres database

I have a Windows 2008 Server machine with a postgres database running on it. I'd like to back it up daily and have it sent to another machine (running Ubuntu or Windows). What's the best way to set ...
2
votes
1answer
302 views

Using 64 bit wuauclt from 32 bit command prompt

I have a script that for legacy reasons needs to run inside a 32 bit command shell. This script also includes references to certain core windows binaries - most notably wuauclt but others as well - ...
2
votes
1answer
146 views

APPCMD syntax issue

I am trying to setup recycling logging events, using the following: appcmd set config /section:applicationPools /[name=' AppPoolName '].recycling.logEventOnRecycle:time But I am getting this ...
1
vote
0answers
89 views

Script for automating addition of Administrative Template (.adm) to Group Policy

So I've been tasked with creating a script that will automate the addition of the WSUS administrative template (wuau.adm) and the configuration of automatic updates. I've figured out how to use a .reg ...
0
votes
4answers
2k 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 ...
0
votes
1answer
62 views

Logging local account lockouts with a script in Windows Server 2008

I would like to know if it is possible to create a script to create a log every time a local account on a server gets locked out.
2
votes
2answers
1k views

compare the contents of two folders that are replicating by dfs

I have a large folder that I am replicating by dfs and I want to check that all files have been replicated correctly. Currently I am running the following script at both ends. cd e:\data\shared\ dir ...
-1
votes
1answer
62 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 ...
2
votes
2answers
2k views

Powershell or WMI to pull Printer Properties and Additional Drivers?

What I am trying to accomplish: Use a powershell script (WMI or cmdlets directly, or a combination) to query a 2003 or 2008 server with the PrintServer role, enumerate the printers shared, then list ...
0
votes
1answer
155 views

How can I retrieve statistics from my ghost cast server?

I have a GhostCast server running for deploying images. I would like to have each ghost cast session to write to a file ( can be multiple text files or append to one file already there ) statistics. ...
1
vote
1answer
1k views

Windows Server 2008 x86 Services for Unix SDK (SUA) RSH

Running RSH commands on a Windows box against a Linux box works only for the administrator user. Is there a file somewhere that has a list of users that can run commands remotely? More Info The ...
0
votes
1answer
105 views

sql script mssql express 2008 windows 2008 server R2 x64

Scenerio:I need to run an update sql script after another scheduled task. server=Windows Server 2008 R2 x64 db = Sql Express 2008 when? - Everyday buy Sunday(i know how to do this) Why? A third party ...
0
votes
1answer
570 views

Running a script at Windows 7 or 2008 shutdown

Is there any way to run script before the computer running Windows 7 or 2008 shuts down without using local group policy editor or domain based policy? Regedit tool should be OK if possible.
1
vote
1answer
901 views

How to export User Rights Assignments and import them on another machine

How would one export all of the user rights assignments from one Windows Server 2008 box and import them on another. Neither would be on a domain so this would just be local security policy.
0
votes
1answer
121 views

Detecting when Windows installation is completed

I got the task to install Windows Server 2008 R2 inside a virtual machine (WMWare Workstation) with Powershell. It was quite easy to do the installation of Windows inside the virtual machine. Now, I ...
0
votes
3answers
605 views

Batch file and other scripts on windows 2008 r2

is thee a way to make a all the scripts in a specific folder running without the need of the UAC prompt? or maybe using power-shell to run the scripts without using "Set-ExecutionPolicy Unrestricted" ...
0
votes
1answer
281 views

PowerShell Delete Directory Based off Date in Name of Folder

I recently put together a PowerShell script that creates directories named by date in the following format "yyyyMMddHHmm" What I have been trying to do is figure out how I can go back through and ...
1
vote
2answers
1k views

Specifying date in robocopy destination folder

I would like to specify the date via CLI when running robocopy so that the destination folder includes the date. robocopy C:\folder\ Z:\folder_DATE /E /ZB /COPYALL /NP /V /LOG:F:\backup_log.txt ...
0
votes
1answer
86 views

Network drive: move generates an error

I'm trying to create a script in an application. The application should call cmd.exe and cmd.exe should run a statement pushd \\file\share && move filename.txt \\file\share\newfilename.txt ...
1
vote
1answer
77 views

Script to automate Raid0 on Windows Server 2008

Could someone point me to a script that I can run upon startup to create a Raid0 drive on windows server 2008. The inputs would be the drive letters of two drives to use for the array.
0
votes
1answer
276 views

SNMP Custom Script Execution in Win 2008R2

I'm trying to execute a custom Script that is readable from SNMP service. Let's try to explain my purpose. I have a Win2008R2 server I have a PowerShell Script that "echo" something and return an ...
1
vote
2answers
1k views

Windows 2008 R2 Scheduled Task Not Running With Admin Privileges even if granted?

I have a scheduled task that is running as USER. I have checked the box "Run with highest privileges" in the scheduled task properties. The task is a powershell script that, among other things, ...
5
votes
2answers
2k views

Windows Group Policy Startup script is not executed at startup

I have written a .cmd file which calls ten different .exe files. I am able to run this .cmd file locally, on my server, and it works fine. When I use [gpedit.msc] (Group Policy Editor) for "Computer ...
2
votes
3answers
2k 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 ...
3
votes
3answers
1k views

How do quotes/strings work in Powershell?

I'm have a command line that works in the regular old Windows Command Shell, but somehow gets misinterpreted in Powershell (I'm fairly new to Powershell). sqlcmd -S .\SQLEXPRESS -i ...
-1
votes
2answers
118 views

creating and modifying .exe file? [closed]

How to create an .exe file and how can I modify exsisting .exe file?
0
votes
2answers
974 views

admin right to IIS7 for user using group policy or script?

I want to provide administrator rights to user account under windows 7 just for IIS7 and user shouldn't be able to manage any other application. I have create group policy rules using applocker for ...
0
votes
1answer
42 views

Updating shared files across computers

I have a file server running Windows Server 2008 and a couple of laptops running Windows 7 on a network. There are a large number of files that all users will need access to. My plan is to have the ...
1
vote
1answer
271 views

Why does appcmd.exe behave differently when executed inside a batch file?

I have the following appcmd to add an exception to IIS7's ISAPI and CGI restrictions. The exception I am adding should look like: c:\perl\bin\perl.exe "%s" %s Here is the command line: appcmd set ...
1
vote
1answer
111 views

Delete windows profiles with similar names using a batch file or script

I’m on a Windows 2008 server and would like to delete 15 users (user1 till user15) without having to do this by hand. After deleting them completely I’d like to readd them (again, with a script) and ...
4
votes
3answers
233 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 ...
0
votes
1answer
1k views

Logon script not running

I tried making a logon script to map some network drives since I need more than homedir. I have applied to script to "logon" in a GPO on server 2008, but it does not run on the PC when I logon. When ...
2
votes
1answer
60 views

LAN FIle and/or Service Search

Anyone know of a tool/script that I can use to find if a single file is present on machines on my LAN? The file would be in the same place every time. Same applies to a service. Need to know which ...
0
votes
3answers
54 views

windows server 2008 scripting on loss of network

ok the idea is to run a script (pref either powershell or vbs) on the event that there is a network failure (e.g. when a network cable gets unplugged for whatever reason). This possible? im going ...
0
votes
1answer
1k views

Problems with login scripts on Terminal Server 2008

We are having issues with login scripts not running on Windows 2008 Terminal Server. This is a brand new implementation and they have never worked. The test user in question doesn't have any ...
2
votes
1answer
174 views

Add a printer script

We have an old print server that is going to be taken offline because the hardware is starting to fail, and we now have a Print Server system running virtually. The old servers name is different ...