temp

MS Technet Library - Exchange Problembehandlung
MS Technet Library - Windows Small Business Server 2008

MS TechCenter - Windows Small Business Server

http://learningpcs.blogspot.de/

    [void][Windows.Security.Credentials.PasswordVault,Windows.Security.Credentials,ContentType=WindowsRuntime]
        $PasswordVault = New-Object -TypeName Windows.Security.Credentials.PasswordVault

Powershell:

https://en.wikiversity.org/wiki/PowerShell


Powershell:objektorientiert:

https://www.sapien.com/blog/2015/03/18/hidden-sort-of-the-hidden-keyword-in-windows-powershell-5-0-preview/


Powershell:Module

https://www.powershellgallery.com/packages/SCOrchDev-PasswordVault/2.1.0/Content/SCOrchDev-PasswordVault.psm1

MSTN: System.Management.Automation.Cmdlet
MSDoc: System.Management.Automation.Cmdlet

MSTN: System.Management.Automation.PSCmdlet
MSDoc: System.Management.Automation.PSCmdlet

Understanding a Windows PowerShell Module:
https://msdn.microsoft.com/library/dd878324.aspx

How to Write a PowerShell Module Manifest:
https://msdn.microsoft.com/library/dd878340.aspx

https://docs.microsoft.com/powershell/module/microsoft.powershell.core/new-modulemanifest


Powershell:Signatur

MSDocs: About Signing
MSTN: about_Signing
https://technet.microsoft.com/de-de/library/2008.04.powershell.aspx
https://www.hanselman.com/blog/SigningPowerShellScripts.aspx
http://www.powershellpraxis.de/index.php/zertifikate-pki/psskripte-signieren


WPF:

Password-Dialog:
http://www.blackwasp.co.uk/PasswordBox.aspx


MS-SQL:

Export query result to .csv file in SQL Server 2008
https://stackoverflow.com/questions/3169220/export-query-result-to-csv-file-in-sql-server-2008

DataTables in PowerShell
https://blog.netnerds.net/2015/02/working-with-basic-net-datasets-in-powershell/

MS-SQL & JSON
https://docs.microsoft.com/sql/relational-databases/json/json-data-sql-server

Linq & Powershell
https://stackoverflow.com/questions/38360545/can-linq-be-used-in-powershell
https://outnull.wordpress.com/2016/10/16/linq-in-powershell/


Windows 7:

QuickLaunch:
%APPDATA%\Microsoft\Internet Explorer\Quick Launch

Autostart-Ordner:
%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup


Culture

Get-Culture | Format-List -Property *
Get-UICulture | Format-List -Property *

[Threading.Thread]::CurrentThread.CurrentCulture

https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/get-culture
https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/get-uiculture

[System.Globalization.CultureInfo]::GetCultures( [System.Globalization.CultureTypes]::AllCultures )

https://stackoverflow.com/questions/7052765/powershell-changing-the-culture-of-current-session


[DateTime]

https://msdn.microsoft.com/library/az4se3k1.aspx


[ADSI] = [System.DirectoryServices.DirectoryEntry]
https://gallery.technet.microsoft.com/scriptcenter/Get-ADSIObject-Portable-ae7f9184
https://msdn.microsoft.com/library/system.directoryservices.directoryentry.aspx

http://www.itprotoday.com/windows-8/check-if-ou-exists-using-powershell
[string] $Path = "OU=Labs,OU=NA,DC=savilltech,DC=net"
if(![adsi]::Exists("LDAP://$Path"))
{
}

https://www.msxfaq.de/code/powershell/ps-ldap-gc.htm

https://blogs.msdn.microsoft.com/adpowershell/2009/03/11/active-directory-powershell-the-drive-is-the-connection/

https://blogs.msdn.microsoft.com/arulk/2006/07/25/adsi-scripting-with-windows-powershell/


Active Directory via REST

http://samirvaidya.blogspot.de/2012/06/using-active-directory-web-services-in.html
https://msdn.microsoft.com/en-us/library/dd303965.aspx


Set-StrictMode    -Version Latest
Set-PSDebug   -Trace 2

# $Script:OutputEncoding           = New-Object -TypeName System.Text.UTF8Encoding
$Script:OutputEncoding           = [System.Text.Encoding]::UTF8
$Script:ErrorActionPreference  = [System.Management.Automation.ActionPreference]::Stop

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables

[System.Enum]::getValues([System.Management.Automation.ActionPreference])
[System.Enum]::getNames([System.Management.Automation.ActionPreference])

https://blogs.technet.microsoft.com/heyscriptingguy/tag/powertip/

MSTN: about_Functions_Advanced_Parameters



https://kevinmarquette.github.io/2017-04-10-Powershell-exceptions-everything-you-ever-wanted-to-know/

https://stackoverflow.com/questions/9294949/when-should-i-use-write-error-vs-throw-terminating-vs-non-terminating-errors

MSTN: Write-Error
MSDoc: Write-Error
about_Throw
about_Return
about_Throw
about_Trap

MSTN: about_Throw
MSDoc: about_Throw

MSTN: about_Try_Catch_Finally


https://stackoverflow.com/questions/8901507/how-do-i-make-a-powershell-function-return-an-object-and-set-to-false

$MyErrorRecord = New-Object -TypeName System.Management.Automation.ErrorRecord -ArgumentList "", "", ([System.Management.Automation.ErrorCategory]::NotSpecified), ""
$PSCmdlet.WriteError($MyErrorRecord)


$m = new-module -ascustomobject { function Add($x,$y) { $x + $y } }; $m.Add(1,1)


MD5 Hash from String (PS5@W10)

(([System.BitConverter]::ToString((New-Object -TypeName System.Security.Cryptography.MD5Crypovider).ComputeHash( ([system.Text.Encoding]::UTF8).GetBytes("KeepThingsEasy") ))) -replace "\W").ToLower()

MD5 Hash from String (PS4@W7)

(([System.BitConverter]::ToString((New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider).ComputeHash( ([system.Text.Encoding]::UTF8).GetBytes("KeepThingsEasy") ))) -replace "\W").ToLower()

desktop.ini Favoriten@W7

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21796
IconResource=%SystemRoot%\system32\imageres.dll,-115
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=-173

http://ukgo.altervista.org/links/Linksammlung__BooksIT.html


Powershell: Banner

function Write-Banner {
    [CmdletBinding()]
    param (

        # Text
        [parameter(Mandatory=$true)]
        [ValidateNotNullOrEmpty()]
        [System.String]$Text,

        [parameter(Mandatory=$false)]
        [ValidateNotNullOrEmpty()]
        [System.Int16]$Width = 80,

        [parameter()]
        [Switch]$ToClipboard
    )

    $Text = $Text.Trim()
    $Local:pl = [System.Math]::Floor( ($Width - ($Text.Length)) / 2 + ($Text.Length) - 1)
    $Local:pr = (($Width - 1) *-1)

    $Local:OutValue = ("{1}{0}#{2}#{0}{3,$pr}#{0}#{2}#{0}{1}" -f ([System.Environment]::NewLine), ("#" * $Width), (" " * ($Width - 2)), ("#{0,$pl}" -f $Text))

    if ($ToClipBoard) {
        $OutValue | clip
    } else {
        return $OutValue
    }
}

foreach ($i in 33..127) { $c = ([System.Convert]::ToChar($i)).ToString() ; Write-Host ("{0}: " -f $c) -NoNewline ; $c -match "\w" }

foreach ($c in @("Ä", "ä", "Ü", "ü", "Ö", "ö", "ß")) { Write-Host ("{0}: " -f $c) -NoNewline ; $c -match "\w" }


LATEX: Interaktive Formulare
http://texwelt.de/wissen/fragen/7768/wie-erstelle-ich-ein-gutes-ausfullbares-pdf-formular


explorer.exe "shell:::{26EE0668-A00A-44D7-9371-BEB064C98683}\0\::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921} -Microsoft.Personalization\pageWallpaper"

$host.ui.RawUI.WindowTitle = "Changed Title"

Get-ChildItem // v2.0

Get-ChildItem -Recurse -Include *.log | Sort-Object -Property LastWriteTime -Descending | Select-Object -Property LastWriteTime, Fullname

Get-ChildItem -Path "C:\" -Recurse -Include *.log | Sort-Object -Property LastWriteTime -Descending | Select-Object -Property LastWriteTime, Fullname

Set Powershell prompt to current ISO 8601

function prompt { ("PS:{0}>" -f ((Get-Date).ToString("s") -replace "[^\dT]" )) }

function prompt {  Write-Host ("PS:{0}>" -f ((Get-Date).ToString("s"))) -NoNewline -ForegroundColor Yellow ; return " " }

function prompt {  Write-Host ("PS:{0}>" -f ((Get-Date).ToString("s") -replace "[^\dT]" )) -NoNewline -ForegroundColor Yellow ; return " " }

http://ukgo.altervista.org/links/Linksammlung__BooksIT.html


Dynamische Parameter:
https://www.msxfaq.de/code/powershell/psparam.htm
https://docs.microsoft.com/de-de/dotnet/api/system.management.automation.validatesetattribute
https://github.com/RamblingCookieMonster/PowerShell/blob/master/New-DynamicParam.ps1
https://stackoverflow.com/questions/22032525/is-it-possible-to-add-a-validation-attribute-to-a-function-parameter-after-the-f

http://www.powershellmagazine.com/2014/05/29/dynamic-parameters-in-powershell/

Konzeptionelle Hilfethemen für Windows PowerShell Core
about_Comment_Based_Help


https://www.govinda-natur.de/shop/stevia/705/stevia-tabs


Jekyll:
Jekyll
Jekyll plugin that converts AsciiDoc

http://magazin.phlow.de/jekyll/


https://de.wikipedia.org/wiki/Liste_von_Abk%C3%BCrzungen_(Netzjargon)


Excel:

https://support.office.com/en-us/article/excel-specifications-and-limits-1672b34d-7043-467e-8e27-269d656771c3
https://support.office.com/de-de/article/spezifikationen-und-beschränkungen-in-excel-1672b34d-7043-467e-8e27-269d656771c3

https://excelmacromastery.com/excel-vba-array/


Konfigurationsdatei:
Wo sollen die "Windows-Domänen

Brennpunkte:
Berechtigungen: Berechtigungsschema/Rollen finalisieren.

Berechtigungen: SafeMaster_All (als fallback, im Normalbetrieb deaktiviert. Können deaktivierte Benutzerkonten als Member hizugefügt werden? Dualcontrol?

Gruppen: Anlage der neuer Gruppen, diese Woche! Berechtigung auf alte Safes, als Vorbereitung zur Migration der Safes. Die neuen Safes bleiben sauber.


((Get-Command -Name Write-Host).Parameters.ForegroundColor.ParameterType).GetEnumValues() | ForEach-Object { Write-Host ("====> This Coler is named {0}" -f $_) -ForegroundColor $_ }
# or
([System.ConsoleColor]).GetEnumValues() | ForEach-Object { Write-Host ("====> This Coler is named {0}" -f $_) -ForegroundColor $_ }

$true  -and $true     => true
$true  -and $false    => false
$false -and $true     => false
$false -and $false    => false

$true  -or $true       => true
$true  -or $false      => true
$false -or $true       => true
$false -or $false      => false

$true  -xor $true      => false
$true  -xor $false     => true
$false -xor $true      => true
$false -xor $false     => false

Wer jeden Tag zwei stunden läuft lebt zwei Jahre länger, verbringt aber vier Jahre mit laufen.


https://de.wikipedia.org/wiki/Portable_Kontakte

SCIM: https://en.wikipedia.org/wiki/System_for_Cross-domain_Identity_Management
Sailpoint: https://www.sailpoint.com/blog/scim-2-0-eagle-landed/
Sailpoint + PAM: https://www.sailpoint.com/news/sailpoint-introduces-privileged-account-management-module/


JSON
https://www.youtube.com/watch?v=7YcW25PHnAA
https://www.programmableweb.com/


Python

YouTube-Chanal: Corey Schafer
Python Tutorial: Working with JSON Data using the json Module
Python Tutorial: CSV Module - How to Read, Parse, and Write CSV Files
Python Tutorial: Python OOP Tutorial 1: Classes and Instances

https://www.youtube.com/watch?v=Xi52tx6phRU


JIRA

Filter:

(project = FIRST OR project = SECOND) AND assignee = currentuser()

project IN ("FIRST", "SECOND") AND status NOT IN (Abgenommen, Erledigt, Abgeschlossen) AND assignee = currentuser() ORDER BY created ASC

JIRA - Advanced searching


CMD Printer

http://www.winfaq.de/faq_html/Content/tip2000/onlinefaq.php?h=tip2028.htm
https://www.gruppenrichtlinien.de/artikel/drucker-per-script-zuweisen/


OutputEncoding

Powershell:

$Global:OutputEncoding    = [System.Text.Encoding]::UTF8

CMD:

:: UTF7
chcp 65000 > NUL

:: UTF8
chcp 65001 > NUL

:: West European Latin
chcp 1252 > NUL

MSDocs: chcp

Special Folders

Powershell:

# List special folder
[System.Enum]::GetNames('System.Environment+SpecialFolder') | Sort-Object
[System.Environment+SpecialFolder]::GetNames([System.Environment+SpecialFolder]) | Sort-Object

# Get special folder path
[System.Environment]::GetFolderPath("CommonStartup")

PowerShellMagazine: PSTip Working with Special Folders



Nachlese:

https://www.jaapbrasser.com/active-directory-friday-creating-active-directory-groups-using-powershell/
https://blogs.msdn.microsoft.com/arulk/2006/07/25/adsi-scripting-with-windows-powershell/
https://social.technet.microsoft.com/wiki/contents/articles/26436.how-to-create-and-use-enums-in-powershell.aspx
https://msdn.microsoft.com/en-us/library/cc245829.aspx
https://msdn.microsoft.com/en-us/library/cc245513.aspx
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_functions_advanced_parameters?view=powershell-6

https://www.openshift.org/
https://de.wikipedia.org/wiki/Travis_CI


Nachlese none IT:

SZ: Langweilige Besprechungen - Acht Fehler in Meetings - und was Sie dagegen tun können
YT: Der Upstalsboom Weg


Windows OS Lifecyrcle:
https://support.microsoft.com/de-de/lifecycle/search
https://support.microsoft.com/de-de/lifecycle/search?alpha=Windows%20Server%202008%20Service%20Pack%202
https://support.microsoft.com/de-de/help/13853/windows-lifecycle-fact-sheet


=?UTF-8?Q?=F0=9F=91=91=20Warten=20Sie=20immer=20noch=20auf=20die=20Richti?=

Moderne Webanwendungen mit ASP.NET MVC und JavaScript OReilly, 2017
.NET-Praxis: Tipps und Tricks zu .NET und Visual Studio entwickler.Press, 2016
Single Page Applications entwickler.Press, 2015


Verteilte Systeme und Services mit .NET 4.5


([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)

(Get-WmiObject -Class Win32_ComputerSystem).PartOfDomain
(Get-WmiObject -Class Win32_ComputerSystem).Domain
(Get-WmiObject -Class Win32_ComputerSystem).Name

https://blogs.technet.microsoft.com/askperf/2012/02/17/useful-wmic-queries/

--

BATCH: touch

nul > C:\NewEmptyFile.txt
nul > C:\NewEmptyFile.txt > nul 2>&1

https://www.youtube.com/watch?v=X_ovRVQ35tI - 𝑊𝑖𝑙𝑠𝑜𝑛 𝑃𝑖𝑐𝑘𝑒𝑡𝑡: 𝐵𝑒𝑠𝑡 𝑆𝑜𝑛𝑔𝑠 𝑂𝑓 𝑊𝑖𝑙𝑠𝑜𝑛 𝑃𝑖𝑐𝑘𝑒𝑡𝑡 - 𝐺𝑟𝑒𝑎𝑡𝑒𝑠𝑡 𝐻𝑖𝑡𝑠 𝐹𝑢𝑙𝑙 𝐴𝑙𝑏𝑢𝑚 𝑂𝑓 𝑊𝑖𝑙𝑠𝑜𝑛 𝑃𝑖𝑐𝑘𝑒𝑡𝑡

https://www.youtube.com/watch?v=xrdtBYs2W2E - Monika Gruber - Zu wahr um schön zu sein 2011
https://www.youtube.com/watch?v=8dn3t8R7Es8 - Monika Gruber - Hauptsach' g'sund

https://www.youtube.com/watch?v=dVLdovOijO0&t=9m40s Harald Lesch zum Klimawandel (Markus Lanz 20180814)
https://www.youtube.com/watch?v=dVLdovOijO0&t=31m0s Harald Lesch zum Klimawandel (Markus Lanz 20180814)

https://www.youtube.com/watch?v=L3kslisFvTU&t=27m0s Ladies Night vom 12. Oktober 2013 Mia Pitrau


WMI Code Creator v1.0
https://www.microsoft.com/en-us/download/details.aspx?id=8572


https://www.heise.de/download/product/mobaxterm-75970


https://www.gruppenrichtlinien.de/artikel/bearbeiten-von-zusaetzliche-registry-einstellungen-edit-extra-registry-settings-arbeiten-ohne-gpeditor/
https://docs.microsoft.com/en-us/powershell/module/grouppolicy/get-gpregistryvalue?view=win10-ps


https://docs.microsoft.com/de-de/powershell/dsc/authoringresourcecomposite
https://docs.microsoft.com/de-de/powershell/dsc/metaconfig


Film: Operation Finale


https://www.youtube.com/watch?v=mbprs2QG-BU,


Hate Cortan

reg add "HKLM\Software\Policies\Microsoft\Windows\Windows Search" /f /v "AllowCloudSearch" /t "REG_DWORD" /d "0"
reg add "HKLM\Software\Policies\Microsoft\Windows\Windows Search" /f /v "AllowCortanaAboveLock" /t "REG_DWORD" /d "0"
reg add "HKLM\Software\Policies\Microsoft\Windows\Windows Search" /f /v "AllowCortana" /t "REG_DWORD" /d "0"
reg add "HKLM\Software\Policies\Microsoft\Windows\Windows Search" /f /v "AllowCortanaInAADPathOOBE" /t "REG_DWORD" /d "0"

reg add "HKLM\Software\Policies\Microsoft\Windows\Windows Search" /f /v "DisableWebSearch" /t "REG_DWORD" /d "1"
reg add "HKLM\Software\Policies\Microsoft\Windows\Windows Search" /f /v "AllowSearchToUseLocation" /t "REG_DWORD" /d "0"
reg add "HKLM\Software\Policies\Microsoft\Windows\Windows Search" /f /v "ConnectedSearchUseWeb" /t "REG_DWORD" /d "0"

https://www.tecchannel.de/a/so-koennen-sie-cortana-abschalten,3277884
https://getadmx.com/?Category=Windows_10_2016&Policy=FullArmor.Policies.3B9EA2B5_A1D1_4CD5_9EDE_75B22990BC21::AllowCloudSearch
https://getadmx.com/?Category=Windows_10_2016&Policy=FullArmor.Policies.3B9EA2B5_A1D1_4CD5_9EDE_75B22990BC21::DisableWebSearch
https://getadmx.com/?Category=Windows_10_2016&Policy=FullArmor.Policies.3B9EA2B5_A1D1_4CD5_9EDE_75B22990BC21::AllowSearchToUseLocation

netsh advfirewall firewall add rule name="Block Cortana Outbound Traffic" dir="out" action="block" program="%windir%\systemapps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe" enable="yes" profile="any"

https://de.allyouneed.com/magazin/cortana-deaktivieren-ausblenden-entfernen-abschalten-windows-10/


Computerkonfiguration \ Richtlinien \ Administrative Vorlagen \ Windows-Komponenten \ Suche
[[/code]]

https://www.video2brain.com/de/tutorial/cortana-per-gruppenrichtlinie-ausschalten


Blocking specific ip adress by firewall

https://www.quora.com/How-can-I-block-IP-addresses-in-Windows-10


https://www.caselogic.com/de-de/de/products/laptop/sleeves

HUXS-111-BLACK
HUXS-111BLK
https://www.caselogic.com/de-de/de/products/laptop/sleeves/huxton-116-zoll-laptop-hulle-_-huxs_-_111_-_black

HUXS-113-BLACK ++++++
HUXS-113BLK
https://www.caselogic.com/de-de/de/products/laptop/sleeves/huxton-133-zoll-laptop-hulle-_-huxs_-_113_-_black
Saturn 2027533

HUXS-115-BLACK
HUXS-115BLK
https://www.caselogic.com/de-de/de/products/laptop/sleeves/huxton-156-zoll-laptop-hulle-_-huxs_-_115_-_black

LAPS-111-BLACK
LAPS-111BLK
https://www.caselogic.com/de-de/de/products/laptop/sleeves/hulle-fur-10-116-chromebookstultrabookst-_-laps_-_111_-_black

LAPS-112-BLACK
LAPS-112BLK
https://www.caselogic.com/de-de/de/products/laptop/sleeves/hulle-fur-ein-12-notebook-_-laps_-_112_-_black


data LocalizedData
{
    # culture='en-US'
    ConvertFrom-StringData @"
        TestTargetResourceResult       = Test result: "{0}"
        GetTargetResourceResult        = Get result as JSON: "{0}"
        SetFileHasBeenSaved            = File has been saved as: "{0}"
"@
}

http://www-pc.uni-regensburg.de/systemsw/win10/keys.htm
https://www.drwindows.de/windows-10-desktop/88608-key-fuer-cleaninstallation-windows-10-win-7-a-3.html

OS Key
Windows 10 Home TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 YTMG3-N6DKC-DKB77-7M9GH-8HVX7
Windows 10 Pro VK7JG-NPHTM-C97JM-9MPGT-3V66T
Windows 10 Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43

https://www.microsoft.com/en-us/evalcenter/evaluate-windows-10-enterprise


https://www.youtube.com/watch?v=YoDh_gHDvkk Queen & David Bowie - Under Pressure (Classic Queen Mix)
https://www.youtube.com/watch?v=MNWR7eDiy_w Merry Clayton - A song for you (1971)
https://www.youtube.com/watch?v=lv3UWM_3N3k Ty Taylor - Cha Cha

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License