POWERSHELL TELEMETRY
Windows:
[System.Environment]::SetEnvironmentVariable('POWERSHELL_CLI_TELEMETRY_OPTOUT',1,'User');
[System.Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT',1,'User');
[System.Environment]::SetEnvironmentVariable('DOTNET_CLI_TELEMETRY_OPTOUT',1,'User');
[System.Environment]::SetEnvironmentVariable('DOTNET_TELEMETRY_OPTOUT',1,'User');
[System.Environment]::SetEnvironmentVariable('POWERSHELL_CLI_TELEMETRY_OPTOUT',1,'Machine');
[System.Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT',1,'Machine');
[System.Environment]::SetEnvironmentVariable('DOTNET_CLI_TELEMETRY_OPTOUT',1,'Machine');
[System.Environment]::SetEnvironmentVariable('DOTNET_TELEMETRY_OPTOUT',1,'Machine');
Linux:
export POWERSHELL_TELEMETRY_OPTOUT=1
export DOTNET_CLI_TELEMETRY_OPTOUT=1
[Service]
Environment=POWERSHELL_TELEMETRY_OPTOUT=1
Environment=DOTNET_TELEMETRY_OPTOUT=1
Environment=POWERSHELL_CLI_TELEMETRY_OPTOUT=1
Environment=DOTNET_CLI_TELEMETRY_OPTOUT=1
How to extract msu/msp/msi/exe files from the command line
Microsoft Hotfix Installer (.exe):
setup.exe /t:C:<target_dir> /c
Microsoft Update Standalone Package (.msu):
expand -F:* update.msu C:<target_dir>
cd <target_dir>
expand -F:* update.cab C:<target_dir>
Microsoft Patch File (.msp):
msix patch.msp /out C:<target_dir>
msix.zip (http://www.windowswiki.info/wp-content/uploads/2009/07/msix.zip)
Windows Installer Package (.msi):
start /wait msiexec /a "C:∖TMP∖setup.msi" /qb TARGETDIR="c:∖TMP∖"
http://www.windowswiki.info/2009/02/19/how-to-extract-msumspmsiexe-files-from-the-command-line/