Remove last character using TrimEnd()



You somehow create an array using a loop and want to sperate items with comma or etc. but everyone knows the last char of this array is one of that comma and unwant.You have to remove it. Usually we do this like

string mystring = “some,thing,in,this,array,”;

mystring = mystring.Substring(0, mystring.Length — 1);
this is correct bu there is an easy way to do it:

mystring = mystring.TrimEnd(‘,’);

Function Install Zabbix

Process automation


Force update UE-V templates

HowTo, Process automation

Computer logon script

User logon script


Create service groups

Process automation


Force UE-V sync or profile migration

Process automation


Deploy powershell script like SCCM application

HowTo, PowerShell Scrtips

Have some files and wish to come to a distillation folder using SCCM. It necessary to look like application deploy.

  1. Create PS script like this for Install

    2. Create PS script for uninstall

    3. Create two cmd scripts for run powershell ps1 files when user press «install» and «uninstall» using sccm software center

    4. Create application in SCCM

Quick copy software to target location by powershell



Set autoreply state for mailbox



Hardware inventory [Инвентаризация PowerShell]

Collect information, HowTo

How get mother, video card, hdd, cpu, board powershell


Add flag Google Chrome — «enable-site-per-process» script group policy (GPO) Meltdown [Добавить флаг Google Chrome — enabled_labs_experiments через групповую политику]

Administration Issues, Process automation