Сообщения

Сообщения за ноябрь, 2014

СМЕНА ЧАСОВОГО ПОЯСА В WINDOWS XP СКРИПТ И ГРУППОВЫЕ ПОЛИТИКИ

http://it-connection.ru/?p=3339

Убрать отображение выполнения скрипта.

https://social.technet.microsoft.com/Forums/ru-RU/6c658a0a-abde-406b-a340-d5995d517b7a/powershell-?forum=scrlangru https://social.technet.microsoft.com/Forums/ru-RU/60f93481-96f0-467a-b0d8-4ba08b0ae8e6/-?forum=scrlangru

How to get MSI file information with PowerShell

Изображение
How to get MSI file information with PowerShell If you’re an ConfigMgr administrator like me, you will often find yourself in the situation where you may want to get the Product Code from a MSI file. Or perhaps you’re interested in the Product Version or simply just the Product Name. A while back I wrote a simple PowerShell script that can assist with just that, for some reason I forgot to post about it so here goes. As this is going to be a short post, I’ll not go much into detail on how it works, instead I’ll just give you the script. Script 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 param( [parameter(Mandatory=$true)] [IO.FileInfo]$Path, [parameter(Mandatory=$true)] [ValidateSet("ProductCode","ProductVersion","ProductName")] [string]$Property ) try {     $WindowsInstaller = New-Object -ComObject WindowsInstaller.Installer     $MSIDatabase = $WindowsInstaller.GetType().In