PS AD – Erstelle OU in OUs

# Erstelle OU in OUS $ous = @((“IT_Entwicklung”,”Essen”),(“IT_Test”,”Bochum”)) foreach($ou in $ous) { $newou = New-ADOrganizationalUnit -Name $ou[0] -Path “OU=ORG,DC=ndsedv,DC=de” -Description $ou[1] -ProtectedFromAccidentalDeletion $false -PassThru $ouGroups=New-ADOrganizationalUnit

Weiterlesen

Last Boot Time WMI

Get-WmiObject –Class Win32_OperatingSystem –ComputerName localhost | Select-Object –Property @{n=”Last Boot Time”; e={[Management.ManagementDateTimeConverter]:: ToDateTime($_.LastBootUpTime)}} (Get-CimInstance -ClassName Win32_OperatingSystem).LastBootUpTime Last Boot Time WMI

Weiterlesen