Autopilot / AD Join

From Windows PowerShell ISE Admin mode Run the first line in the powershell window to allow scripts to run , Select all   Set-ExecutionPolicy Unrestricted Type the following lines in a new script. The path C:\HWID can be changed to […]

ORCA

Install-Module ExchangeOnlineManagement git clone https://github.com/cammurray/orca.git   Connect-ExchangeOnline Import-Module C:\Tools\orca   Get-ORCAReport

Monkey365

mkdir C:\Tools; cd C:\Tools git clone https://github.com/silverhack/monkey365.git Import-Module C:\Tools\monkey365   $param = @{     Instance = ‚Azure‘;     Analysis = ‚All‘;     PromptBehavior = ‚SelectAccount‘;     all_subscriptions = $true;     TenantID = ‚00000000-0000-0000-0000-000000000000‘;     ExportTo = ‚HTML‘; }   $assets […]

Azure öffentliche IP ermitteln / absichern

Connect Az-Account Get-AZPublicIPAddress | select Name,IpAddress,PublicIpAllocationMethod   az login az network public-ip list –query ‚[].[name, ipAddress, publicIpAllocationMethod]‘ –o table       Connect-AzAccount $subs = Get-AzSubscription    ForEach ($sub in $subs) {     Set-AzContext -SubscriptionID $sub.ID     $nsgs = Get-AzNetworkSecurityGroup  […]

Change Exchange TLS Certificate

Get-ExchangeCertificate   Thumbprint                                Services   Subject ———-                                ——–   ——- 4A4B66E94A9195FA3344E34E01E6698C44C0A639  …….    O=Microsoft, OU=Microsoft Monitoring Agent, CN={5B5FCD1B-5085-4… D8C33B1E0FDFE180920C5CEED0612B95269FA1E7  IP.WS..    CN=EX2016SRV2 31E5D6D7E6BD77FC20FA4F490983C6945631CB6C  …….    CN=WMSvc-EX2016SRV2 DE67EC3C8D679AA35D17678FEC51907272B1BAE2  …WS..    CN=*.exchangeserverpro.net, OU=IT, O=LockLAN Systems Pty Ltd, L… A49E18338DB7B07E75D46DBF843D919A014F9A63  ….SF.    CN=Federation   $cert = Get-ExchangeCertificate -Thumbprint DE67EC3C8D679AA35D17678FEC51907272B1BAE2 $tlscertificatename […]

Sysvol-Migration von FRS auf DFSR

Sysvol-Migration von FRS auf DFSR Teil eines vergangenen Kundenprojektes war die Ablösung der vorhandenen Domain Controller durch Windows Server 2016. Die Domäne wurde bis zu diesem Zeitpunkt auf Windows Server 2008 R2 Domain Controllern mit Windows Server 2003-Funktionsebene betrieben. Da […]

Windows Server Audit PS Befehle

Kurze Info Befehl (Direkt) Befehl (Export) Beschreibung Installierte Features und Rollen `Get-WindowsFeature Where-Object { $_.Installed -eq $true }` `Get-WindowsFeature Systeminformationen (CMD) systeminfo systeminfo > C:\Audit\SystemInfo.txt Erfasst umfangreiche Systeminformationen (OS-Version, Patches, Hardware etc.) direkt in der Konsole oder in einer Textdatei. […]

Inplace Upgrade Server XYZ mit Eval Edition

Zuerst die aktuelle ISO der gewünschten Windows Server Version herunterladen. Danach auf einen lokalen Pfad (Beispiel: „C:\temp\winserver„) den Inhalt der gemounteten ISO kopieren. Folgende Befehle nach und nach in der CMD ausführen: dism /mount-wim /wimfile:“C:\temp\winserver\sources\install.wim“ /mountdir:“C:\Mount“ /index:2 dism /image:“C:\Mount“ /get-currentedition […]