Showing results for GuestBlogger - Scripting Blog [archived]

Oct 5, 2014
0
0

PowerTip: View All Values of an Enum

Doctor Scripto
Doctor Scripto

Summary: Boe Prox shows how to view all values of an enum. How can I view all of the available values of an enum? Use the [Enum]::GetNames() method, for example:PS C: > [Enum]::GetNames([System.ConsoleColor])BlackDarkBlueDarkGreenDarkCyanDarkRedDarkMagentaDarkYellowGrayDarkGrayBlueGreenCyanRedMagentaYellowWhite

Scripting Guy!Windows PowerShellPowerTip
Apr 3, 2014
0
0

Use Delegated Administration and Proxy Functions

Doctor Scripto
Doctor Scripto

Summary: Boe Prox shows how to create a secure PSSession endpoint by using delegated administration and a proxy function.  Hey, Scripting Guy! There are some great things that I can do with a constrained Windows PowerShell endpoint. But I want to allow a user (who may not have the necessary rights) to run a query on a remote system. Is this po...

Windows PowerShellPowerTipBoe Prox
Apr 2, 2014
0
0

PowerTip: Test a PSSession Configuration File

Doctor Scripto
Doctor Scripto

Summary: Learn how to test a PSSession configuration file.  How do I ensure that my PSSession configuration is valid?  Use the Test-PSSessionConfigurationFile cmdlet to see if the file is valid (True) or not (False). Test-PSSessionConfigurationFile –Path ConstrainedSession.pssc True

Windows PowerShellPowerTipBoe Prox