windows-server-2012-r2

Powershell Invoke-Command remote works manually, but not from Jenkins

烂漫一生 提交于 2020-02-22 04:13:54
问题 I have a really strange situation where the same command works when run manually from a Windows Server 2012 R2, but not from the Jenkins slave process running on the same server. First, the output from the manual run, an admin PowerShell window: PS C:\Users\Administrator> whoami win-cm8utd1qfnc\administrator PS C:\Users\Administrator> Invoke-Command -computername web.sandbox.MUNGED.com -scriptblock {iisreset /restart} Attempting stop... Internet services successfully stopped Attempting start.

Powershell Invoke-Command remote works manually, but not from Jenkins

99封情书 提交于 2020-02-22 04:08:51
问题 I have a really strange situation where the same command works when run manually from a Windows Server 2012 R2, but not from the Jenkins slave process running on the same server. First, the output from the manual run, an admin PowerShell window: PS C:\Users\Administrator> whoami win-cm8utd1qfnc\administrator PS C:\Users\Administrator> Invoke-Command -computername web.sandbox.MUNGED.com -scriptblock {iisreset /restart} Attempting stop... Internet services successfully stopped Attempting start.

Powershell Invoke-Command remote works manually, but not from Jenkins

廉价感情. 提交于 2020-02-22 04:08:33
问题 I have a really strange situation where the same command works when run manually from a Windows Server 2012 R2, but not from the Jenkins slave process running on the same server. First, the output from the manual run, an admin PowerShell window: PS C:\Users\Administrator> whoami win-cm8utd1qfnc\administrator PS C:\Users\Administrator> Invoke-Command -computername web.sandbox.MUNGED.com -scriptblock {iisreset /restart} Attempting stop... Internet services successfully stopped Attempting start.

Powershell Invoke-Command remote works manually, but not from Jenkins

℡╲_俬逩灬. 提交于 2020-02-22 04:07:13
问题 I have a really strange situation where the same command works when run manually from a Windows Server 2012 R2, but not from the Jenkins slave process running on the same server. First, the output from the manual run, an admin PowerShell window: PS C:\Users\Administrator> whoami win-cm8utd1qfnc\administrator PS C:\Users\Administrator> Invoke-Command -computername web.sandbox.MUNGED.com -scriptblock {iisreset /restart} Attempting stop... Internet services successfully stopped Attempting start.

WIX Installer: Prevent installation on Windows Server 2012 R2

五迷三道 提交于 2020-01-27 04:28:19
问题 I have a WIX project that must only be installed on Windows Server 2016 (or newer). Looking at Microsoft documentation, VersionNT for: Windows Server 2016 is 603, Windows Server 2012 is 602. The VersionNT for Windows Server 2012R2 has never been mentioned. When I use below line of code: <Condition Message="!(loc.RequireServer2016)"><![CDATA[INSTALLED OR (VersionNT >= 603)]]></Condition> it still lets me install on Windows Server 2012R2. How can I limit the installation of my software to only

The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed

好久不见. 提交于 2020-01-24 19:31:06
问题 I have an issue when I tried to install an EXE file on windows server 2012 R2. When I tried to execute the EXE or MSI file I got below error, "The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance." I tried the following methods to fix the issue but nothing worked. Method 1: I tried to unregister and re-register msiexec file %windir%\system32\msiexec.exe /unregister %windir%

The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed

旧城冷巷雨未停 提交于 2020-01-24 19:31:04
问题 I have an issue when I tried to install an EXE file on windows server 2012 R2. When I tried to execute the EXE or MSI file I got below error, "The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance." I tried the following methods to fix the issue but nothing worked. Method 1: I tried to unregister and re-register msiexec file %windir%\system32\msiexec.exe /unregister %windir%

CultureInfo is not consistent between windows versions

可紊 提交于 2020-01-23 13:28:31
问题 Has anyone noticed that on different versions of Windows the CultureInfo format will result in a different pattern? Windows 7 created dddd, MMMM dd, YYYY Sample output: Windows 7 Both Windows 10 & Windows Server 2012 created dddd, MMMM d, YYYY Sample output: Windows 10 & Server 2012 R2 I got this sample from the MSDN site on DateTime. Modified to check the leading Zero of day. public class Sample { public static void Main() { string msg1 = "The date and time patterns are defined in the

CultureInfo is not consistent between windows versions

笑着哭i 提交于 2020-01-23 13:28:05
问题 Has anyone noticed that on different versions of Windows the CultureInfo format will result in a different pattern? Windows 7 created dddd, MMMM dd, YYYY Sample output: Windows 7 Both Windows 10 & Windows Server 2012 created dddd, MMMM d, YYYY Sample output: Windows 10 & Server 2012 R2 I got this sample from the MSDN site on DateTime. Modified to check the leading Zero of day. public class Sample { public static void Main() { string msg1 = "The date and time patterns are defined in the

PowerShell MySQL Backup Script Error in Task Scheduler 0x00041301

浪尽此生 提交于 2020-01-17 06:18:50
问题 I have created the following PowerShell script. $root = 'C:\Backups\My Website\Database Dumps\' $dateString = (Get-Date).ToString("yyyy-MM-dd") $fileName = $dateString + "-MyWebsiteDbBackup.sql" $backupFilePath = ($root + $fileName) $command = ("mysqldump -u root wpdatabase > " + "`"$backupFilePath`"") Write-Host $command Invoke-Expression $command Its function is supposed to be making a daily backup of a MySQL database for my WordPress website. When I run the script in PowerShell ISE, it