microsoft:allgemeines:powershell
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
microsoft:allgemeines:powershell [2022/11/02 16:39] – gsys | microsoft:allgemeines:powershell [2025/04/10 15:20] (current) – gsys | ||
---|---|---|---|
Line 2: | Line 2: | ||
^Befehl ^ Beschreibung ^ | ^Befehl ^ Beschreibung ^ | ||
+ | | Expand-Archive -Path File.zip -DestinationPath C:\Folder | Unzip file | | ||
+ | | %% ipconfig /all | Select-String -Pattern ' | ||
+ | |tnc -port 443 grunwald.systems | alias für Test-NetConnection - test if port open | | ||
+ | |Rename-Computer -NewName " | ||
+ | |Rename-Computer -ComputerName " | ||
+ | | Get-NetconnectionProfile \\ Set-NetconnectionProfile -InterfaceIndex 28 -NetworkCategory Private | Netzwerk auf privat stellen | | ||
+ | | Set-NetConnectionProfile -Name <Name des Netzwerks> | ||
| Get-ADDomainController | Informationen zu den DCs und der Domäne | | | Get-ADDomainController | Informationen zu den DCs und der Domäne | | ||
| %% Get-ADForest | Select ForestMode %% | Forest-Funktionsebene | | | %% Get-ADForest | Select ForestMode %% | Forest-Funktionsebene | | ||
Line 13: | Line 20: | ||
| Get-Content C:\log.txt –Wait| (Log-)File Inhalt " | | Get-Content C:\log.txt –Wait| (Log-)File Inhalt " | ||
| Get-Content C:\log.txt -Tail 3 | Letzte 3 Zeilen eines (Log-)Files ausgeben | | | Get-Content C:\log.txt -Tail 3 | Letzte 3 Zeilen eines (Log-)Files ausgeben | | ||
- | | '' | + | | %% Get-WmiObject win32_SystemEnclosure |
| New-SelfSignedCertificate -Subject wsus.oes.ml-bw.de -DnsName wsus.oes.ml-bw.de -CertStoreLocation cert: | | New-SelfSignedCertificate -Subject wsus.oes.ml-bw.de -DnsName wsus.oes.ml-bw.de -CertStoreLocation cert: | ||
microsoft/allgemeines/powershell.1667403581.txt.gz · Last modified: 2024/02/17 19:03 (external edit)