Monday, June 17, 2019

Fix: Restore Files on a Flash Drive Hidden by Virus

 Restore Files on a Flash Drive Hidden by Virus
When a virus infects a Flash Drive it some times hides the files you had in there. What these viruses usually do is modify the attributes and parameters of the folders which hides the files.
It is very simple to revert the attributes to view the hidden files. However, if the the files have been deleted then it may not be possible to retrieve them and you may need a data recovery company.  In this guide i will list available methods with which you can restore/recover hidden files from Flash drives.
This method works on Windows 7 / 8 & Vista.

Using the attrib commands from command prompt

First, ensure that the drive you are trying to restore is connected.
Then, hold the Windows key and Press E. To open My Computer.
drive-letter
Check what the “Drive Letter” is.
Then Click Start and Type cmd. From the results displayed Right Click on cmd and Select Run As Administrator. The black window which has now opened is your command prompt.
In the command prompt, type the drive letter followed by, eg: if you noted that the drive letter was E then type E:
PRO TIP: If the issue is with your computer or a laptop/notebook you should try using Reimage Plus which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption.
In the picture above, the  highlighted drive letter is D:
drive-lettercmd
Then type attrib -s -h *.* /S /D and Hit Enter.
command-attrib

If for some reason you are unable to enter into the  drive then you may run the  command attrib d:*.* /d /s -h -r -s where d: is the drive letter from a different path.
cmdattrib2

You may also run Anti Virus to scan your USB drive. The methods above does not removes the virus from the drive, it only changes the attribs and reset permissions and parameters to bring back the files hidden by the virus. The Anti Virus will ensure that your USB Drive is clean of any viruses.
TIP: If none of the Methods have resolved the issue for you, we recommend using Reimage Repair Tool which can scan the repositories to replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. Reimage will also optimize your system for maximum performance.

Saturday, March 16, 2019

Create Huge Users in Active Directory


How to Create Huge Account in Active Directory
Dear Friend
 Step1-Frist you have a format file of User as Similar Below






































SAVE THAT FILE  as bulk_users1 IN CSV FORMAT AND COPY TO C drive  of your server in 
Test1 Folder
















FirstName
MiddleName
Lastname
Username
Email
Streetadd
City
Zipcode
State
Country
Department
Password
Telephone
Jobtittle
Company
OU-in ou there are are required OU(Organational Unit ), DC=Domain Name, DC-Domain Specification as com,in,


Step 2- Now you are reuired a script Field as Below- Copy the below field and paste in ms word and save as .csv format or in Power Script

# Import active directory module for running AD cmdlets
Import-Module activedirectory
 
#Store the data from ADUsers.csv in the $ADUsers variable
$ADUsers = Import-csv C:\TEST1\bulk_users1.csv

#Loop through each row containing user details in the CSV file
foreach ($User in $ADUsers)
{
                #Read user data from each field in each row and assign the data to a variable as below
                               
                $Username        = $User.username
                $Password          = $User.password
                $Firstname         = $User.firstname
                $Lastname          = $User.lastname
                $OU                       = $User.ou #This field refers to the OU the user account is to be created in
    $email      = $User.email
    $streetaddress = $User.streetaddress
    $city       = $User.city
    $zipcode    = $User.zipcode
    $state      = $User.state
    $country    = $User.country
    $telephone  = $User.telephone
    $jobtitle   = $User.jobtitle
    $company    = $User.company
    $department = $User.department
    $Password = $User.Password


                #Check to see if the user already exists in AD
                if (Get-ADUser -F {SamAccountName -eq $Username})
                {
                                 #If user does exist, give a warning
                                 Write-Warning "A user account with username $Username already exist in Active Directory."
                }
                else
                {
                                #User does not exist then proceed to create the new user account
                               
        #Account will be created in the OU provided by the $OU variable read from the CSV file
                                New-ADUser `
            -SamAccountName $Username `
            -UserPrincipalName "$Username@SERVER.COM" `
            -Name "$Firstname $Lastname" `
            -GivenName $Firstname `
            -Surname $Lastname `
            -Enabled $True `
            -DisplayName "$Lastname, $Firstname" `
            -Path $OU `
            -City $city `
            -Company $company `
            -State $state `
            -StreetAddress $streetaddress `
            -OfficePhone $telephone `
            -EmailAddress $email `
            -Title $jobtitle `
            -Department $department `
            -AccountPassword (convertto-securestring $Password -AsPlainText -Force) -ChangePasswordAtLogon $True
           
                }
}

















Save the file to to your server c drive in Test1 folder

Step 3-  Now open your server power shell Script ISE as administrator
It may be that you don’t have right to run that script so first kindly run the below command
Open CMD
C:\WINDOWS\SYSTEM32\POWERSHELL SET EXECUTIONPOLICY REMOTESIGNED
Then enter
After then open the powershell ISE
Open the file  please and press the Green button





















































Now You will see that users has been created in that OU