Skip to main content
10 votes
Accepted

Run PowerShell-Script from Server in unattend.xml

To execute Powershell scripts automatically via unattend.xml you are going to want to configure the run synchronous command entry(s) for your script. Open Windows SIM to the unattend file that you ...
Elliot Huffman's user avatar
8 votes
Accepted

Non-interactive (silent) install of MySQL 5.7 on Ubuntu 16.04 LTS

The complete script below can be dropped into a file that we will call "install.sh" and executed by doing the following: touch install.sh # Create empty file chmod 700 install.sh # Make ...
Michael Johansen's user avatar
6 votes

How to do an unattended / silent CPAN install / setup

You should generally prefer to use distribution package mangement for Perl modules on Linux where possible, but sometimes the module you need isn't carried, you're using a different version of perl (...
Craig Ringer's user avatar
  • 11.3k
4 votes
Accepted

Using Debian's unattended-upgrades package

Posting from a comment on the original question: As far as I could discover, this is the intended behaviour - unattended-upgrades will only upgrade packages - any action which involves installing/...
alanbeard's user avatar
  • 141
3 votes

Possible to set ComputerName in Unattend.xml with script?

I got this working with windows 10 pro As a note :Synchronous Commands in the Specialize Stage Appear to Run BEFORE other sections in the same stage. So if you have a PC name specified in WDS client ...
Herbert Origas's user avatar
3 votes
Accepted

Stop nginx before APT upgrades run

Adapting https://wiki.debian.org/ReadonlyRoot#Make_apt-get_remount_.2F_if_needed probably would work. I'd give this variant a try: DPkg { Pre-Invoke { "systemctl stop nginx"; }; Post-Invoke {...
asdmin's user avatar
  • 2,060
3 votes

Autounattend.xml - strange behaviour when CommandLine is long

Recently I came across the same issue, and — as you guessed — I determined the limit to be 259 characters. However, I think that — if percent variables are included in the command line — variable ...
Jimadine's user avatar
  • 171
2 votes

How to do an unattended / silent CPAN install / setup

Please consider: sudo cpan install YAML::XS <<<yes
aaaaa's user avatar
  • 21
2 votes
Accepted

Unable to perform an unattended domain join using WDS and an answer file on Windows 8.1

Added info, this also occurs with 2008 Std R2 with W7 Pro machines. To all whom it may concern, since this issue is applicable only at the Domain Admin group level, I thought to try with an account ...
Ken L.'s user avatar
  • 36
2 votes

Debian/Ubuntu: Enabling "dist-upgrade" behavior for unattended-upgrades?

Should I be aware of any potential problems or increased risk of breakage. After switching to "dist-upgrade", if you use the Ubuntu repos, then I believe you'll start getting kernel updates which you ...
sourcejedi's user avatar
  • 1,130
2 votes

Using FirstLogonCommands in an Unattend.xml file

The command(s) will run once for the first user that logs into the system. Think about it. If you add a user a year down the road, the commands do not execute on the original login of that user. The ...
Elliot Huffman's user avatar
2 votes

Automated Ubuntu 20.04 server install: How can I get hostname from DHCP server?

Using part of the answer from here, if you set the hostname to localhost in the identity section of the autoinstall YAML, the next boot of the machine will configure to it's DHCP issued hostname. For ...
megabytemike's user avatar
2 votes

Automated Ubuntu 20.04 server install: How can I get hostname from DHCP server?

You can do it, using a script for a DHCP hook. Create a new file: sudoedit /etc/dhcp/dhclient-exit-hooks.d/hostname Paste the following code into the file, save and close: #!/bin/sh # Filename: ...
Christopher H's user avatar
2 votes
Accepted

Showing message to the user during a Debian unattended preseeded installation

You will be pretty limited by debconf and it may not be worth the effort. I don't think you'll be able to do it at all with a script run in-target. I did have success using the following preseed ...
Andrew Lowther's user avatar
2 votes
Accepted

Unattended-Upgrades override Allowed-Origins

After a bit of digging in apt source code and then in apt-conf manual page it turns out that there is a way [...]#clear is used to erase a part of the configuration tree. The specified element and ...
silmaril's user avatar
  • 511
1 vote

.NET Framwork 3.5 Offline Unattended Install

I managed to solve it with: Extract or mount a Windows 10 ISO on your host Copy the file microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab from ISO\sources\sxs onto the target ...
sailektiv's user avatar
1 vote
Accepted

Unattended-upgrades can't update itself: SIGUSR1 received, will stop

In /etc/apt/apt.conf.d/50unattended-upgrades, change the following setting to false: // Split the upgrade into the smallest possible chunks so that // they can be interrupted with SIGUSR1. This makes ...
Christopher K.'s user avatar
1 vote

How do I make unattended-upgrades email me every time it runs?

In unattended-upgrades version 2.8: // Set this value to one of: // "always", "only-on-error" or "on-change" // If this is not set, then any legacy MailOnlyOnError (...
Stuart Cardall's user avatar
1 vote
Accepted

Set static TCP port in SQL Server unattended installation

After long hours searching for a viable solution I came up with this PowerShell function that can set the TCP port of a specific SQL Server instance: function SetPort($instance, $port) { # fetch ...
Ondrej Tucny's user avatar
1 vote
Accepted

Windows unattended.xml install - drive mirroring / software raids

The unattended setup cannot do that. The setup is not (yet) able to manage storage-spaces and/or create dynamic discs in pools. [update: formating fail] I think it should be possible to do that with ...
bjoster's user avatar
  • 5,002
1 vote
Accepted

Does PXELinux Server can perform an Unattended Windows Installation?

Using the Microsoft deployment toolkit you can achieve that. Mind you, you still need to have a Windows host to prepare the answer files, the installation routine and the deployment share (which can ...
natxo asenjo's user avatar
  • 5,829
1 vote
Accepted

Windows - multiple concurrent unattended installations

You can simultaneously install Windows and Linux assets with Serva. You can also use Microsoft tools like WDS/MDT (free) and SCCM (non-free); MS tools require MS Server as host.
Pat's user avatar
  • 3,599
1 vote

Accept License terms with sysprep and unattend.xml Windows Server 2016

I had the issue that I needed to accept the EULA during the Windows setup steps before Windows is even installed. This helped me to get rid of the EULA window during the setup: * In Windows System ...
YZN3RF's user avatar
  • 11
1 vote

Accept License terms with sysprep and unattend.xml Windows Server 2016

In my case this works as expected: <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="...
Gorodeckij Dimitrij's user avatar
1 vote

How do I set a custom default accent color during deployment of Windows 10?

Predefined colors are deprecated. Use a custom hex ARGB color value preceeding with 0x. E.g.: 0xff0078d7 (default blue). Or you may want to use 'Automatic'. More infomation: https://docs.microsoft....
Pano's user avatar
  • 11
1 vote

Non-interactive (silent) install of MySQL 5.7 on Ubuntu 16.04 LTS

ROOT_SQL_PASS=foo123 sudo debconf-set-selections <<< "mysql-server mysql-server/root_password password $ROOT_SQL_PASS" sudo debconf-set-selections <<< "mysql-server mysql-server/...
Matt's user avatar
  • 215
1 vote

Non-interactive (silent) install of MySQL 5.7 on Ubuntu 16.04 LTS

MrClean's answer was great. But, I was getting the following error when trying to run the script on Ubuntu 16.04 server (bash or fish shell): Files/scripts/install_mysql.sh: 7: Files/scripts/...
dcarrith's user avatar
  • 141
1 vote

Automatically download, but do not install, upgrades

You can also use APT::Periodic settings to just download the packages, and disable unattended-upgrades: // Do "apt-get update" automatically every n-days (0=disable) APT::Periodic::Update-...
Dario Seidl's user avatar
1 vote

Windows Server 2012 unattended upgrade

Following the recommendation above, this is what I did. Installed a Demo version of Windows Server 2008R2 in a virtual machine. obtained the Demo version of windows server 2012R2 followed up this ...
Gilberto's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible