dsc (en)

  • How to unzip big archives in Powershell DSC configurations How to unzip big files in Powershell DSC configurations

    If you ever need to unzip BIG archive files in Powershell DSC configurations (during deployment some software), you will possibly get stuck, because using Archive resource is not suitable for this task as it is very slow. xArchive also will not help.

    One possible solution is to unzip it with 7zip or some other command line utility using WindowsProcess resource, but be warned that WindowsProcess will just start the process and then will go to the next instruction in your configuration. See the example:

  • Executable or batch-file as service in Windows with Powershell DSC Executable or batch-file as service in Windows with Powershell DSC

    In case if you ever need to create Windows service from an executable or even bat-file, please feel free to use the following configuration in Powershell DSC.

    The solution based on the NSSM software which is very similar to srvany.exe (from Windows 2003 Kit). The main difference NSSM from srvany - is that srvany does not close the underlying process if the service is stopped. And NSSM does close it. Download NSSM.