Skip to main content

Questions tagged [scripting]

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

-1 votes
0 answers
17 views

Check PDF signature expirity date in linux terminal

So, a client of mine has around 10 thousand PDF, all digitally signed. She would like me to create an Excel sheet for her and in this sheet I need to show the name of the PDF in a column, the date of ...
Bert's user avatar
  • 1,094
-1 votes
0 answers
27 views

Group Policy Object won't apply on computers until they are restarted multiple times (3 to 5 times)

The Group Policy Object won't apply until I restart the PCs 3 to 5 times, even after running gpupdate /force. I want to install new software and remove the old one. I've tried both scripts and ...
Abdeen Mostafa's user avatar
1 vote
0 answers
38 views

Set service Startup Type to "Automatic (DelayedStart)" with PowerShell

I'm trying to script changing specific services to have Startup Type "Automatic (DelayedStart)". When I pipe the services into Set-CimInstance, I get an error that it "could not modify ...
Alex Pixley's user avatar
0 votes
1 answer
48 views

Query Windows RDP monitor positions via command line

I am using Windows RDP (remote desktop) with a multi-monitor setup and I want my script to automatically detect the position of the monitors. Additionally, I only use some of my monitors for RPD with ...
Aaron Caba's user avatar
0 votes
0 answers
64 views

Stop minikube on Ubuntu shutdown

I'm new to Kubernetes, I have internal instruction on how to setup the app locally using minikube. The problem is that I sometimes forget to stop the Cluster, if I do when shutdown the system it will ...
jcubic's user avatar
  • 250
0 votes
1 answer
37 views

script to print dhcpd.leases info to syslog/file

So i'm running dhcpd on a server and to my knowledge the logs from dhcpd are not adjustable, if they are i'm dying to know how... Anyways, i need something to check the dhcpd.leases-file which is ...
Tomsch112's user avatar
0 votes
0 answers
36 views

I would like to batch (with a command line) the "reparation" of LibreOffice (odt mainly) corrupted files

I have received a quite large collection of LibreOffice odt files, which are corrupted (for a reason still unknown). When opening most of them, LibreOffice proposes to repair/fix them, and it looks ...
Covot's user avatar
  • 1
0 votes
1 answer
187 views

Creating a computer account in AD using PowerShell

I want to create a new computer object in an AD domain. Below is the script I am using. Can someone tell where should create credential object for SRV1? In domain controller or in computer? If ...
munishhh's user avatar
0 votes
0 answers
21 views

Script run from crontab doesn't work [duplicate]

Running on the server I have a command that is started at boot as a service and it works well, now if I run the command that gives me information on the status of the service I get the data view, if I ...
Canuto's user avatar
  • 1
0 votes
1 answer
62 views

Ubuntu/Orange Pi5 retrieve open tabs on Chromium (kiosk mode) via terminal - Powershell

I have a problem as of late where I am developing some PowerShell script to manage and update some digital displays. Please see below for my work in progress (By no means done). I am struggling to be ...
M.Atkinson's user avatar
0 votes
1 answer
323 views

How to run a batch script completely and automatically on event such as sleep/hibernate and shutdown event using task scheduler?

I have written a batch script to perform some folder synchronizing task. I have scheduled the script to execute using task scheduler on events such as sleep/hibernate(kernel power event id 42) and ...
Harsh's user avatar
  • 1
-1 votes
2 answers
3k views

Run commands remotely via SSH with a powershell script natively

We want to run commands on our network devices via SSH from within a powershell script. I know that we can do: ssh [email protected] But this is interactive and requires you to accept ...
Mario Jost's user avatar
0 votes
1 answer
57 views

Custom Script-based Backups

I'm a believer in having multiple restore solutions in place for the environment I support. I have a production backup solution for my Windows Server environment. It includes an agent on each box and ...
Eric's user avatar
  • 1
0 votes
1 answer
402 views

Can't get sub_filter to work in nginx, could it be an ownership/permissions issue?

I have http_sub_module installed, but the 'sub_filter' line is not working. I'm trying to use it for a dynamic nonce for CSP as per these instructions, replacing some text in script tags with the ...
jamminjames's user avatar
0 votes
3 answers
636 views

Shell script capturing values from output of command

From a shell script, I run a ping command: ping -c4 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=58 time=34.2 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=58 ...
Simon Kepp Nielsen 's user avatar

15 30 50 per page
1
2 3 4 5
123