- Details
- Written by: po3dno
- Category: Power Shell
- Hits: 962
Get-WmiObject -class MSFC_FibrePortHBAAttributes -namespace "root\WMI" | Select -Expandproperty Attributes | % { ($_.PortWWN | % {"{0:x2}" -f $_}) -join ":"}
- Details
- Written by: po3dno
- Category: Power Shell
- Hits: 1023
$titles = ("Руководитель отдела","Руководитель управления","Руководитель сектора","Руководитель департамента")
# Рекурсивный поиск руководителя
function setmanager(){
param(
[string]$curdn = $null
)
- Details
- Written by: po3dno
- Category: Power Shell
- Hits: 971
param($a)
#if (test-connection $a){
Write-Host "Проверка компьютера " -ForeGroundColor Green $a
- Details
- Written by: po3dno
- Category: Power Shell
- Hits: 1188
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
- Details
- Written by: po3dno
- Category: Power Shell
- Hits: 1083
$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
}