3

You're likely attempting to use the OS-native version of the module which is 1.0.0.0 and not as feature rich as the current version 1.1.0.0 which is available via PowerShell Gallery and is also bundled with Windows Server 2022. You can verify your version with the following command: Get-Module -List IISAdministration You can also verify the available ...


2

You can use PowerShell remoting to connect to a VM and run PowerShell commands on that VM. However, if you want to do this from Azure Automation runbooks then you would need to create a Hybrid Worker VM in the same network as your VM's to run these tasks on. PowerShell remoting uses WINRM to talk to the VM, and you don't want to expose this to the internet ...


2

I'm guessing you want to get the newest 100 security event logs from the named computer. To do that, you just missed some braces: Invoke-Command { Get-EventLog –LogName Security –Newest 100} -ComputerName WIN-9F8JQL0989 The braces denote the scriptblock/payload that you want to execute (the command). The error you were getting was because you had mixed the ...


1

For the example command provided by the OP question: PS C:\Users\user> Get-Command gpg.exe CommandType Name Version Source ----------- ---- ------- ------ Application gpg.exe 2.2.28.... C:\Program Files ...


Only top voted, non community-wiki answers of a minimum length are eligible