#PSTip Refreshing service objects
When you assign the result of a service query to a variable, you must take into account one very important thing – the result is just a snapshot of the service state for a specific point in time.
Read MoreWhen you assign the result of a service query to a variable, you must take into account one very important thing – the result is just a snapshot of the service state for a specific point in time.
Read MoreNote: This tip requires PowerShell 3.0 or above. Using WMI we can get a list of Wi-Fi adapters with the following command:
Read MoreNote: This tip requires PowerShell 2.0 or above. When automating SQL server database creation in PowerShell, we may want to give the end user an option to select from a list of available fixed disk drives and let the user select the drive that should …
Read MoreNote: This tip requires PowerShell 2.0 or above. As database administrators, we might want to configure SQL MaxServerMemory setting to ensure the SQL service does not occupy all available physical memory.
Read MoreNote: This tip requires admin privileges (elevated shell) To get Resultant Set of Policy (RSOP) data we usually RSOP.mmc or the gpresult command line tool.
Read MoreNote: This tip requires PowerShell 3.0 There was a question recently in the PowerShell MVP mailing list about how to detect if a certain process is elevated.
Read More