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
0answers
66 views

Preprocessor for Dockerfile with variables and include files

I have been using docker for a number of my applications now. I have gotten to the point that I have about a dozen dockerfiles. Frequently I have to make the same change or include something in a ...
3
votes
0answers
92 views

How can I programmatically unbind IPv6 from a network interface on a Windows 7 machine?

I need to unbind the IPv6 services from a number of client workstations running Windows 7. ("Untick" the selected box in the screenclip below.) For what it matters, they currently all have a single,...
3
votes
0answers
78 views

Robocopy from one to many

I am trying to use robocopy to update some internal AV clients that are not working. They will update once I the files are copied manually in. I've tried the following robocopy script, but can't get ...
2
votes
0answers
71 views

How to determine the VM limits thresholds on CPU limit from inside a VM or VPS

I was asked to recently to verify that a purchased VM , was provisioned with the appropriate compute from a hosting company. I suspect they are throttling the machines access to the cpu at 8% or 10% ...
2
votes
0answers
32 views

Retention for Attachments - - - Microsoft Exchange 2010

Currently I am working with getting rid of voicemail to email files to save space in our archiving solution. Currently I have a search-mailbox script written to take care of deleting the voicemail e-...
2
votes
0answers
1k 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
1k 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 ...
2
votes
0answers
218 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. ...
2
votes
0answers
808 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
41 views

Systemd scripts will not run on boot

I have three docker containers that I've created systemd scripts to run at startup. I've run systemctl enable xxxx for all three services, and i've tried systemctl reenable xxxx as well. I've created ...
1
vote
0answers
35 views

Command after apt-get install is not executing in script

I'm writing a script which is meant to initially set up my Droplet. In the script, I'm opening ssh connection with my Ubuntu 14.04 server as follows (with USER and REMOTE variables previously defined):...
1
vote
0answers
224 views

Allow Powershell script executed on Exchange server to send mail - best practice?

I've got a single multi-role Exchange 2010 server and a need to execute a Powershell script on monthly schedule. And i really would like to send a report via email to some local company's mailbox by ...
1
vote
0answers
322 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
39 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
892 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
2k 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
203 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
845 views

How to execute a script only once, immediately after ALL network interfaces are up in OpenSUSE?

I run Opensuse 12.2. I have 3 network interfaces, eth[012] The interfaces are configured in /etc/sysconfig/network/ifcfg-eth[012] I want to execute a script immediately after ALL three interfaces ...
1
vote
0answers
148 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
117 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
321 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
83 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
98 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 ...
0
votes
0answers
11 views

pssh stderr askpass received prompt

I'm using pssh version 2.3.1 on a RHEL 6 server so I can log into multiple clients in a single run and pull down config. While testing out I am getting an error. [1] 14:45:54 [SUCCESS] user@192.168....
0
votes
0answers
9 views

Exim script to output the sender and receiver

We have an anti-spam system that sometimes create false-positives. When reported, we verify and whitelist the domains or IPs that have been wrongly triggered. However, I'd like to automate this by ...
0
votes
0answers
20 views

One time login/pin FTP server

I'm wondering if someone can help point me in the right direction for a feature I would like to have implemented. I'm running an amd64 Debian 3.2.73-2+deb7u2 x86_64 GNU/Linux server with PureFTPD as ...
0
votes
0answers
8 views

DPM - Reporting of express backups

How can I get out of DPM server a list of the latest successful "express Backups"? ( And good to have time taken? ) The monitoring page just shows everything as a recovery point. My protection ...
0
votes
0answers
27 views

How do I set domain machines to ignore domain in login credentials?

Basically, some machines will allow remote access with an incorrect domain but correct username and password, but others won't. How do I set a server TO do that? My issue is that I have a host ...
0
votes
0answers
18 views

How to automate tasks for non-techies like customer support?

Our Customer Support often needs small changes to our system. These are things that a dev does by running a tiny script, but that's out-of-reach for CS. I'd like to be able to make those scripts ...
0
votes
0answers
11 views

MRTG Target field

Can I use OID and Shell Script in the MRTG Target field at the same time? For example Target[myrouter]: check_connection.sh&1.3.6.1.4.1.999.1:public@mydevice Please advise. Thanks
0
votes
0answers
72 views

Python to change password for user in JunOS device

My script is good to make device changes but the only thing im unable to do is to change the password one a particular user. Im running JunOS set system login user user authentication plain-text-...
0
votes
0answers
10 views

How to correctly process backups from webdav folder

So I have a GNU/linux server running apache with mod_dav. Users can upload their backups into their respective user folder. I would like to write a scanner that scans those directories and passis it ...
0
votes
0answers
26 views

Bat file stops after invoking psexec

I want to have a simple bat files that prompts for the workstation name, uses psexec to connect to the remote computer and then run a script on the pc so I can check the results. If I run each line ...
0
votes
0answers
90 views

Tracking network activity for user login/logout/session timeout/session expired

Porting from StackOverflow (35741797), since it might be a bit more relevant here as it is related to network. We have a situation on our side where we are trying to trace the login/logout/session ...
0
votes
0answers
146 views

How to send an email with Powershell that doesn't end up in spam folder to Gmail?

I have various PowerShell scripts on Windows Server 2012 R2 that I like to notify me via email upon completion, so I setup a local SMTP server that is restricted to 127.0.0.1 only, and use this ...
0
votes
0answers
369 views

Get-AzureService : ForbiddenError: The server failed to authenticate the request

I am using azure workflow on azure automation and get the template from Azure gallery for "connect the azure using subscription certificate". After Create the connection "Azurec" and upload the ...
0
votes
0answers
35 views

how to execute bash script with args in parallel on all the remote server if the remote server in the from of pair

Please read carefully problem first and then give solution................... we are having 3 files in directory myscript.sh (the myscript.sh file contain many function and starts/stop to all-...
0
votes
0answers
13 views

Query SIM status in Windows 2003 connected USB Modems

I have windows 2003 server installed and 4 USB Modems connected in different USB ports. It have some application installed which receives SMS from these modems and add them in data base its closed ...
0
votes
0answers
197 views

Windows batch command equivalent of “curl -s -L http://j.mp/script.sh | bash”

I would like to run a batch script that calls another batch script hosted on the internet. In bash, this can be done using something like this: curl -s -L http://j.mp/script.sh | bash How can I ...
0
votes
0answers
59 views

Issues with NAUbackup Email Notification

I've setup NAUbackup to carry out backups for my xenserver 6.5 VM's. It backups up fine but I can't get the email notification to work. I've uncommented everything in the VmBackup.py script, added my ...
0
votes
0answers
6 views

Maintain and version controll config- and SQL scripts

I'm looking for recomandations of handling variouse config scripts for a few databaseservers. The scrips fall into the following categories: OS Config scripts and files, such as crontab for multiple ...
0
votes
0answers
92 views

Using a .PAC file for switching proxies

My question is similar to this one: I need to connect to distinct proxies depending on whether I attempt to visit internal or external sites using my organization's network. No .PAC files have been ...
0
votes
0answers
151 views

LDAP NET-IQ DRA (Active Directory) Group member of does not work

I am trying to list a couple computers, that do not have a specific group membership. This is what I have at the moment: (&(objectcategory=computer)(|(name=Computer1)(name=Computer2)(name=...
0
votes
0answers
16 views

Identifying cached JNLP applications via batch script

I am attempting to script a solution to install JRE 7 only to systems that run a particular JavaWS application. Essentially the current application requires Java 6 and the upgrade will break ...
0
votes
0answers
332 views

How can I Deny permissions to logon to Remote Desktop Session Host server in powershell script?

I am need of some assistance please. I am a system admin and I am trying to create a script that will assist with the tedious tasks I have to do with disabling a user that no longer works for the ...
0
votes
0answers
183 views

GPO Office Installation - Script runs on PC, How could I get it to appear when a user logs in?

I currently have a GPO created that installs Office 2010 for users during startup of the PC. This script is set to run for specific PCs. Is there any way that I can get the script to appear and run ...
0
votes
0answers
199 views

Powershell - Printer settings not applying

I'm currently trying to script settings for a printer connected through a local network, a normal TCP/IP-printer setup if you will. Since I'm on my phone I don't have access to the code right now, ...
0
votes
0answers
23 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
100 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
970 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 ...