fachinformatiker-wiki

it's easy when it's here

User Tools

Site Tools


microsoft:allgemeines:powershell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
microsoft:allgemeines:powershell [2024/02/21 15:36] gsysmicrosoft: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 '-E7' -Context 5,4 %% | get interface wich contains E7 in mac adress 5 lines before and 4 after |
 +|tnc -port 443 grunwald.systems | alias für Test-NetConnection - test if port open |
 |Rename-Computer -NewName "Server044" -DomainCredential Domain01\Admin01 -Restart | Umbenennen eines lokalen Remotecomputers | |Rename-Computer -NewName "Server044" -DomainCredential Domain01\Admin01 -Restart | Umbenennen eines lokalen Remotecomputers |
 |Rename-Computer -ComputerName "Srv01" -NewName "Server001" -DomainCredential Domain01\Admin01 -Force | Umbenennen eines Remotecomputers | |Rename-Computer -ComputerName "Srv01" -NewName "Server001" -DomainCredential Domain01\Admin01 -Force | Umbenennen eines Remotecomputers |
Line 17: Line 20:
 | Get-Content C:\log.txt –Wait| (Log-)File Inhalt "live" ausgeben | | Get-Content C:\log.txt –Wait| (Log-)File Inhalt "live" ausgeben |
 | 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 | select serialnumber | Serialno. / Service Tag auslesen |+%% Get-WmiObject win32_SystemEnclosure | select serialnumber  %%| Serialno. / Service Tag auslesen |
 | New-SelfSignedCertificate -Subject wsus.oes.ml-bw.de -DnsName wsus.oes.ml-bw.de -CertStoreLocation cert:\LocalMachine\My -KeyAlgorithm RSA -KeyLength 2048 -KeyExportPolicy Exportable -NotAfter (Get-Date).AddYears(10) | Self Signed Cert 10 Jahre | | New-SelfSignedCertificate -Subject wsus.oes.ml-bw.de -DnsName wsus.oes.ml-bw.de -CertStoreLocation cert:\LocalMachine\My -KeyAlgorithm RSA -KeyLength 2048 -KeyExportPolicy Exportable -NotAfter (Get-Date).AddYears(10) | Self Signed Cert 10 Jahre |
  
  
microsoft/allgemeines/powershell.1708526202.txt.gz · Last modified: 2024/02/21 15:36 by gsys