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

HowTo

 

Set autoreply state for mailbox

HowTo

 

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

Source: https://stackoverflow.com/questions/48115515/how-to-enable-site-per-process-flag-using-chromeoptions-in-webdriver-c-sharp

Get files size over 200 Mb and last access over 60 days [Формирует таблицу файлов больше чем 200 Мб и последний доступ более 60-ти дней]

Collect information

 

How can I easily remove a string of text in PowerShell

HowTo

Q. How can I easily remove a string of text in PowerShell?

A. A simple way to remove a string from a string is to search for the string to be replaced and substitute with a blank string. For example to remove LAB I could use:

$LabShortName = $Lab.Name.Replace(«LAB»,»»)

 

http://www.itprotoday.com/management-mobility/remove-string-string-powershell

Audit Active Directory Objects Changes

Collect information, Process automation

 

Audit Active Directory Last Logon Over 7 Days [Учетные записи не входившие в систему более 7-ми дней]

Collect information, Process automation