docs/powershell.md aktualisiert
This commit is contained in:
@@ -79,7 +79,7 @@ Set-NetIPInterface -InterfaceAlias 'Inside' -AddressFamily 'IPv6' -Dhcp Disabled
|
|||||||
Set-NetIPInterface -InterfaceIndex '3' -AddressFamily 'IPv6' -Dhcp Disabled
|
Set-NetIPInterface -InterfaceIndex '3' -AddressFamily 'IPv6' -Dhcp Disabled
|
||||||
```
|
```
|
||||||
|
|
||||||
## Set-Networkcard-to-private
|
##### Set-Networkcard-to-private
|
||||||
|
|
||||||
> Set-NetConnectionProfile -InterfaceIndex [Index der Netzwerkkarte] -NetworkCategory [Public/Private/Domain]
|
> Set-NetConnectionProfile -InterfaceIndex [Index der Netzwerkkarte] -NetworkCategory [Public/Private/Domain]
|
||||||
```ruby
|
```ruby
|
||||||
@@ -95,14 +95,19 @@ New-NetRoute -DestinationPrefix '172.16.0.0/20' -InterfaceIndex '7' -NextHop '17
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Remote-Access
|
## Remote-Access
|
||||||
|
|
||||||
|
<details>
|
||||||
|
|
||||||
|
<summary>Expand</summary>
|
||||||
|
|
||||||
Read TrustedHosts
|
Read TrustedHosts
|
||||||
```ps
|
```ps
|
||||||
Get-Item WSMan:localhost\client\TrustedHosts
|
Get-Item WSMan:localhost\client\TrustedHosts
|
||||||
```
|
```
|
||||||
Set TrustedHost
|
Set TrustedHost
|
||||||
> Command: Set-Item WSMan:localhost\client\TrustedHosts –Value '[IP bzw. hostname]'
|
> Set-Item WSMan:localhost\client\TrustedHosts –Value '[IP bzw. hostname]'
|
||||||
|
|
||||||
> Command: Set-Item WSMan:localhost\client\TrustedHosts –Value '[IP bzw. hostname],[IP bzw. hostname]'
|
> Set-Item WSMan:localhost\client\TrustedHosts –Value '[IP bzw. hostname],[IP bzw. hostname]'
|
||||||
```ruby
|
```ruby
|
||||||
Set-Item WSMan:localhost\client\TrustedHosts –Value '172.16.7.254'
|
Set-Item WSMan:localhost\client\TrustedHosts –Value '172.16.7.254'
|
||||||
```
|
```
|
||||||
@@ -123,6 +128,8 @@ Invoke-Command –ComputerName [IP bzw. FQDN] –Credential [User] –Command {[
|
|||||||
Invoke-Command –ComputerName [IP bzw. FQDN] –Credential [User] –ScriptBlock {[Befehle]}
|
Invoke-Command –ComputerName [IP bzw. FQDN] –Credential [User] –ScriptBlock {[Befehle]}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
## AD Set-Serverroll, Join-Domain, Add-User
|
## AD Set-Serverroll, Join-Domain, Add-User
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
|
|||||||
Reference in New Issue
Block a user