70-410 Security Flashcards
Copy-NetFirewallRule
Copy-NetFirewallRule
Copies an entire firewall rule, and associated filters, to the same or to a different policy store.
New-NetFirewallRule
New-NetFirewallRule
Creates a new inbound or outbound firewall rule and adds the rule to the target computer.
New-NetFirewallRule -Name Allow_Ping -DisplayName “Allow Ping”`
New-NetFirewallRule -Name Allow_Ping -DisplayName “Allow Ping”`
- Description “Packet Internet Groper ICMPv4” `
- Protocol ICMPv4 -IcmpType 8 -Enabled True -Profile Any -Action Allow `
- CimSession $cim
Copy-GPO
Copies a GPO.
Import-GPO
Imports the Group Policy settings from a backed-up GPO into a specified GPO.
New-GPO
Creates a new GPO.
New-GPStarterGPO
Creates a new Starter GPO.
Remove-GPO
Deletes a GPO.
Set-NetFirewallProfile
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True
netsh advfirewall firewall add rule
netsh advfirewall firewall add rule name=”Allow Inbound Telnet” dir=in program= %SystemRoot%\S
PowerS New-NetFirewallRule
New-NetFirewallRule -DisplayName “Allow Inbound Telnet” -Direction Inbound -Program %SystemRoot%\System32\tlntsvr.exe -RemoteAddress LocalSubnet -Action Allow
Copy firewall ruele
$Rule = Get-NetIPsecRule –DisplayName “Require Inbound Authentication”
$Rule | Copy-NetIPsecRule –NewPolicyStore domain.costoso.com\new_gpo_name
$Rule | Copy-NetPhase1AuthSet –NewPolicyStore domain.costoso.com\new_gpo_name
To rename the Administrator account using the Group Policy Management Console
To rename the Administrator account using the Group Policy Management Console
15 out of 18 rated this helpful-Rate this topic
To complete this procedure, you must be logged on as a member of the Domain Admins security group.
1. Open Server Management.
2. In the console tree, clickAdvanced Management, right-clickGroup Policy Management Console(GPMC), and then clickAdd forest.
3. In theAdd forestdialog box, enter the domain name. When promptedDo you want to add this forest with this domain?, clickYes.
4. In theGPMCtree, clickForest:ForestName, clickDomains, right-clickDomainName,and then clickCreate and Link a GPO Here.
5. In theNew GPOdialog box, in theNewbox, type the name that you want to use for this policy (for example,Rename administrator account), and then clickOK.
6. In theGPMCtree, clickGroup Policy Objectslocated under the Windows Small Business Server domain name, right-click theRename administrator accountGroup Policy object that you created, and then clickEdit.
7. InGroup Policy Object Editor, clickComputer Configuration, clickWindows Settings, clickSecurity Settings, clickLocal Policies, and then clickSecurity Options.
8. In the details pane, double-clickAccounts: Rename administrator account.
9. Select theDefine this policy settingcheck box, and then type the new name for the Administrator account.
10. ClickOK, and then close Group Policy Object Editor.
11. Close the Group Policy Management Console.
12. After changing the Administrator account name, you need to log off and then use the new name to log back on as an administrator on the server.
Notes
De
netsh advfirewall set global StatefulFTP disable
netsh advfirewall set global StatefulFTP disable