About Me

My photo
HANUMANGARH, RAJASTHAN, India

Friday, 15 December 2023

Reinstall the Windows default apps without error

 

# Define function to reinstall app

function Reinstall-App {

  param (

    [string]$PackageName

  )

Auto Install or upgrade the Winget

Run below script and execute "Start-WinGetUpdate"


function Start-WinGetUpdate {

    [CmdletBinding()]

    Param(

        [Parameter(Mandatory = $false, HelpMessage = "Decide if you want to skip the WinGet version check, default it set to false")]

        [switch]$SkipVersionCheck = $false

    )

Tuesday, 12 December 2023

Agile/Scrum

 Which of the following is the value of Agile?

Select one:

a. All of the above

b. Individuals and Interactions Over Process and Tools

c. Working Software Over Comprehensive documentation

d. Responding to change Over following a Plan

e. Customer Collaboration Over Contract Negotiation

 

AWS/Docker Questions and Answer

 Which Dockerfile instruction indicates what base image to use

Select one:

a. USING

b. ENTRYPOINT

c. FROM

d. BASE

Wednesday, 6 September 2023

Get user count from OU

 $allou = "DC=domain,DC=com"

$User = get-aduser -filter * -SearchBase $allou -SearchScope Subtree | Select @{Name="OU";Expression={$_.distinguishedName -match "cn=.*?,OU=(?<OU>.*)" | Out-Null;$Matches.OU}}

$User | Group -Property OU | Select Name,Count

Friday, 25 August 2023

Install share point client SDK

 #Parameters

$DownloadURL "https://download.microsoft.com/download/B/3/D/B3DA6839-B852-41B3-A9DF-0AFA926242F2/sharepointclientcomponents_16-6906-1200_x64-en-us.msi"

Extract Disk Info from Remote host

 # Define the remote hostname or IP address $remoteHost = Get-Content "C:\temp\RemoteServer.txt" # Define the output CSV file path...