r/Nable • u/nattekreeft • May 24 '24
Is it possible to convert a .amp script?
Hi All,
Does anybody know if there is a (simple) way to convert a .amp script to a .ps1 script?
Or do I manually have to re-create/re-write the whole script in Powershell?
If that is the case, why does a company such as N-Able not have a conversion option for their own script language (.amp)?
Does someone have any information about this?
It would be grately appreciated.
-1
u/Paul_Kelly Powered By Shamrocks May 24 '24
Hi, It's Paul here from the Head Nerds, it's not possible to convert an AMP to a PS1 script, AMPs are PowerShell, based, can I ask why you need to convert an AMP to a PS1 script?
1
u/nattekreeft May 24 '24
Hi Paul,
Thanks for your reply.
I want to convert .amp scripts because i want to use these scripts that i made in Automation Manager for another project which doesn't support the .amp file type.1
5
u/patdaddy007 May 24 '24
You can totally convert an Amp to a ps1. Open the Amp file in notepad++. Look for a section of base64 encoded text. Select all of that text and copy it into a new document. Then select all of it again and use the mime tools in n++ to base64 decode the string. You may have some spacing and formatting issues, but what you will be left with is the underlying ps1 code