Questions tagged [automation]

the field of converting any manual process into one that can be run mostly, or entirely, "hands-free"

Filter by
Sorted by
Tagged with
-3
votes
0answers
20 views

Exchange Server 2016 - Mailbox Export Script - Automation [closed]

I would like to know if anyone can make a script to me, to Export mailbox (MailboxExportRequest) when the user gets deprovisioned or moved to quarantine on Active Directory. I've searched for it but ...
-6
votes
1answer
52 views

How do production web applications make backups? [closed]

So, I'm almost finished building my first major production web app, and am wondering how to manage the backup protocol. Cold backups via my hosting control panel seem ideal - but daily downtime sounds ...
0
votes
0answers
39 views

How to warn someone of a script failure, without email?

I have a script that does hourly backup and sign-encrypting of my Keepass DB on my headless Mac Mini with this code : #!/bin/bash DATE=$(gdate +"%d%m%y_%H%M") LDATE=$(gdate --rfc-3339=...
0
votes
0answers
17 views

Automating kill Terminal sessions older than 24h script on Windows with PSKILL?

So currently, when a user forgot to close his session accordingly we need to manually go to our terminal server, search all active session with qwinsta /server:localhost and kill the unused sessions ...
0
votes
0answers
161 views

automated http post with python 3 doesn't work unless user logs in

I have a script written in python 3 that is designed to send a file to our web server via HTTP POST. It's running on a Windows VM on my customer's infrastructure. I have compiled the python script ...
0
votes
0answers
22 views

How can I automate the importing of txt files to a MySql database?

I'm running a database on AWS Lightsail and I have a bunch of .txt files I want to import into the database. I can't merge the files because I want to create one table per text file (table name = txt ...
0
votes
1answer
67 views

Jenkins vs shell scripts

why would Jenkins get a different result from shell scripts(redhat 7) alone? I have shell scripts that run fine if I execute them from a terminal, however when I run the scripts from Jenkins they get ...
0
votes
2answers
77 views

Does Ansible offer a way to build/compile on the control node, and then deploy to managed nodes?

Is there any way to have Ansible run a build script locally on the control node, and then deploy the resulting artifact to various managed nodes? Please let me know if there's something I've missed, ...
1
vote
0answers
40 views

Add a domain user profile to a machine following offline domain join (DJOIN.exe)

I work for an MSP. I have made an automation script within our RMM system (Connectwise Automate) which when ran on a device will find a domain controller within the same Client container as the device,...
1
vote
0answers
81 views

Initramfs - Set hostname from custom initrd script

In our company, I'm creating an Ubuntu Autoinstaller (v. 20.04). For some company reasons, its required modify initramfs. (initrd file). I'm created a script, and added a link to init file in main ...
0
votes
0answers
8 views

Chef: run package resource with -y option

Im running into problem where I have to confirm that everything is ok. Is it possible to run chef package resource with -y option?
0
votes
0answers
299 views

How in Ansible AWX 15.0.1 to use 'in' to find a nested variable from extra_vars

I wrote in my extra_vars block in AWX the following variables that I expect to be changed anytime someone runs this servers: - vm_name: TestDeploy01 vm_ip: 10.10.1.241 vm_tag: - Infra ...
0
votes
0answers
17 views

Is it possible to trigger API or function calls when a user is created in Azure AD?

We have a handful of Azure AD domains that we are soon to be using as IdPs with a centralizing identity broker. For business and legal reasons we will not be combining these domains, establishing ...
2
votes
0answers
41 views

Deploying docker instances based on user input

I have a use case where I would like to automatically deploy some services (say 2-3) whenever a user signs up. The services are available as pre-built docker images that are the same for all users, ...
-1
votes
1answer
110 views

How to expose passwords/secrets in Ansible playbook

I have a simple Ansible playbook to Fetch a database connection config from an RestAPI, Extract the config object from the payload, Using the config JSON (as request body) to create a PUT request to ...
0
votes
0answers
40 views

Register-AzAutomationScheduledRunbook : A positional parameter cannot be found that accepts argument 'Invoke-xxDevopDt' error at Powers-shell script

I am new to power-shell and cmldt. I hv a power-shell script(.ps1) like "Invoke-xxDevopDt" and it registered as azure Runbooks with an azure Automation Account. This Run-book scheduled to do ...
0
votes
0answers
37 views

How to automate a task on a server and upload output to an FTP server?

I have a process that works in the following way: downloading data from the internet. executing a program → creating output A. output A → executing a program → creating output B output B → executing ...
0
votes
1answer
29 views

automated creation of a configuration file with ansible (or something else)

I have to create a pipeline in order to automate creation-deployment and update configuration file for network devices (switch-routers-firewall, mostly cisco). There's many ways i think to do the job ...
1
vote
1answer
15 views

Unsure how to proceed from DigitalOcean droplets and CircleCI deployments to just automating the whole setup

I work within a small dev team and our current infrastructure is setup with GitHub for code, CircleCI to deploy these to our DigitalOcean Ubuntu droplets whenever something is merged into the develop ...
0
votes
0answers
276 views

Correct way to run scripts in automated, unattended Windows installation

I have some custom scripts that I have written to customise Windows 10 such as removing bloatware and setting file explorer options via Registry Editor that I use to apply to all users and/or the ...
0
votes
1answer
637 views

Reize LVM volume with ansible

Short version: how do you resize/extend a logical volume with ansible? It includes built-in support for managing both physical volumes and volume groups and logical volumes. Based on the following ...
0
votes
1answer
46 views

Automating the downloading of data from a website

I am writing a powershell script to extract data from OpenStreetMap automatically for a country. My whole script is written, but not quite functional. My script below: $ie = New-Object -ComObject ...
0
votes
2answers
117 views

How do I replicate a Cinnamon window manager configuration?

I have a master Linux computer with several Cinnamon window manager options set. How can I replicate this setting to a new machine?
0
votes
0answers
23 views

What is the most automated way to split a large server?

I have an Ubuntu 20.04 server where I host 10 WordPress (MySQL, PHP, nginx) websites on, and I would like to split it into a set of smaller servers containing 3-4 websites rather than just one big ...
0
votes
0answers
24 views

Keep LibreOffice up-to-date

we have a terminalserver where we want to work with LibreOffice. The problem is that I don't exactly know how I can keep it automatically up-to-date. Is there like an update.exe I could run on server ...
0
votes
2answers
72 views

NTP sync over 500 devices

Daylight Saving Time is coming soon so I would like to face with problem with NTP. I've got around 500 devices which should be synchronized through NTP. DST is good oportunity to perform it becouse of ...
0
votes
0answers
20 views

Automated ADDS & ADCS setup on a fresh Windows Server 2016 image in Azure

For a project we are working we require a Windows Server 2016 virtual machine instance, for now referred to as winvm, with Active Directory Domain Services (ADDS) and Active Domain Certificate ...
0
votes
1answer
1k views

How to run jenkins build, in multiple servers with ssh-key

Trying to figure out how can I run a Jenkins build on multiple servers with my ssh-key connection. For now I used SSH remote host plugin, but this plugin is good for 1,2,3,4.. servers and not for 100+....
1
vote
0answers
54 views

GPG4Win Decrypt Multiple files to a Different Directory

I have a requirement to download PGP files from a 3rd Party SFTP server and then decrypt them and move to a the company file server. I am going to use WinSCP to download the files to an Inbound ...
0
votes
2answers
257 views

Simple cloud backup solution for Windows Server 2016

I have an instance Windows Server 2016 hosted on a virtual machine by our provider. It hosts a bunch of ASP.NET applications. My backup solution is very basic: A batch file is run once a week (...
1
vote
1answer
683 views

Cannot get past “realm: Couldn't join realm: Not Authoerized to perfrom this action”

- name: Add targeted machine to domain become_user: <local user> expect: command: /bin/bash -c "/usr/sbin/realm join --user={{ prompted_user }}@domain.com domain.com responses: ...
0
votes
2answers
913 views

Invoke-RestMethod returns 400 error no matter what I do

So I'm working on a helpdesk automation with the Samanage API and need to update the "state" of the ticket. I've read the documentation and there is nothing i saw for updating the ticket ...
2
votes
1answer
295 views

How can one import existing vSphere virtual machines into vRealize Automation 8.0?

I have a number of existing virtual machines within my vSphere datacenter. These VMs were not created using our vRealize 8 blueprints etc. However, I want to add the VMs to the vRA 8 inventory so that ...
0
votes
0answers
56 views

ZAP SCAN: Jenkins Job failed (url_not_in_context)

I have installed ZAP plugin on Jenkins and downloaded ZAP-Proxy WAR file in Jenkins Server(ubuntu) and configured as jenkins job but its giving error when I execute the Job 4051 [ZAP-ProxyThread-15] ...
0
votes
0answers
41 views

Windows 2012 R2 audit policy not showing in Group Policy Editor

I am trying to set the Audit Policy for a Windows 2012 R2 server using Chef. I am setting the Audit Policies using: auditpol /set /subcategory:"#{subcategory}" /success:enable /failure:...
0
votes
3answers
3k views

How to do mysql_secure_installation via ansible playbook?

I managed to install Apache Mysql/Mariadb and PHP using playbook. How can I do mysql_secure_installation using ansible? I am a beginner in Ansible. I want to set a new password to MySQL server and ...
0
votes
1answer
64 views

How can I generate multiple ssh keys for a new Ansible server?

I work on an on-premise network, and we have an Ansible server connected via SSH-Keys to around 400 servers. I've wanted to recreate the Ansible VM, due to the fact that it was poorly made on top of ...
0
votes
2answers
174 views

I am looking for a way to use email trigger in order to stop/start a virtual machine. Azure Automation?

I am looking for a way to use email trigger in order to stop/start a virtual machine. Like when I enter some kind or a keywork in the subject or the body of an email, the runbook triggers and does the ...
0
votes
1answer
67 views

Parsing Command Response in Bash Script

I need a bash script that takes the output of a shell command and parses that output to pull out the state. If the State is: Bad, an email should be sent. ~$ bucardo status PID of Bucardo MCP: 2074 ...
2
votes
0answers
168 views

RouterOS shell command result with Ansible is different?

You will see, I have a little problem with the execution of an Ansible task, since I am giving it the same command that I work with in the Mikrotik shell, but the result is a little different and I ...
0
votes
1answer
87 views

How fix attack different ports in Ansible configuration?

I have had a small problem that I did not find in the Ansible documentation, I would like to be able to attack several ssh ports with my playbooks, is there a way to tell Ansible that, apart from port ...
0
votes
1answer
237 views

Ansible error with auto provision Mikrotik router

I have a problem that I cannot understand how to solve ... From my ansible central machine I have written a routine for Mikrotik, to execute a series of configuration commands and thus auto provision ...
5
votes
3answers
9k views

How do I install an app from Windows Store using Powershell

I know if I have .appx package file, I can install it via powershell with the Add-AppxPackage cmdlet. However, I simply want to download & install Microsoft Store packages by name. I don't want ...
0
votes
0answers
50 views

Powershell script for automating performance center test execution and fetching result post execution

I want to achieve the below using either Powershell scripting(preferred) or javascript(Cannot install node.js to install any npm package) Execute test from Performance center Post run fetch the ...
0
votes
0answers
31 views

scripting download of teradata files

I'm trying to automate the build of a server and am having troubles scripting out the download of the teradata tools and utilities for linux from this site https://downloads.teradata.com/download/...
1
vote
1answer
356 views

Trust gpg key via script

When performing an automated server deployment, I can upload and import gpg keys via script. But I cannot trust keys. I tried gpg --batch --yes --edit-key keyname trust 5 and echo 5 | gpg --batch -...
0
votes
1answer
48 views

Execute a script while boot up in RHEL7, not working

I have created below script in RHEL 7.6, but unfortunately getting EXEC format error. When i execute the command from working directory it's working fine. below is the service file which was created ...
0
votes
1answer
749 views

How to use ansible to assign multiple existing users to a new group

I created a new group in OS. Now I want to assign 5 or more existing users to that group using ansible. I believe I could do this for single user. --- - name: add user to a group become: 'yes' ...
1
vote
0answers
38 views

What is the best way to stream 24/7 content from a server, which can be exported as an m3u file?

I have 24 Lectures for my students, and I teach online to many people. I am trying to setup a server with IPTV software, so they can view the lectures going 24/7 and have VOD for other content related ...
0
votes
1answer
50 views

Edit screensaver location in GPO with script

Unfortunately our company still changes its screensaver every 15 days. Someone from HR makes the new screensaver, drops it on a share and we IT copy it to SYSVOL and change the path to the new ...

1
2 3 4 5
13