Category: Windows

  • Replace permission command line

    Replace permission command line

    Migration is always popping an issues to bring the service online. Moreover folder permission playing a big role in all scenario; Apparently spent lot of time to fix data migration issues from Windows 2008 server to Windows 2012 server. So replace permission required to complete the migration. Scenario: Application data needs to be migrated (folders…

  • Validate Active Directory (AD) Credentials

    To configuring service account for the application after creating generated password causing issue many times, needs to validate active directory (AD) credentials before configuring it. Because enterprise level policy would disable service account with bad password attempts. The PowerShell script helps to validate efficiently. <# .DESCRIPTION Validate AD Account credential .NOTES Author: Sathiya.io #> function…

  • Export Windows Service to Excel with Filter

    Another sample Powershell script to exporting “Running” and “Stopped” windows service to excel by using Powershell Array. $location = “C:\sathiya.io”; $service = @(“Running”, “Stopped”); for ($i=0;$i -ne 2;$i++) { $text = $service[$i]; #Exporting the result to the text file # Append – This keyword is to update the file in the loop # Select -…

  • Import Users in Active Directory Using PowerShell

    Today, we are going to discuss about importing bulk users in Active Directory using PowerShell. We are all knows that we can do anything in PowerShell. You can check the required parameter for adding AD user. But I’m going to import the below sample fields. Basic Comment New-ADUser -Name “Disply Name” -GivenName “First Name” -Surname…

  • Add computer to domain using CMD without restart

    From your windows client machine open command prompt and run the following cmd to add computer to domain. wmic.exe /interactive:off ComputerSystem Where name=”%computername%” call JoinDomainOrWorkgroup FJoinOptions=3 Name=”myDom.local” UserName=”myDom\UsrName” Password=”@passwrd!@”