cls
do{
$domains = (Get-ADForest).domains
Write-Host "Type the Group Name"
$GroupID = Read-Host "Example: GROUP-NAME"
Get-ADGroupMember "$GroupID" -recursive | Select-Object name
$response = read-host "More Query? Y=Yes/N=No"}
while ($response -eq "Y")
Write-Host "Close the Job..."
sleep 3
Process Kill for all Users on Terminal ServerQuelle erweitern
cls
do{
Write-Host "Type the Process with Ending"
$killprocess = Read-Host "Example: OUTLOOK.EXE"
taskkill /im "$killprocess" /f /t
$response = read-host "More Query? Y=Yes/N=No"}
while ($response -eq "Y")
Write-Host "Close the Job..."
sleep 3
Remove or replace special characters in any directory filenameQuelle erweitern
cd "C:\pfad\zum\Ordner"
# by default, -replace is case-insensitive (equivalent to -ireplace)
# for case-sensitive, use -creplace
Dir | Rename-Item –NewName { $_.name –replace "Awning character","Character to replace" }