How To Encrypt Code in PowerShell Scripts

preview_player
Показать описание
PowerShell scripts can contain sensitive information you wouldn't want to fall into the wrong hands. This video tutorial by Brien Posey explains how to encrypt individual lines of code within PowerShell scripts.

Brien Posey is a bestselling technology author, speaker, and 21x Microsoft MVP. In addition to his ongoing work in IT, Posey has trained as a commercial astronaut candidate in preparation to fly on a mission to study polar mesospheric clouds from space.

Music by AudioCoffee from Pixabay
Рекомендации по теме
Комментарии
Автор

just used this video thank you got sir worked perfectly

Jacob-tlig
Автор

Cant this be decrypted to get original code?

andreampere
Автор

$CodeSecureString = ConvertTo-SecureString $Code -AsPlainText -Force
ConvertTo-SecureString: Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'String'. Specified method is not supported.

I get the above error. Any info on this?

BetaPhish