a few of the cmdlets give you the skill to specify credentials. this lets you use a special consumer account to make the relationship and to retrieve the knowledge. determine 4-1 screens the credential conversation field that looks whilst the cmdlet runs. bankruptcy four utilizing PowerShell Remoting and Jobs 109 FIGURE 4-1 Cmdlets that aid the -credential parameter steered for credentials whilst provided with a person identify. this system of utilizing the -computername and -credential parameters in a cmdlet seems to be the following: playstation C:\> Get-WinEvent -LogName program -MaxEvents 1 -ComputerName ex1 -Credential nwtraders\administrator TimeCreated ProviderName ---------------------7/1/2012 11:54:14 AM MSExchange ADAccess identification Message -- ------2080 strategy MAD. EXE (... despite the fact that, as pointed out past, use of those cmdlets usually calls for commencing holes within the firewall or beginning particular prone. by means of default, these kinds of cmdlets fail whilst run opposed to distant machines that don’t have comfy entry principles.
Rated 5 – based on votes of