Check out this great articles
Function Basics
http://www.lazywinadmin.com/2015/03/standard-and-advanced-powershell.html
https://technet.microsoft.com/en-us/magazine/hh360993.aspx
Check out this great articles
http://www.lazywinadmin.com/2015/03/standard-and-advanced-powershell.html
https://technet.microsoft.com/en-us/magazine/hh360993.aspx
Sure you use ipconfig /displaydns but have you tried get-dnsclientcache?
Here is a list of my new powershell networking cmdlets
get-dnsclientcache IPCONFIG /DISPLAYDNS
clear-dnsclientcache IPCONFIG /FLUSHDNS
get-netadapter IPCONFIG
get-netipaddress IPCONFIG
get-netipconfiguration IPCONFIG
test-netconnection PING
IPCONFIG REPLACEMENT
http://minasi.com/newsletters/nws1210.htm
Also make sure to replace your command prompt with powershell
References
http://windowsitpro.com/windows-10/replacing-command-prompt-powershell-windows-10-start-menu
http://windowsitpro.com/powershell/powershell-netsh
http://www.virtualizationhowto.com/2016/01/windows-10-networking-powershell-commandline-tools/
Who’s afraid of PowerShell security?
https://blogs.technet.microsoft.com/ashleymcglone/2016/06/29/whos-afraid-of-powershell-security/
Defending Against PowerShell Attacks (2017)
https://blogs.msdn.microsoft.com/powershell/2017/10/23/defending-against-powershell-attacks/
PowerShell Remoting With Integrated Scripting Environment–ISE
http://blogs.technet.com/b/rmilne/archive/2015/02/02/using-exchange-powershell-remoting-with-integrated-scripting-environment-ise.aspx
http://blogs.msdn.com/b/powershell/archive/2013/12/16/powershell-security-best-practices.aspx
Reflective DLL Loading with PowerShell:
http://www.youtube.com/watch?v=OAd68_SYQc8
Living off the Land:
http://www.youtube.com/watch?v=j-r6UonEkUw
Get-Help about_Group_Policy_Settings
http://technet.microsoft.com/en-us/library/jj149004.aspx
Constrained PowerShell Endpoints
http://www.youtube.com/watch?v=kmjJLKlL1Wg
PowerShell Language Specification:
http://www.microsoft.com/en-us/download/details.aspx?id=36389
Composing Command Arguments:
http://www.powershellcookbook.com/recipe/XoMw/run-programs-scripts-and-existing-tools
PowerShell Remoting over HTTPS with a self-signed SSL certificate
https://4sysops.com/archives/powershell-remoting-over-https-with-a-self-signed-ssl-certificate/
PowerShell Remoting for SharePoint 2010/2013
http://sharepoint-community.net/profiles/blogs/powershell-remoting-for-sharepoint
SharePoint 2010 with Windows PowerShell Remoting Step by Step
http://blogs.msdn.com/b/opal/archive/2010/03/07/sharepoint-2010-with-windows-powershell-remoting-step-by-step.aspx
Configure Remote PowerShell in SharePoint 2010
http://blogs.msdn.com/b/varun_malhotra/archive/2010/06/10/configure-power-shell-for-remote-use-of-sp-2010.aspx
There are several ways to connect and run PowerShell command remotely. In this article I want to address the needs of many IT admins that just need quick PowerShell access to run a command or set of commands.
First step is to open your remote computer to PowerShell using GPOs or type
winrm quickconfig
Now using PowerShell you can run several commands but lets focus first on invoke command
Help Invoke-Command –examples is all you need. Just copy the second example and fill in the blanks.
However this does have an annoying issues that we can quickly fix. Using variables lets set both the computername and user
Just substitute the variables for computername and credentials and you are good to go. Note that the user/password variable is secure for most users
but more on that later.
Since we have variables set for computername and credentials this one is easy.
[System.Net.Dns]::GetHostbyAddress("127.0.0.1")
[System.Net.Dns]::GetHostAddresses(“contoso.com")
get-wmiobject win32_service –computername 127.0.0.1
get-psdrive
cd hklm:\ (or any other drive)
Remember you can always type cmd to get the old classic command if needed. Have Fun!
cd hklm:\get
Thanks always to Ed and Theresa Wilson for inspiration http://www.edwilson.com/
Good Articles on Remote PowerShell
http://technet.microsoft.com/en-us/magazine/gg981683.aspx
http://blogs.technet.com/b/heyscriptingguy/archive/2011/11/16/configure-powershell-remoting-and-use-remote-commands.aspx
system.net namespace
http://msdn.microsoft.com/en-us/library/system.net.aspx
http://msdn.microsoft.com/en-us/library/system.net.networkinformation.aspx
Old but not thrown out yet
http://blogs.msdn.com/b/powershell/archive/2008/05/10/remoting-with-powershell-quickstart.aspx
Great source of tips from Microsoft
Windows PowerShell Tips
https://technet.microsoft.com/en-us/library/hh848797.aspx
Favorite PowerShell Tips and Tricks
http://blogs.technet.com/b/heyscriptingguy/archive/2015/04/27/favorite-powershell-tips-and-tricks.aspx
Check the crawl status of all content sources in your SSA where SSA is search service application.
Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | select Name, CrawlStatus | format-table –autosize
Total number of list items in a SharePoint Web Application
There are several ISE or Integrated Scripting Environments available for PowerShell. The cost runs from free to several hundred dollars on the high end.
https://technet.microsoft.com/en-us/library/dd315244.aspx
http://www.powertheshell.com/isesteroids/
https://www.sapien.com/software/powershell_studio
http://thecloudengineer.blogspot.com/2011/10/create-ise-enabled-for-sharepoint.html