You are on page 1of 1

server administration

by saadzaf via cheatography.com/24404/cs/6023/

Recovery AD Restore Remote management (cont)

The Diskpart.exe command utility can be used To find the Windows feature name of the Get-Command | Where {$_.parameters.keys -
to manage hard drives and volumes on the Windows Server Backup, type: Get- like "*ComputerName*"}
local machine. WindowsFeature "*backup*"
Get-service ComputerName Acmeserver
To get help with a specific command type the This should return a single feature, the Get-WmiObject Win32_ComputerSystem
command with /?. For example, to get help with Windows-Server-Backup feature. To install the
Computername Acmeserver,
the list Diskpart command type: list /? feature, type: Get-WindowsFeature "*backup*"
WINDOWSCORESERVER
| Install-WindowsFeature
Use the list volume option to display
netsh advfirewall firewall set rule
information about the disk volumes To start a System State backup of the Domain
group="Windows Management
controller, type: wbadmin start
To get help on how to load a registry hive into Instrumentation (WMI)" new enable=yes
systemstatebackup -backupTarget:E: -quiet
memory from disk, type: reg load /?
Enable-PSRemoting
To start the server in DSRM mode, non
The following command will load the HKLM From the Acmeserver virtual machine, start an
registry hive file located in type the following command: bcdedit authori
Interactive PowerShell session on the
D:\Windows\System32\ config\software into a /set safeboot dsrepair and then tative
Windows81-PC Enter-PSSession Windows81-
key file called WindowsSoftware reg load reboot
pc
HKLM\WindowsSoftware The following command will list all of the
Install the Web Access gateway role. Install-
D:\Windows\System32\config\software backup file versions available on the local
WindowsFeature Name
Unload the HKLM\WindowsSoftware registry machine. wbadmin get versions -
WindowsPowerShellWebAccess
backuptarget:E:
hive. reg unload HKLM\WindowsSoftware
To configure the Windows PowerShell Web
wbadmin start systemstaterecovery -
Access gateway with the default settings using
Reg backup and restore version:<MM/DD/YYYY-HH:MM> -
a self-signed certificate, type the following:
backuptarget:E: -quiet
Backup the entire HKLM registry key to a file Install-PswaWebApplication -
Start another command prompt and authori UseTestCertificate
called HKLM.reg in the C:\Backup directory. reg
type: ntdsutil tative
export HKLM C:\Backup\HKLM.reg To see a list of all PSWA cmdlets, type: Get-
Set the local NTDS store as the active instance Command PSWA -CommandType cmdlet
To create a Registry Hive file backup of the
activate instance NTDS
HKLM\Software registry keys reg save The following command will create an
HKLM\Software C:\Backup\HKLMSoftware.hiv This will start the interactive command authorization rule that will allow the members of
environment. Type the following command: the domain admins group access to all of the
Display all the currently available registry
authoritative restore
PSDrives: Get-PSDrive PSProvider registry Domain Controllers in the domain using the
Restore Subtree OU=Customer default Microsoft.Powershell configuration:
Display the keys and values under the
Support,OU=Hamilton,DC=Acme,DC=Com Add-PswaAuthorizationRule userGroupName
HKCU\Control Panel key Get-ChildItem
To remove the safeboot boot option and acme\domain admins -
HKCU:\Control Panel -recurse
restart the server normally, open a command ComputerGroupName acme\Domain
Display the keys and values under the
Controllers ConfigurationName
prompt and type the following commands:
HKCU\Control Panel key whose name contains
Microsoft.Powershell
bcdedit /deletevalue safeboot shutdown /r /t 0
the string Mouse. Get-ChildItem
HKCU:\Control Panel -recurse | where name
like "Mouse" Remote management

Display the content of the HKCU\Control New-NetIPAddress interfaceAlias Ethernet


Panel\Mouse\DoubleClickSpeed value. Get- IPAddress 192.168.100.13 PrefixLength 24
ItemProperty HKCU:\Control Panel\Mouse" -
Set-DNSClientServerAddress InterfaceAlias
name DoubleClickSpeed
Ethernet ServerAddresses 192.168.100.10
Notice this value is set to 500. Change the Add-Computer DomainName acme
value to 700. Set-ItemProperty Credential acme\administrator restart
HKCU:\Control Panel\Mouse name
Type the following commands to enable remote
DoubleClickSpeed value 700
event log management firewall rules: netsh
advfirewall firewall set rule group=Remote
Event Log Management new enable=Yes

By saadzaf Published 9th November, 2015. Sponsored by CrosswordCheats.com


cheatography.com/saadzaf/ Last updated 9th November, 2015. Learn to solve cryptic crosswords!
Page 1 of 1. http://crosswordcheats.com

You might also like