kjacobsen icon

Exporting the registry

kjacobsen | PRO | 04/02/12 09:52:31 AM UTC | 0 ⭐ | 296 👁️ | Never ⏰ | []
PowerShell |

350 B

|

None

|

0 👍

/

0 👎

# Code Snippet from aperturescience.su
 
$regresult = reg export $key $destfile /y 2>&1
if ($lastexitcode -gt 0)
{
   send-email "Export registry key $key to $destfile failed $regresult" $false
   if ($stoponerror) { exit 10 }
}
else
{
   send-email "Export registry key $key to $destfile succeeded" $true
}
 
# Code Snippet from aperturescience.su

Comments