Windows
Add a Computer to a Domain
Rename-computer -NewName "<New Name>" -Restart
Add-Computer -DomainName "<Domain-Name>" -Restart
Activate SMB1-Feature on Windows
Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol
Refresh Updates from WSUS
wuauclt /detectnow
wuauclt /scannow
Mac Lookup
arp -a <ip-adress>
Find Windows 10 Product Key
wmic path softwarelicensingservice get OA3xOriginalProductKey
or
Open regedit
and navigate to ComputerHKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionSoftwareProtectionPlatform
.
Computer is not able to login into domain
Note
Login as Local-Admin
Reset-ComputerMachinePassword -Server <domainName> -Credential <domain>\<domainUser>
Test-ComputerSecureChannel -Repair -Server <domainName> -Credential <domain>\<domainUser>
Install Drivers from other Computer in same domain
\<computerDomainName>c$WindowsINF
Keyboard-Shortcuts
Restart Graphics-Driver: win + ctrl + shift + b
Move Window to another Screen: win + shift + arrow right/left
Check S.M.A.R.T-Daten of Drive
wmic diskdrive get status
Get Status of Drive encryption
Note
For the Encryption to work, Secure Boot has to be enabled
manage-bde -status c:
while (1 -eq 1) {
$command=manage-bde -status c:
cls
$command
start-sleep -seconds 5
}
Interact with Time
net stop w32time
Set-Date "01/01/2024 4:20:00 PM"
w32tm /resync
Enable Remote-Console
winrm quickconfig
Copy to Network Device keeping File acces privileges
robocopy /mir <source> <destination> /copyall
Download file in PowerShell
Invoke-WebRequest -Uri $url -OutFile $dest
Windows 10 Lock-Screen Image Location
This PC → C: → Users → [Your User Name] → AppData → Local → Packages → Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy → LocalState → Assets
Download directly from the MS-Store
Anwendung als anderer Benutzer ausführen
Umschalt-Taste (Shift) + Rechtsklick → “Als anderer Benutzer ausführen”
Add (binary) directory to PATH-Variable
Hold Win and press Pause.
Click Advanced System Settings.
Click Environment Variables.
Append ;C:python27 to the Path variable.
Restart Command Prompt.
Windows 11
„Weitere Optionen anzeigen“ deaktivieren
reg add HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32 /ve /d "" /f
Install without Account
Open Terminal (Shift + F10)
Enter
OOBEBYPASSNRO
into the Terminal and press Enter
Helpfull Tools
https://mremoteng.org/download (Terminal-Manager)
https://www.heise.de/download/product/bginfo-46148 (Background Infos; Show System-Informations on Desktop)
WSL
Install
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Download the WSL Update: https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
wsl --set-default-version 2
Show WSL Version
wsl --status
Install a Linux Subsystem (Ubuntu)
Furter Information: https://stackoverflow.com/questions/52512026/is-it-possible-install-ubuntu-in-windows-10-wsl-without-microsoft-store
# download Ubuntu 22.04
Invoke-WebRequest -Uri https://aka.ms/wslubuntu2204 -OutFile Ubuntu.appx -UseBasicParsing
# install downloaded *.appx file
Add-AppxPackage .\Ubuntu.appx
Start Ubuntu under programms (Windows Search)
Show available distributions
wsl --list --verbose
Start a distribution
wsl -d <name>