Sunday, 20 October 2019

HOW TO FIND INACTIVE (STALE) COMPUTER AND USER IN AD USING POWERSHELL

Hi Ya,

I have compiled this easy powershell script that will help you find the inactive computer and user.
This is very safe and easy to use as this script only display the inactive computer and user. This wont delete or disable any thing from your Active directory.

Save this script as ".PS1" extension and run this in your DC server.

 Write-Host -ForegroundColor Yellow "Input the no of inactive days : " -NoNewline   
 $staledays = Read-Host  
 $staledays = (Get-Date).AddDays(-$staledays)   
 Get-ADComputer -Property Name,lastLogonDate -Filter {lastLogonDate -lt $staledays}| Select-Object -Property Name,LastLogonDate,Distinguishedname,Enabled|Sort-Object -Property Name | Out-GridView -Title 'List of stale computers'  
 Get-ADuser -Property Name,lastLogonDate -Filter {lastLogonDate -lt $staledays}| Select-Object -Property Name,LastLogonDate,Distinguishedname,Enabled|Sort-Object -Property Name | Out-GridView -Title 'List of stale users'  

Wednesday, 15 May 2019

HOW TO MOVE ALL FSMO ROLE USING GUI

Please see my previous post to find the FSMO roles.
https://theitways.blogspot.com/2019/05/how-to-find-fsmo-roles-on-your-sever.html

If you need to migrate the FSMO role using GUI you have come to the right place.

To move Domain wide roles
- Infrastructure Master
- Relative ID (RID) Master
- PDC Emulator

1. Login to the server with Network domain admin permission where you want the FSMO migrated
2. Open run and type in
DSA.MSC
3. This will open Active Directory Users and computers
4. Right click on your domain name and Click on OPERATIONS MASTERS..

5. On  operation master you can move the 3 domain wide roles


To move Forest wide roles
Forest Wide Roles
- Schema Master
- Domain naming Master

For Domain naming master
1. Login to the server with Network domain admin permission where you want the FSMO migrated
2. Open CMD by running as Administrator
3. On Cmd type in the
regsvr32 schmmgmt.dll

4. This will Register the schema managment dll.
5. Open run and type in
MMC
6. On MMC click on FILE and ADD/REMOVE SNAP-IN

7. Select ACTIVE DIRECTORY SCHEMA , Click on ADD and click on OK

8. Right Click on active directory schema, and click on OPERATION MASTER




9. Click on change to transfer the role

For Domain naming master
1. Login to the server with Network domain admin permission where you want the FSMO migrated
2. Open run and type in
DOMAIN.MSC
3. This will open Active directory domain and trust
4. Right click on Active directory domain and trust and click on OPERATION MASTER..


5. Click on CHANGE to transfer the role

Good Luck!!






HOW TO FIND FSMO ROLES ON YOUR SERVER

Hi ya,


If you are an administrator with multiple server, You definitely need to know where the FSMO (Flexible Single-Master Operation) roles are installed . There are 5 FSMO roles

Forest Wide Roles
- Schema Master 
- Domain naming Master 
Domain Wide Roles
- Infrastructure Master
- Relative ID (RID) Master 
- PDC Emulator

To simply find the 5 FSMO roles, login into to one of your server using network administrator account,

1. Open up your Command prompt
You can do this by open Run (Windows + R )
Then type in 
CMD

2. On command prompt type the following
netdom query fsmo





















Good luck !!

Monday, 1 April 2019

HOW TO DELETE STUCK PRINT JOBS IN WINDOWS SERVER

Hi Ya,

If you have cancelled you jobs in print queue and the job is still stuck, you have come to the right place. Here is how you can clean your stuck print jobs.

1. On the server where your print management is installed, Open up print management
You can do this by open Run (Windows + R )
Type in the following

PRINTMANAGEMENT.MSC

2. On the Print Management console, Right click on your print server name > Click properties.
3. Open the Spool folder location

4. Open Services

You can do this by open Run (Windows + R )
Type in the following

SERVICES.MSC

5. Find Print Spooler and stop the service, (don’t close the console as you need it to start again)

6.Delete all the file inside the step 3 location
7. Start the print spooler
8. Close and open your print management console.

This should remove all the stuck print jobs. Please make sure that you are logged in with admin privilege .

Good luck !!
8. Close and open your print management console.

Thursday, 14 March 2019

HOW TO ADD TWO IP ADDRESS IN ONE NETWORK INTERFACE CARD(NIC)


Hi ya,
If you are wondering how you can add two IP address in one NIC card, you have come to the right place.  Please follow the following step below.

1. Open up your Network connection
You can do this by open Run (Windows + R )
Type in the following

NCPA.CPL

2. Double click required Port – Ethernet if you are using LAN or Wi-Fi if you are using Wireless.



3. Select the Internet Protocol Version 4 (TCP/IPv4) , Click properties
4. Make sure you untick obtain an IP address automatically and select the Use the following IP address

5. Fill in the Primary IP address, subnet mask, defaultgate , Preferred DNS server and Alternate DNS server details.



6. Then Click on Advance... and click on Add
7. Fill up the box with the secondary IP address and subnet you desire.

Good luck !!!



Thursday, 31 January 2019

HOW TO CONFIGURE SCAN TO EMAIL ON RICOH PRINTER USING GMAIL


Hi Ya,
This is for the people who have Ricoh printer on their organisation and wants to use Gmail SMTP server. To make it simple, let me break down to two phase for you 1.)Configuring gmail and 2)Configuring Ricoh device

1.) Configuring gmail
- Make sure you have created your Gmail account for this purpose
- Login to your gmail scan account and go to
https://myaccount.google.com
- Go to security and enable less secure app access



2.) Configuring Ricoh device.
- login to your Ricoh device using a web browser as device admin.
- Go to Device Management then Configuration



- Go to Email


- Input the following settings

Administrator email address: Your Gmail scan email account
Auto specify sender Name: On

SMTP
SMTP server name : SMTP.GMAIL.COM
SMTP port no: 465
User secure connection (SSL): On
SMTP authentication: On
SMTP Auth. Email Address: Your Gmail scan email account
SMTP Auth. User Name: Your Gmail scan email account
SMTP Auth. Password : Your Gmail scan email password

SMTP Auth. Encryption: Inactive


You can also find Google SMTP settings on official google website.
https://support.google.com/a/answer/176600?hl=en

Good Luck !!!