Powershell stuff: New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress "10.0.0.0" -AddressFamily IPv4 -PrefixLength 24 -DefaultGateway 192.168.0.254 Set IP Address: Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses ("10.10.10.10", "10.10.10.10")Attach Computer to Domain:Add-Computer -DomainName mydomain -Credential mydomain\Administrator -RestartTurn Firewall Off:netsh advfirewall set allprofiles state offDOS stuff:Activate, Updates and other setup:sconfigFind and Log a user off - especially RDP sessionsDetermine the Session ID: qwinsta /SERVER:<NAME>Remove the session in question: rwinsta <SESSION_ID> /SERVER:<NAME> |
Windows Links >