asked 11.8k views
3 votes
What environment change will allow an org to see command line arguments with powershell and other remote management tools?

1 Answer

1 vote

Final answer:

To see command line arguments with PowerShell and other remote management tools, you need to enable PowerShell remoting.

Step-by-step explanation:

To see command line arguments with PowerShell and other remote management tools, the environment change required is to enable PowerShell remoting. PowerShell remoting allows you to run commands on remote computers, and it also allows you to access and manage those remote computers using command line arguments.

To enable PowerShell remoting, you need to run the following command on the computer where you want to see command line arguments: Enable-PSRemoting. This command sets up the necessary components for PowerShell remoting.

Once PowerShell remoting is enabled, you can use the Invoke-Command cmdlet to run commands on remote computers and view their command line arguments. For example, you can use a command like this: Invoke-Command -ComputerName RemoteComputer -ScriptBlock {param($arg1) Write-Host $arg1} -ArgumentList 'Hello, World!'. This command will run the specified script block on the remote computer and pass the 'Hello, World!' argument.

answered
User Jewishmoses
by
7.8k points