Skip to main content
ubuntuask.com

ubuntuask.com

  • How to Run Commands on A Remote Computer Using Psexec And Powershell? preview
    12 min read
    Using PsExec and PowerShell to run commands on a remote computer involves a series of steps that leverage the capabilities of each tool to execute tasks remotely. PsExec is a command-line utility that allows you to execute processes on remote systems. It is part of the Sysinternals suite by Microsoft. To use PsExec, you generally need administrative access to the remote system. First, you download PsExec from the Sysinternals website and extract it.

  • How to Create Checkbox Automatically Using Powershell? preview
    6 min read
    To create a checkbox automatically using PowerShell, you can use Windows Forms to design a simple graphical user interface (GUI). First, make sure to load the necessary assembly with [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms"). Then, create a form using New-Object System.Windows.Forms.Form. You can create a checkbox using New-Object System.Windows.Forms.CheckBox and configure its properties such as Text, Location, and Size.

  • How to Get Rid Of Present Working Directory In Powershell? preview
    8 min read
    If you're looking to remove or change the present working directory in PowerShell, you can do so by navigating to a different directory or by closing the session. To change the directory, use the Set-Location cmdlet (or its alias cd) followed by the path you want to switch to, effectively leaving the current directory for another one. This doesn't delete the directory, but simply changes your current context to the specified location.

  • How to Fetch Logs Content Between Two Dates In Windows Powershell? preview
    4 min read
    To fetch logs content between two dates in Windows PowerShell, you can use the Get-EventLog cmdlet with the -After and -Before parameters. These parameters allow you to specify the start and end dates between which you want to fetch logs content. You can use the following syntax:Get-EventLog -LogName System -After "01/01/2021" -Before "01/31/2021"This command will fetch logs from the System log between January 1, 2021 and January 31, 2021.

  • How to Restart A Container Instance Using Powershell? preview
    5 min read
    To restart a container instance using Powershell, you can use the Restart-Container cmdlet. First, you need to identify the specific container instance you want to restart by either the container name or ID. Then, you can run the following command:Restart-Container -Name [ContainerName]Replace [ContainerName] with the name of the container instance you want to restart. This command will gracefully stop and then start the container instance.

  • How to Pass Arguments to Msi File With Powershell? preview
    5 min read
    To pass arguments to an MSI file using PowerShell, you can use the "Start-Process" cmdlet. This cmdlet allows you to execute a command and specify arguments to be passed to it.Here's an example of how you can pass arguments to an MSI file using PowerShell: Start-Process -FilePath "msiexec.exe" -ArgumentList "/i", "path\to\your\msi\file.

  • How to Limit the Number Of Page Versions In Aem? preview
    6 min read
    In Adobe Experience Manager (AEM), you can limit the number of page versions that are saved by configuring the version manager service. By default, AEM saves all versions of a page, which can lead to excessive storage usage and performance issues. To limit the number of page versions, you can define a maximum number of versions to be saved for each page in the configuration settings of the version manager service.

  • How to Open an Selected Object With Powershell? preview
    3 min read
    To open a selected object with PowerShell, you can use the Start-Process cmdlet. First, you need to identify the file path of the object you want to open. Once you have the file path, you can use the following command:Start-Process -FilePath "C:\Path\To\Your\Object"Replace "C:\Path\To\Your\Object" with the actual file path of the object you want to open. This command will launch the selected object using the default program associated with its file type.

  • How to Find the Workflow Running Instances By Java In Aem? preview
    4 min read
    To find the workflow running instances in Adobe Experience Manager (AEM) using Java, you can retrieve the workflow session from the WorkflowService and then query for running instances using the WorkflowSession object. You can use the WorkflowSession to get a list of running workflows based on various criteria such as the workflow model, list of models, or initiator.

  • How to Format Powershell Output In Specific Way? preview
    5 min read
    To format PowerShell output in a specific way, you can use various methods such as:Using the Format-Table cmdlet to display output in a table format with specific columns and alignment.Utilizing the Format-List cmdlet to display output in a list format with key-value pairs.Employing the Format-Wide cmdlet to display output in a wide format by grouping items together.

  • How to Debug on Remote Aem Server? preview
    8 min read
    Debugging on a remote AEM server can be done using various methods. One common approach is to use remote debugging tools provided by Java, such as Java Remote Debug (JRD) or Java Debugger Interface (JDI). These tools allow developers to connect to the remote AEM server from their local machine and set breakpoints, inspect variables, and step through code to identify issues.