Rename only under directory
get-childitem prefix_* | foreach { rename-item $_ $_.Name.Replace("prefix", "another_prefix") }
Rename recursivly under directory
get-childitem -path <yourpath> -recurse prefix_* | foreach { rename-item $_ $_.Name.Replace("prefix", "another_prefix") }
New-NetFirewallRule -Name "MSSQL Block" -DisplayName "MSSQL Restrict" -Enabled True -Direction Inbound -Profile Domain, Private -Action Block -LocalPort 1433 -Protocol Any -RemoteAddress Any
restrict port to remote IP address
New-NetFirewallRule -Name "MSSQL Restrict" -DisplayName "MSSQL Restrict" -Enabled True -Direction Inbound -Profile Domain, Private -Action Allow -LocalPort 1433 -Protocol Any -RemoteAddress "IP OR Subnet goes here"
Get-ChildItem -Filter '*.pyc' -Force -Recurse | Remove-Item -Force
source: here