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
364 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
61 views

Provide Administrator credentials within script

I am writing a script that runs from a user account. The script needs to execute another script as the Administrator account. Tried AutoIt's RunAs - didn't work. Tried PsExec - the same. Tried ...
2
votes
1answer
492 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
56 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
125 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
157 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.
2
votes
1answer
598 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
210 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
67 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
49 views

Configuring Pfsense via ssh

I want to know how i can completely configure and add add tables to pfsense via ssh. my goal is to have a web installer that configured multiple system and based on the output it will configure the ...
1
vote
1answer
50 views

SSH issues: keyfile and host file not working as expected

When I login to server with a key ssh -i /home/me/.ssh/id_rsa server everything goes without glitch. The key is authorized on the server. However if I try to do same from a shell script, I get a ...
1
vote
1answer
36 views

name of script within a init script

I have a script /etc/init.d/startup, where I do the following: creating a PID file that should look like: /var/run/**startup**.pid executing a screen of a java process, so I will like to create the ...
2
votes
0answers
158 views

How to retrieve a MDT task sequence variable and use it properly inside Powershell

I'm trying to retrieve a MDT task sequence variable inside a Powershell script, then use that variable in a Powershell function. My problem lies in that the variable I want to retrieve contains a ...
2
votes
0answers
97 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
152 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
142 views

lftp mirror leaves empty folders on remote

My script is set up with this for lftp lftp -p 2218 -u $login,$pass sftp://$host << EOF set mirror:use-pget-n 5 mirror -c -P5 --depth-first --Remove-source-files ...
1
vote
0answers
169 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
38 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
409 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
972 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
471 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
124 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
146 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
107 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
241 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
71 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
572 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
94 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
338 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
9 views

Apache2 on Ubuntu - Start external process on request?

I am using Apache2 on Ubuntu Server 14.04.01 LTS (i368). I would like to start an external process whenever a request comes in (The process started will actually get the request proxied to it.) I am ...
0
votes
0answers
27 views

Programatically Pull Account Track Data from Konica Minolta/Ricoh Copy Machines

To be safe, I checked the serverfault guidelines, and I think this question falls under management of 3rd party platforms or administration of networks. I'm sure I'm not the only sysadmin with this ...
0
votes
0answers
22 views

Can I dynamically generate apache config files without using <perl> tag? Similar alternatives are an option

I am trying to find a way to dynamically generate vhost configurations when Apache starts. I am aware of mod_vhost_alias and mod_rewrite [suggested by Apache][1]. I'm afraid these won't work since ...
0
votes
0answers
28 views

Collecting PC to Printer relationship information across an entire domain using a script

I'm trying to create a script which will enable view every PC to Printer relationship across an entire domain of around 1200 machines. In theory I am looking for a script to be run so that it will ...
0
votes
0answers
257 views

Batch/Powershell file wont run via Task Scheduler during logoff

I'm having trouble getting my Powershell file to run from Task Schedule during logoff. In short, I'm trying to upload my NTUSER.DAT (roaming profile) to my profiles folder on the file server. Dynamic ...
0
votes
0answers
56 views

Change vlan settings to Yealink phones at once

I have about 90 yealink ip phones. My target is to change vlan settings to all of them massively. For example, when it's going to reboot all of them, I run the following ...
0
votes
0answers
70 views

Why does freshly created MySQL slave keep throwing foreign key errors?

We are running Ubuntu-14.04 LTS with its stock mysql-5.5.40 and mysql-utilities-1.3.5 and we are setting up some master/slaves couples. Some of them get up without any issues just like usual, but some ...
0
votes
0answers
18 views

How do I manage multiple application instance setup/teardown via URL?

We have a heavily developed web application, with a pretty sizable team, and a lot of things going on in many branches at the same time. For our approval process, after we've done our own continuous ...
0
votes
0answers
107 views

Trying to create a pre-revprop-change for editing message on commit

I'm trying to add a hook to svn so that you can edit messages on commits. But whatever I do I get the same error message. Revprop change blocked by pre-revprop-change hook (exit code 255) with ...
0
votes
0answers
29 views

SQL Server Express Application Deployment Via CD

Our company has an ancient home-grown Win-32 application which uses a SQL Server Express db. We have a salesperson at a remote office who has no reliable internet and I need a way to package this app ...
0
votes
0answers
66 views

Powershell deploment script into multiple 2003 windows servers

I have created a script "test.ps1" that runs security checks on folders within machines. Now I want to deploy this script into 70 windows servers so it can run these security checks on all of them. ...
0
votes
0answers
194 views

Can't figure out how to get started with powerdns-recursor lua scripting

I have a server (Ubuntu 12.04) where I run powerdns-recursor. I'm trying to add some logic to certain requests and have got my target set on lua scripting for powerdns. I don't seem to be able to ...
0
votes
0answers
122 views

OpenVPN - pushing script to client upon connect

Is it possible to have an OpenVPN server push scripts out to clients upon tunnel establishment? I need to set up specific iptables rules on my Linux clients and would like to be able to deploy the ...
0
votes
0answers
88 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
54 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
851 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
69 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
43 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
77 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
148 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
26 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 ...