• Home
  • PS
  • C#
  • Perl
  • MSSQL
  • MariaDB
  • Linux
  • Docker
  • MacOS
  • PG
  • Exchange Server
  • Windows
  • Other

Port WWN

Details
Written by: po3dno
Category: Power Shell
Created: 16 March 2015
Hits: 1127

Get-WmiObject -class MSFC_FibrePortHBAAttributes -namespace "root\WMI" | Select -Expandproperty Attributes | % { ($_.PortWWN | % {"{0:x2}" -f $_}) -join ":"}

Обновление поля "Руководитель" в AD

Details
Written by: po3dno
Category: Power Shell
Created: 07 October 2014
Hits: 1178

$titles = ("Руководитель отдела","Руководитель управления","Руководитель сектора","Руководитель департамента")

 

# Рекурсивный поиск руководителя

function setmanager(){

  param(

    [string]$curdn = $null

  )

 

Read more …

Инвентаризация

Details
Written by: po3dno
Category: Power Shell
Created: 01 October 2014
Hits: 1154

param($a)

 

#if (test-connection $a){

Write-Host "Проверка компьютера " -ForeGroundColor Green $a

  

Read more …

Windows shell commands to get system/process info

Details
Written by: po3dno
Category: Power Shell
Created: 15 September 2014
Hits: 1356

This file has 7 sections

1. A few examples showing Process information, mem usage, cpu, handles etc.., and altering processes

2. A few examples of retrieving system information (system, memory, drives, hardware)

3. A few examples of listing Services

4. A few examples of altering the state of services

5. A few examples on how to get network information

6. For reference: A very basic listing of some DOS (cmd) commands, for file, directory, or task management.

7. A few wellknown scanning/tracing tools

 

Read more …

Права на редактирование группы рассылки

Details
Written by: po3dno
Category: Power Shell
Created: 25 February 2014
Hits: 1238

$list = Get-Content "distributiongroup.txt"

Foreach ($i in $list) {

  $i

  $grp = get-distributiongroup $i

  $manage = $grp.managedby

  $newuser = get-user USER

  $newmanage = $manage + $newuser

  Set-distributiongroup $grp -managedby $newmanage -bypasssecuritygroupmanagercheck

}

 

  1. Структура AD из 1С
  2. ACL AD OU
  3. Удаляем отключенных пользователей из групп
  4. powershell POST multipart upload

Page 6 of 11

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

Login Form

  • Forgot your password?
  • Forgot your username?

Statistics

  • Users 2
  • Articles 164
  • Articles View Hits 149004