A form of computer programming that — in the context of system administration — lends it self well to automating tasks.

learn more… | top users | synonyms (2)

3
votes
1answer
264 views

reconstructing shell session from a typescript

There is a bunch of tools like 'script', 'screen', 'ttyrec' which allow record content of shell sessions. By design these tool records everything displayed on pty, including control characters. ...
2
votes
1answer
141 views

Red hat script on shutdown

I need to backup some files every time i will shutdown a Red Hat enterprise 4 Linux. I thought about make it with a script in /etc/rc0.d but shutdown process should wait for my script to finish. So ...
2
votes
1answer
36 views

Rolling Oncall Distribution List with Microsoft Exchange

I'm trying to set up an "oncall" user/email for Microsoft Exchange (ex: oncall@mybiz.org), with the idea being that whoever on my team is currently "oncall" will be added to the list. Then, when they ...
2
votes
1answer
399 views

Mirror directory, only purging files in destination directory older than 7 days

I would like to mirror a directory, but only delete files in the destination directory older than 7 days. Situation: - Directory A is mirrored to Directory B. - A file from Directory A is deleted ...
2
votes
1answer
118 views

I am trying to automate an install with Active Directory to a server core box?

I am trying to automate an install with Active Directory to a server core box? I assume I need to set up a script. Any ideas on how to go about this.
2
votes
1answer
405 views

Amazon S3 Website & MySQL Backup

I have a website (a digital asset management system/gallery - http://www.resourcespace.org) that has a huge amount of images. The total size of the website, including the images is approximately 6gb. ...
2
votes
1answer
193 views

Batch Query Dell Service Tags for System Configs

Not sure if any of the smart folks in this thread http://serverfault.com/questions/67735/batch-query-dell-service-tags are still around but I have a very similar problem: I need to query the Dell ...
2
votes
1answer
66 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 ...
1
vote
1answer
33 views

Updating usernames and passwords for 450 WordPress databases - 450 ftp Accounts and 450 MySQL user

How would you update these in a consistent, reliable manner? I'm new enough to system administration, self taught and still learning but - I have this problem to solve in no specific time and under my ...
1
vote
1answer
30 views

cp/rsync command with destination as symlink to a directory

I am working on a cPanel backup solution at the moment. We are now informed about this exploit. Exploit : Full ROOT ACCESS to server 1.) create malicious file from, normal user account: mkdir root ...
1
vote
1answer
183 views

Set the username and password for DCOM application

Is there a way to run a script against a remote machine to enter the username and password for a specific DCOM application? Locally on the server, I can open up Command Prompt, and type: dcomperm ...
2
votes
0answers
39 views

vmware thin disk usage powercli

I want to ask a question about thin provisioning. get-vm commandlet can easly give us real space used by a vm totally. Assume that you have a virtual machine which has more than one thin disk. If ...
2
votes
0answers
118 views

Login script on windows client does not map drives correctly

This script is located in the OU container of a sample Organization tree in an eDirectory that I created for the purpose of exploring and troubleshooting. This is not a critical/ live system setup. ...
1
vote
0answers
18 views

Openvpn-server: Execute a script when on a failed connection?

Good morning, I was wondering if It was possible to setup something to execute a script when someone tried to connect but the TLS check failed (When someone who is not supposed to connected try to° ...
1
vote
0answers
34 views

Using Windows as middle for migrating between two Linux machines

We're developing a tool that will do a migration between some platforms. Both source and/or destination servers can be Windows or Linux. The tool is currently built in .NET and we'd like to keep it ...
1
vote
0answers
59 views

Reconnect Windows Network Drive after network connection has been established

User uses a piece of software (simple database and front end app) that connects to a database stored on another workstation, by way of mapped drive. This mode of access is supported by the software ...
1
vote
0answers
103 views

Automatically assign elastic IP to ec2 spot instance with user data script

Is it possible to automatically assign an Elastic IP address to a spot instance that has a persistent spot request using the 'Advanced' 'User Data' script box? I'm thinking that I could craft a ...
1
vote
0answers
399 views

Powershell Script Hard drive Inventory

I've created a script to get hard drive information from our servers. The script use WMI to query the Win32_LogicalDisk class and returns "Size (GB)", "Free Space (GB)" and "Free Space (%)" for each ...
1
vote
0answers
175 views

SSMS stuck scripting database objects

SQL Server Management Studio sits stuck, after scripting all objects in a database. Except it didn't script all objects in a database. i scripted all the objects in an SQL Server 2008 database from ...
1
vote
0answers
80 views

Windows file compare (FC) spurious differences

I'm getting differences like this: a.txt Betty Davis Cathy Edwards b.txt Betty Davis Cathy Edwards There are only two lines listed in the diff (which doesn't ...
1
vote
0answers
138 views

Automatic binding of Windows 8 account with Live ID

Is it possible to do automatic binding of Windows 8 account with Live ID thru GPO, scripts, or some sort automated way that will basically do it for everyone in domain. There is an assumption that ...
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 ...
1
vote
0answers
183 views

Intercept and modify postscript files to change MediaPosition

I am looking for a way to intercept a Postscript file sent to a printer and run it through a script that will modify the MediaPosition commands to the ones appropriate for my printer, before sending ...
1
vote
0answers
118 views

Is there any way to remotely configure a Microsoft Lync account?

There are no perl modules for Lync. No open source clients. Windows Powershell can do some things with it, but only on the server on which the server software is installed. It would be useful to be ...
1
vote
0answers
103 views

add certificate to all files in EFS-folder with script

I try to set up collective access to EFS-folder. I want to add certificates of all users to all files in folder. Is it posible do with using powershell scripts or some another way? Thanks.
1
vote
0answers
64 views

Adding a user to BES via Script?

I am looking for a way to add users to BES using a script to help automate new user creation process. Is this possible with using any of the resource kits from BlackBerry, or other methods than using ...
1
vote
0answers
168 views

Udev rule doesn't create symlink

I have created a script which is supposed to run automatically when a specific USB-device is connected. I've based my udev rule on the this post: Linux (Ubuntu) run script upon USB mount My udev ...
1
vote
0answers
399 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
0answers
90 views

How to create an SSIS package with a Script Component

I am using Microsoft Business Intelligence Development Studio (BIDS) to create an SSIS package. Take into account that is my first attempt with SSIS. I want to take data from a Source database ...
1
vote
0answers
289 views

How do i create a bat file to create user directory with proper rights and a script to reset it if something goes wrong

I need to create user and directories for the user and share it. The rights are set on NTFS structure only. The user must do all except change rights and take ownership this is not allowed and this ...
0
votes
0answers
11 views

Solaris /etc/xdg/autostart root script pam_authenticate conversion failure

Im running SOL11.1 and have setup a desktop file to run in /etc/xdg/autostart this calls a main script which calls other scripts. The regular commands work. But the sudo commands doesn't seem to ...
0
votes
0answers
17 views

Script to apply Simple Finder restrictions to Mac OS X user?

Is it possible to script (e.g. with AppleScript or bash shell script) applying the Simple Finder and an associated application whitelist to a local user account on Mac OS X? We are using Mac OS X ...
0
votes
0answers
36 views

Get unused Nagios both services and commands

I have a monitoring server, based on Nagios 3.2.3, installed via source code, and using GroundWork Monitor Architect for managing Nagios configurations. My question is if possible (and how to) get a ...
0
votes
0answers
197 views

samba4 add user script not working

I installed Samba 4 and I need to execute a bash script after a user is created from a Windows machine. With Samba 3 I used the add user script = /usr/sbin/adduser %u -s /bin/false -m -g users So, I ...
0
votes
0answers
34 views

OVF/OVA extra files

Can anyone suggest a method to do the following: We need to include an extra file (probably just a small text file with a serial) in an OVF file before we wrap it up into an OVA for deployment. Here ...
0
votes
0answers
12 views

Add contact to SBS 2003 active directory remotely

Masters, We need to often add or remove contacts in active directory. It is possible to delegate access to a user (with or without administrative rights) to do this remotely (without log in via ...
0
votes
0answers
54 views

Detect reuse of deleted AD account's email addresses

One company I have something to do with has the - in my eye not optimal - policy of recycling email addresses. If a user leaves, they just delete the Active Directory account. So they don't even know ...
0
votes
0answers
35 views

AppleScript to enable Find My Mac on multiple Macs?

I am looking for a way to enable Find My Mac on multiple Macs within our organisation. It seems like this might be possible with AppleScript. The workflow I had in mind is: Load System Preferences ...
0
votes
0answers
134 views

Packet drop monitoring on vmnic objects

I'm trying to create a script via PowerCLI that can monitor packet drops for vmnic objects. I was able to find online a version of the script that does exactly what I want for host servers, however ...
0
votes
0answers
20 views

Script to bring browser out of kiosk mode

My organization has our client computers that are open to the public set to kiosk mode so the customers are forced to enter a survey before accessing the internet/computer resources. I am looking to ...
0
votes
0answers
39 views

After setting file association with FType, images still launching in other program

I'm aware of how to use Assoc and FType to set the default program that a known file extension will launch in. I need to create a simple batch script to re-associate all of the image file extensions ...
0
votes
0answers
40 views

Automated Logon with Macro backup script

I'm having some issues with an automated backup macro script I've written using Autohotkeys. My specific issue is that I need the script to run on a Windows based server at a given time during the ...
0
votes
0answers
107 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 ...
0
votes
0answers
97 views

Suggestions for passing script status back to master controller service

I want to automate our update and upgrade process. What I would like to achieve is a controlling server executes a script of some description on the remote server, it knows the status of the remote ...
0
votes
0answers
38 views

Server setup scripts, patches and migrations

I have written some scripts which I use to configure various servers in a uniform way. Each time I deploy a server I run the relevant scripts so that I know they're all configured the same. I then ...
0
votes
0answers
63 views

Batch script terminates too soon

I need some help with Windows batch/CMD scripting. I wrote a script to record mic-in to a MP3 for 12 hours. It runs ok when running it manually. It will run with task scheduler too - just that, ...
0
votes
0answers
72 views

openvpn up script execute command in schroot

We would like to control a service in a chroot environment utilising scripts run during an openvpn up and down sequence. Host OS is ubuntu-12-04, chroot environment runs ubuntu-12-10 A session has ...
0
votes
0answers
23 views

Running command from script won't give desired output

If I run sudo /usr/lib/update-notifier/apt-check -p &> ~/update-list.txt directly on terminal, I get the update-list.txt file with all the updates in it. But if I write the same command in a ...
0
votes
0answers
46 views

Securely perform a server reboot through script or application

I have a PC that my customer can access with a simple user. I have a server that can be accessed only by an administrator user from my company. I would like to find a secure way to perform a restart ...
0
votes
0answers
143 views

Launching Local script on remote Mac using SSH

I have 40+ Macs (10.4 - 10.6) and I need to run a script that will join them to an MS Server 2008 Active Directory, Convert local profiles to Mobile profiles, and perform some other tweaks for ...