📜 ⬆️ ⬇️

Amazon has released a fix for instances running under Windows Server 2012 R2, preventing the loss of network connections

This morning I received a notification from AWS support.

The notification states that the “Plug and Play Cleanup” feature of Windows Server 2012 R2, which checks the system for inactive devices once every 30 days, identifies EC2 network cards (the only way to access the instance) as inactive. As a result, the device is removed from the system and the next reboot will lose access to the instance. If access to the instance is not yet lost, you can make sure that the instance is not affected by this problem and you can prevent disabling of network interfaces using a specially released script that can be downloaded here or from the page with a description of the problem on the official website.


Instruction

The archive itself is the script and instructions for use. If in brief, on the instance as an administrator, you need to run the command:
 powershell -noprofile -executionpolicy unrestricted -file \RemediateDriverIssue.ps1 

PSRemoting, , ( ), -.

, (as-is, ):

$creds = (Get-Credential) $servers = import-csv c:\serverlist.csv Foreach($server in $servers) { echo d | xcopy /S c:\temp \\$server\c$\RemediateDriverIssue $session = new-pssession -computername $server -credential $creds invoke-command -session $session -scriptblock {powershell -noprofile -executionpolicy unrestricted -file C:\RemediateDriverIssue.ps1} }


:
-disableAutoRepair - Boolean, -force - Boolean, , . false. -logPath - , : c:\logs\RemediateDriverIssue.log -loggingEnabled - Boolean . true.


.
:
C:\Users\Administrator>powershell -noprofile -executionpolicy unrestricted -file RemediateDriverIssue.ps1 20140904_0843:07+00 INFO : Disabling scheduled task Plug and Play Cleanup. 20140904_0843:08+00 INFO : We have disabled the Plug and Play Cleanup scheduled task, please do not re-enable this scheduled task. 20140904_0843:09+00 INFO : This machine was found to be in a non-impacted state.
. , .

, VPS, Windows Server 2012 R2 , "Plug and Play Cleanup" , , , .
powershell -noprofile -executionpolicy unrestricted -file \RemediateDriverIssue.ps1

PSRemoting, , ( ), -.

, (as-is, ):

$creds = (Get-Credential) $servers = import-csv c:\serverlist.csv Foreach($server in $servers) { echo d | xcopy /S c:\temp \\$server\c$\RemediateDriverIssue $session = new-pssession -computername $server -credential $creds invoke-command -session $session -scriptblock {powershell -noprofile -executionpolicy unrestricted -file C:\RemediateDriverIssue.ps1} }


:
-disableAutoRepair - Boolean, -force - Boolean, , . false. -logPath - , : c:\logs\RemediateDriverIssue.log -loggingEnabled - Boolean . true.


.
:
C:\Users\Administrator>powershell -noprofile -executionpolicy unrestricted -file RemediateDriverIssue.ps1 20140904_0843:07+00 INFO : Disabling scheduled task Plug and Play Cleanup. 20140904_0843:08+00 INFO : We have disabled the Plug and Play Cleanup scheduled task, please do not re-enable this scheduled task. 20140904_0843:09+00 INFO : This machine was found to be in a non-impacted state.
. , .

, VPS, Windows Server 2012 R2 , "Plug and Play Cleanup" , , , .
powershell -noprofile -executionpolicy unrestricted -file \RemediateDriverIssue.ps1

PSRemoting, , ( ), -.

, (as-is, ):

$creds = (Get-Credential) $servers = import-csv c:\serverlist.csv Foreach($server in $servers) { echo d | xcopy /S c:\temp \\$server\c$\RemediateDriverIssue $session = new-pssession -computername $server -credential $creds invoke-command -session $session -scriptblock {powershell -noprofile -executionpolicy unrestricted -file C:\RemediateDriverIssue.ps1} }


:
-disableAutoRepair - Boolean, -force - Boolean, , . false. -logPath - , : c:\logs\RemediateDriverIssue.log -loggingEnabled - Boolean . true.


.
:
C:\Users\Administrator>powershell -noprofile -executionpolicy unrestricted -file RemediateDriverIssue.ps1 20140904_0843:07+00 INFO : Disabling scheduled task Plug and Play Cleanup. 20140904_0843:08+00 INFO : We have disabled the Plug and Play Cleanup scheduled task, please do not re-enable this scheduled task. 20140904_0843:09+00 INFO : This machine was found to be in a non-impacted state.
. , .

, VPS, Windows Server 2012 R2 , "Plug and Play Cleanup" , , , .
powershell -noprofile -executionpolicy unrestricted -file \RemediateDriverIssue.ps1

PSRemoting, , ( ), -.

, (as-is, ):

$creds = (Get-Credential) $servers = import-csv c:\serverlist.csv Foreach($server in $servers) { echo d | xcopy /S c:\temp \\$server\c$\RemediateDriverIssue $session = new-pssession -computername $server -credential $creds invoke-command -session $session -scriptblock {powershell -noprofile -executionpolicy unrestricted -file C:\RemediateDriverIssue.ps1} }


:
-disableAutoRepair - Boolean, -force - Boolean, , . false. -logPath - , : c:\logs\RemediateDriverIssue.log -loggingEnabled - Boolean . true.


.
:
C:\Users\Administrator>powershell -noprofile -executionpolicy unrestricted -file RemediateDriverIssue.ps1 20140904_0843:07+00 INFO : Disabling scheduled task Plug and Play Cleanup. 20140904_0843:08+00 INFO : We have disabled the Plug and Play Cleanup scheduled task, please do not re-enable this scheduled task. 20140904_0843:09+00 INFO : This machine was found to be in a non-impacted state.
. , .

, VPS, Windows Server 2012 R2 , "Plug and Play Cleanup" , , , .
powershell -noprofile -executionpolicy unrestricted -file \RemediateDriverIssue.ps1

PSRemoting, , ( ), -.

, (as-is, ):

$creds = (Get-Credential) $servers = import-csv c:\serverlist.csv Foreach($server in $servers) { echo d | xcopy /S c:\temp \\$server\c$\RemediateDriverIssue $session = new-pssession -computername $server -credential $creds invoke-command -session $session -scriptblock {powershell -noprofile -executionpolicy unrestricted -file C:\RemediateDriverIssue.ps1} }


:
-disableAutoRepair - Boolean, -force - Boolean, , . false. -logPath - , : c:\logs\RemediateDriverIssue.log -loggingEnabled - Boolean . true.


.
:
C:\Users\Administrator>powershell -noprofile -executionpolicy unrestricted -file RemediateDriverIssue.ps1 20140904_0843:07+00 INFO : Disabling scheduled task Plug and Play Cleanup. 20140904_0843:08+00 INFO : We have disabled the Plug and Play Cleanup scheduled task, please do not re-enable this scheduled task. 20140904_0843:09+00 INFO : This machine was found to be in a non-impacted state.
. , .

, VPS, Windows Server 2012 R2 , "Plug and Play Cleanup" , , , .
powershell -noprofile -executionpolicy unrestricted -file \RemediateDriverIssue.ps1

PSRemoting, , ( ), -.

, (as-is, ):

$creds = (Get-Credential) $servers = import-csv c:\serverlist.csv Foreach($server in $servers) { echo d | xcopy /S c:\temp \\$server\c$\RemediateDriverIssue $session = new-pssession -computername $server -credential $creds invoke-command -session $session -scriptblock {powershell -noprofile -executionpolicy unrestricted -file C:\RemediateDriverIssue.ps1} }


:
-disableAutoRepair - Boolean, -force - Boolean, , . false. -logPath - , : c:\logs\RemediateDriverIssue.log -loggingEnabled - Boolean . true.


.
:
C:\Users\Administrator>powershell -noprofile -executionpolicy unrestricted -file RemediateDriverIssue.ps1 20140904_0843:07+00 INFO : Disabling scheduled task Plug and Play Cleanup. 20140904_0843:08+00 INFO : We have disabled the Plug and Play Cleanup scheduled task, please do not re-enable this scheduled task. 20140904_0843:09+00 INFO : This machine was found to be in a non-impacted state.
. , .

, VPS, Windows Server 2012 R2 , "Plug and Play Cleanup" , , , .
powershell -noprofile -executionpolicy unrestricted -file \RemediateDriverIssue.ps1

PSRemoting, , ( ), -.

, (as-is, ):

$creds = (Get-Credential) $servers = import-csv c:\serverlist.csv Foreach($server in $servers) { echo d | xcopy /S c:\temp \\$server\c$\RemediateDriverIssue $session = new-pssession -computername $server -credential $creds invoke-command -session $session -scriptblock {powershell -noprofile -executionpolicy unrestricted -file C:\RemediateDriverIssue.ps1} }


:
-disableAutoRepair - Boolean, -force - Boolean, , . false. -logPath - , : c:\logs\RemediateDriverIssue.log -loggingEnabled - Boolean . true.


.
:
C:\Users\Administrator>powershell -noprofile -executionpolicy unrestricted -file RemediateDriverIssue.ps1 20140904_0843:07+00 INFO : Disabling scheduled task Plug and Play Cleanup. 20140904_0843:08+00 INFO : We have disabled the Plug and Play Cleanup scheduled task, please do not re-enable this scheduled task. 20140904_0843:09+00 INFO : This machine was found to be in a non-impacted state.
. , .

, VPS, Windows Server 2012 R2 , "Plug and Play Cleanup" , , , .
 powershell -noprofile -executionpolicy unrestricted -file \RemediateDriverIssue.ps1 

PSRemoting, , ( ), -.

, (as-is, ):

$creds = (Get-Credential) $servers = import-csv c:\serverlist.csv Foreach($server in $servers) { echo d | xcopy /S c:\temp \\$server\c$\RemediateDriverIssue $session = new-pssession -computername $server -credential $creds invoke-command -session $session -scriptblock {powershell -noprofile -executionpolicy unrestricted -file C:\RemediateDriverIssue.ps1} }


:
-disableAutoRepair - Boolean, -force - Boolean, , . false. -logPath - , : c:\logs\RemediateDriverIssue.log -loggingEnabled - Boolean . true.


.
:
C:\Users\Administrator>powershell -noprofile -executionpolicy unrestricted -file RemediateDriverIssue.ps1 20140904_0843:07+00 INFO : Disabling scheduled task Plug and Play Cleanup. 20140904_0843:08+00 INFO : We have disabled the Plug and Play Cleanup scheduled task, please do not re-enable this scheduled task. 20140904_0843:09+00 INFO : This machine was found to be in a non-impacted state.
. , .

, VPS, Windows Server 2012 R2 , "Plug and Play Cleanup" , , , .
powershell -noprofile -executionpolicy unrestricted -file \RemediateDriverIssue.ps1

PSRemoting, , ( ), -.

, (as-is, ):

$creds = (Get-Credential) $servers = import-csv c:\serverlist.csv Foreach($server in $servers) { echo d | xcopy /S c:\temp \\$server\c$\RemediateDriverIssue $session = new-pssession -computername $server -credential $creds invoke-command -session $session -scriptblock {powershell -noprofile -executionpolicy unrestricted -file C:\RemediateDriverIssue.ps1} }


:
-disableAutoRepair - Boolean, -force - Boolean, , . false. -logPath - , : c:\logs\RemediateDriverIssue.log -loggingEnabled - Boolean . true.


.
:
C:\Users\Administrator>powershell -noprofile -executionpolicy unrestricted -file RemediateDriverIssue.ps1 20140904_0843:07+00 INFO : Disabling scheduled task Plug and Play Cleanup. 20140904_0843:08+00 INFO : We have disabled the Plug and Play Cleanup scheduled task, please do not re-enable this scheduled task. 20140904_0843:09+00 INFO : This machine was found to be in a non-impacted state.
. , .

, VPS, Windows Server 2012 R2 , "Plug and Play Cleanup" , , , .

')

Source: https://habr.com/ru/post/235609/


All Articles