Archiv rubriky: Powershell

get-adgroupmember : The size limit for this request was exceeded

Although I have worked in big infrastructures, it is not long time ago, I have personally met with the limitation of ADWS service.  Because exists good reasons why this limit should not be changed on DC server, command-let get-adgroupmember can … Celý příspěvek

Rubriky: Powershell | Komentáře nejsou povolené u textu s názvem get-adgroupmember : The size limit for this request was exceeded

How to create secure string and how to get back plaintext from secure string

$SecString = Read-Host „Put Password String“ -AsSecureString $GetBackPlainText = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($SecString) $PlainText = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($GetBackPlainText)

Rubriky: Powershell | Komentáře nejsou povolené u textu s názvem How to create secure string and how to get back plaintext from secure string

Novinky v Powershell v 5

Transcript loggining – GPO ( loguje všechno, i příkazy Exchange, AD admin center atd.,  které běží na pozadí!) GPO cesta k nastavení: Computer Policy: Computer Configuration -> Administrative Templates -> Windows Components -> Windows PowerShell -> Turn on PowerShell Transcription … Celý příspěvek

Rubriky: Powershell | Komentáře nejsou povolené u textu s názvem Novinky v Powershell v 5

Powershell – Regular Expressions „list of characters“

    . matches any character except newline \ escape character \w word character [a-zA-Z_0-9] \W non-word character [^a-zA-Z_0-9] \d Digit [0-9] \D non-digit [^0-9] \n new line \r carriage return \t tabulation \s white space \S non-white space ^ … Celý příspěvek

Rubriky: Powershell | Komentáře nejsou povolené u textu s názvem Powershell – Regular Expressions „list of characters“

How automatically set DSRM password or something like that via Powershell

function set-DSRMPass { Begin {write-host „`n“ Write-Host -ForeGroundColor Yellow „Set new DSRM password …… “ ; } Process { #$ntdspasschange = ‚ntdsutil „set dsrm password“ „reset password on server null“‚ #invoke-expression $ntdspasschange $pass = Read-Host „password“ -AsSecureString $wshell = New-Object … Celý příspěvek

Rubriky: Powershell | Komentáře nejsou povolené u textu s názvem How automatically set DSRM password or something like that via Powershell