NETWORKSTIP Networking CCNA,Centos,Ubuntu,Sql,

Made By Muhammad Nafees

Breaking

Showing posts with label Tricks. Show all posts
Showing posts with label Tricks. Show all posts

Saturday, 16 May 2020

May 16, 2020

Hide Files inside Image or PDF files


Hide Files inside Image or PDF files
  • Some times, we have to hide some files for particular reason like classified files and we do not want it be found by others.You just need :
  • Image File or PDF File
  • Files which are going to be hidden
  • Archiver Application (WinRar, 7Zip, etc.)
  • Command Prompt
  • Now just follow this steps :
  1. Compress your files and make them as archive file. In this example, I'm going to hide my test.rar file into my PDF (readme.pdf)
  2.  Open your Command Prompt and run it As Administrator, direct to your files location, then type this command exclude quote marks : "copy /b readme.pdf + test.rar redme.pdf". Please adjust readme.pdf with your own PDFfile, test.rar with your own compressed file, and redme.pdf with your own new PDF name and this is up to you to give the name. After that, click ENTER button.
  3.  If you did it right, you will get a New PDF files with bigger file size, because the binary codes between test.rar and readme.pdf are combined into one file is redme.pdf
  4. To open your hidden files, you just open your archiver application, in this example is WinRar. Go to your PDF files and extract it. You will get new folder named redme and you will find your test folder inside it.

Sunday, 18 November 2018

November 18, 2018

How to fix blank System Tray icons

How to fix blank System Tray icons  

  • Backup Registry
  • Go to Start > Run type regedit and hit OK
  • HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify.
  • Delete the values IconStreams and PastIconsStream
  • Open up the Task Manager (Ctrl + Shift + Esc), go to the Processes tab, select explorer.exe and click End Process.
  • Open the Applications tab and click New Task at the bottom-right of the window.
  • In the message box that pops up type in explorer.exe and hit OK
  • after all these step if issue is still not solved then use the mention blew and scan PC
  • Run a check using anti-malware tools, like Adwcleaner or MalwareBytes, just in case.

Tuesday, 21 November 2017

November 21, 2017

How to Reset Forgotten Windows 10 Password

How to Reset Forgotten Windows 10 Password

Forgot your Windows 10 sign-in credential? Just bought a locked laptop with Windows 10 and you don’t know the password? You need to assist someone in recovering an Admin password in Windows 10? If you forgot a Windows 10 email account login, you could reset it from another device by following Microsoft online password reset method. But what if you’re locked out of a local admin account? In this tutorial, we’ll show you 2 simple ways to reset forgotten local administrator password on Windows 10.

November 21, 2017

Get Windows 7 Start Menu in Windows 8 Developer Preview


I think you’ve familiar with Windows 8 installation, in Windows 8 Microsoft placed new metro style start for accessing the desktop and other utils. you can download Windows 8 from official website. But i still like to work on classic windows 7 start menu because it has very good features including search and accessing the app are very easy. If u wish to go back to the Windows 7 start menu on Windows 8, here is a small how to guide.

Tuesday, 25 July 2017

Friday, 6 January 2017

January 06, 2017

How to Installed Mail Enable on window Server 2012 local domain part 3

How to Installed Mail Enable on window Server 2012 local domain

  • Download Mail enable from office site with standard Edition or click here to download
  • After downloading file Runas Administrator 
  • The pop up new installation menu press OK
  • Then press Next and next Again  





 

 
Type Post office name on with your domain name
And type your passsword 
 
Domain name and IP will be auto detect press next

 
Don't change any thing just press next If you have Multi domain then uncheck and press next

 
Then Finish
 

configure a Binding settings in IIS on Mail Enable Webadmin  add entry with you host and ip port depend on yours on which port do you want to use for web admin 
 
 configure a Binding settings in IIS on Mail Enable WebMail  add entry with you host and ip port depend on yours on which port do you want to use for webMail

Mail Enable Configuration
 
All OR Done

Admin Page


Client Page

Thursday, 5 January 2017

January 05, 2017

How to Installed Mail Enable on window Server 2012 local domain part 1


  Mail Enable Installation And Packages

  •  First Of All Installed These Packages from Add Roles and features  
    Then press again next on server selection press again next and server roles check these roles

     Then Press Next and Feature Menu Installed These packages

    Configure Active Directory

    Once the AD DS role is installed the server will need to be configured for your domain.
  • If you have not done so already, Open the Server Manager from the task bar.
  • Open the Notifications Pane by selecting the Notifications icon from the top of the Server Manager. From the notification regarding configuring AD DS, click Promote this server to a domain controller.
  •  From the Deployment Configuration tab select Add a new forest from the radial options menu. Insert your root domain name into the Root domain name field, and then click Next.

  • Select a Domain and Forest functional level, and then input a password for the Directory Services Restore Mode (DSRM) in the provided password fields. 

  • The DSRM password is used when booting the Domain Controller into recovery mode.

  •  Note: The selection made here will have lasting effects to features and server domain controller eligibility. For further information on Domain/Forest functional levels, see official Microsoft documentation.
  • Review the warning on the DNS Options tab and select Next. 
  • Confirm or enter a NetBIOS name and click Next. 
  • Specify the location of the Database, Log files, and SYSVOL folders and then click Next.
  • Review the configuration options and click Next.
  • The system checks to ensure all necessary prerequisites are installed on the system prior to moving forward. If the system passes these checks, proceed by clicking Install.
  •  Note: The server automatically reboots after the installation is complete. 
  •  After the server reboots, reconnect to it via RDP. Congratulations on successfully installing and configuring a Active Directory Domain Services on Windows Server 2012. 

Friday, 30 December 2016

December 30, 2016

Team Viewer Give access to client without Providing ID Password


Team Viewer Give access to client without Providing Username Password

  • Installed TeamViewer on both PC client and host Same version
  • Create shortcut of Teamviewer then go to properties 
  • In Target field,after Teamviewer.exe add: -i Your ID -P YourPassword
  • Now copy whole syntax and paste in to note pad and save with .bat 
  • Now compile this bat file in to .exe and send to client. 

Thursday, 29 December 2016

December 29, 2016

Remote Desktop Access with EXE File without Providing Username Password

Remote Desktop Access with EXE File without Providing Username Password

  • open Note Pad
  • paste the code same as mention below
  • cmdkey /generic:"172.16.0.8(should be your remote PC IP" /user:"PC Username" /pass:"PC Password"
  • mstsc /v:"172.16.0.8 (PC remote IP)"
  • Save this file with anyname.bat
  • finally installed a bat compiler and compile your file you can use online compiler a link is mention below click on the link and compile your file online 
  • http://www.f2ko.de/en/ob2e.php
save file it will come with *.exe format just open file


Friday, 2 December 2016

December 02, 2016

Restrict RDP Access by IP Address

Create Firewall Rule

To maintain your existing Remote Desktop connection to the server an Allow rule needs to be created first, and the IP restriction rules added.  Once these have been created the rule will then be switched to block all IPs but the ones specified in your restriction rules.

  1. Connect to your server via RDP.
  2. Open Windows Firewall with Advanced Security.
  3. Click on Inbound Rules in the left pane.
  4. In the Actions menu click on New Rule...
  5. Select the Port radio button and click Next.


Select the Specific local ports radio button and enter 3389 into the box.



  1. Click Next.
  2. Leave the Allow the connection radio button on the Action screen selected and click Next.
  3. On the Profile screen leave Domain, Private and Public checked and click Next.
  4. On the Name screen give your new rule a name such as "CUSTOM RDP BLOCK".
  5. Click Finish.
The new firewall rule has now been created and the IP restrictions need to be added.
Creating Your IP Restrictions
Due to our Domain Policy the IP Restrictions that will be added will block IP ranges around the IP addresses you need to leave open.  Before starting this step we suggest making a note of these IP ranges to ensure you do not restrict access to incorrect IP addresses.  
The ranges will need to be entered in ascending order. The first IP range will start at 0.0.0.0 and end at the IP address one below the IP you'd like to allow. For example, if you want to allow 60.73.200.19 your first range will be 0.0.0.0-60.73.200.18.  Your next IP range will start one IP address after the IP you want to allow and end on below the next IP you want to allow.  The final IP range will end with 255.255.255.255. 
You will need to allow the IP range of 208.88.72.0-208.88.76.255 to ensure that our tools and support department have the ability to connect to your server.
  1. Right click on the new firewall rule you just created above and click properties.
  2. Click on Scope tab.
  3. Under the Remote IP address section select the These IP addresses option.
  4. Click the Add... button.
  5. Select the This IP address range radio button.
  6. Enter your first IP range into the From and To boxes.
Add IP ranges to allow all the IPs required, and the IP range for our tools and support department.

  1. When all your IP ranges are entered click the OK button.
Your IP Restriction rules are now in place to allow all IP addresses outside of the ranges that were added.  The Firewall rule now needs to be switched from Allow to Block.
Switch Firewall Rule for Allow to Block
  1. Right click on your Firewall rule and select properties.
  2. On the General tab under the Action switch the radio button from Allow the connection to Block the connection.
  3. Click OK.
If you are still connected to the server via Remote Desktop after switching the Firewall rule to Block the connection your rule is working correctly.

Thursday, 17 November 2016

November 17, 2016

Increase window 7 Performance in virtual machines

Rules of Thumb

  • You want to ensure the average CPU load on your server is less than 70% under regular usage (by all users). You want to be able to gracefully handle spikes in need.
  • Disable Serial and Parallel Ports on your Host PC/Server
    • In BIOS, go to Advanced ->I/O Device Configuration and disable serial and parallel ports. Save changes and Exit.

Essentials

  • Install VirtualBox Guest Additions
  • Install all Windows Patches, then turn OFF Automatic Updates
  • Disable Serial and Parallel ports in Device Manager (if they exist)
  • Set Screensaver to "None" or "Blank" (this saves CPU over a graphic image screensaver)
  • Disable System Sounds (Set Sound scheme to "None")
  • (Windows 7) Uninstall Tablet PC Components
  • Disable Windows Error Reporting
  • Remove unnecessary boot applications (Quicktime, Real, Adobe Acrobat Updater, etc.).
  • Remove any unneeded Windows components and applications (Outlook Express, Messenger, Games, etc.)
  • Disable any unnecessary services
  • If you access the internet through a proxy, it is important to configure your golden master image with the correct proxy settings. It is recommended to refer to the operating system documentation for detailed instructions; a good starting point is http://technet.microsoft.com/en-us/library/cc985352.aspx.

File System

  • Disable NTFS "Last Accessed" option
    • fsutil behavior set disablelastaccess 1 (Requires reboot)
  • Disable Windows Prefetcher & Set the value to 0 (Disable)
    • [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters\EnablePrefetcher];
  • Disable System Restore
    • Right Click "My Computer" -> Properties, -> "System Restore" tab and select "Turn off System Restore"
  • Disable Indexing
    • Double Click "My Computer, Right click on C:\ -> Properties -> Click "General" tab and clear "Allow Indexing Service to Index…"
  • Disable Offline Files
  • Disable scheduled or background Defrag
  • Disable Windows Search
  • Disable Windows Disk Optimizer
  • Adjust the disk timeout value
    • [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Disk] "TimeOutValue"=REG_DWORD:0×000000be(190)
  • Use User Profile Hive Cleanup Service to help prevent profile corruption

Power Settings

  • Disable hibernation
  • Change power settings to "High Performance" and disable sleep timer
  • Set HDD’s to "Never" turn off
  • Open Control Panel -> Power Options -> Change Plan Settings -> Change Advanced power settings and set the "Turn off hard disks after" setting to Never
  • Disable the Logon Screen Saver
  • HKEY_USERS\.DEFAULT\Control Panel\Desktop
  • Edit ScreenSaverActive and change value to 0

Disable Notifications

  • Disable logging of informational Printing events
  • Open "Printers and Faxes", Click File-> Server Properties -> Advanced and clear "Log spooler informational events"
  • Disable Success Logging (login attempts, etc.)
  • Only do this if security policy allows it
  • Disable Toolbar Notifications
  • Disable the Windows XP Tour Notifier
  • Disable Balloon Tips
  • Shrink Event Logs and enable circular logging (registry keys)
  • Disable Desktop Cleanup Wizard

Browser/Internet Explorer

  • Upgrade to the latest browser version.
  • Disable "Use Suggested Sites"
  • Set the default home page to your Intranet site, or blank, or something lightweight
  • Change IE to prevent programs from suggesting a change of the search provider
  • Remove Webslice gallery and suggested sites from Toolbars on IE
  • Add "trusted sites" as necessary
  • Shrink the IE Temp File size
  • Adjust browser cache size to lowest useful setting

Common Applications

  • Install Adobe Flash Player (turning off automatic updates)
  • Install Adobe Reader and set to "Do not download or install updates automatically"
  • Turn Java Updater off
  • Remove MS OneNote tray service (if installed)
  • Turn off Outlook Cached Mode
  • Remove the Language Bar
  • Regsvr32.exe /u msutb.dll
  • install a more efficient browser than Internet Explorer (e.g., Google Chrome) and set this as the default browser.

General OS Environment

  • Set Pagefile to static size
  • Change the default Windows Theme to "Basic"
  • Adjust visual effects for "Best Performance"
  • Enable ClearType Fonts
  • Turn off Windows Security Center
  • Turn off Automatic Computer Maintenance
  • Disable "Allow users to browse for troubleshooters"
  • Disable "Allow troubleshooting to begin immediately when started"

Network Optimizations

  • Install, setup and test your printers
  • Disable NetBIOS over TCP/IP
  • Disable IPv6
  • Add any necessary DNS suffixes
  • Add any necessary HOSTS entries for "custom" applications
  • Disable Automatic Searching of Network Printers and Shares
  • DHCP: Adjust default lease time

Final Cleanup

  • Optimize the Registry
    • RegScrub.exe – Registry Cleaner
    • NTRegOpt.exe – Registry Optimizer, removing "white" space in registry
  • Run disk cleanup
  • Defrag the HDD
  • Delete all event logs
  • Make the User profile the Default Profile
  • (Windows 7) ensure KMS server is enabled
  • Make sure Floppy and CD-ROM drives are set to "Client Device" and not set to "Connect at Power On"

Antivirus (AV)

  • When using "locked" clones AV may not be required
  • If you are using AV, avoid running AV scans concurrently
    • Full systems scans cause major performance impacts
    • Stagger full systems scans (when full system scans are a corporate standard)
    • Schedule any full system scans to run at night when no one is using the system.

User Data

  • Use folder redirection for My Documents potentially even to a Network Attached Storage (NAS)
  • Easier to use existing file archival system, maintain multiple file versions
  • Evaluate Profile Management Applications
  • Turn off Outlook/thunderbird Cached Mode (VMs that are on same high speed network as your mail server don’t benefit as much from cached mode). This will save on disk space and conserve storage IOPS.

Services

Recommended SettingBackground Explanation
Disable "Background Intelligent Transfer Service"This service uses idle network bandwidth to fetch updates for the system, like Windows Update. As we will disable these other services that rely on BITS, we can disable BITS.
Disable "Desktop Windows Manager Session Manager"This service is responsible for Windows 7 Aero theme. Turning this off typically improves performance.
Disable "Function Discovery Resource Publication"This service publishes each computer's information onto the network so peers can discover them. This functionality is typically not required in most environments. If you do not require this functionality we suggest disabling it.
Disable "HomeGroup listener" and "HomeGroup provider"This is responsible for HomeGroup membership. As the virtual Windows 7 desktops will most likely be in a domain model, the homegroup functionality is not required.
Disable "Indexing Service"The Indexing Service creates an index of local and remote files to allow for faster searching. As this information is created and stored locally. If you are using locked clones these indexes will be destroyed upon each reboot due to the read-only configuration of the locked clone. That means each reboot will start with a blank index. Disabling this service will improve scalability but will results in a slightly degraded user experience when they perform searches.
Disable Offline FilesResponsible for management and maintenance and synchronization of offline files. If your host PC/Server is online, there is little need for Offline File support.
Disable "Security Center"Disabling the Security center will eliminate reporting of issues with antivirus, malware or firewall configurations. Since many of these items are being disabled or modified, disabling this service eliminates these messages being displayed to (and potentially annoying) your users.
Disable "SuperFetch"SuperFetch tries to improve system performance over time by “learning” the typical user activity. In locked clones this information is deleted on each reboot hence provides little value.
Disable "System Restore"The System Restore service creates system snapshots and restore points. This functionality is unneeded as the virtual desktop is based on a golden, read-only (locked) image. Disabling System Restore will save disk space and CPU time.
Disable "Themes"Themes allows users to manage the themes (including backgrounds, sounds and visual effects, etc.). This service take resources and will impact overall scalability. We recommend disabling this unless you want user to be able to personalize their environment.
Disable "Windows Defender"Assuming you have your own anti-malware solution, it makes sense to disable the integrated windows service.
Disable "Windows Media Player Sharing Service"Unless users will be sharing items to other users via Media Player, this service can be disabled.
Disable "Windows Search"Disabling Windows Search will improve scalability, however many applications rely on this service. Disabling the service might result in failed searches or longer user wait-times for search results.
Disable "Windows Error Reporting"Administrative Templates – Windows Components – Windows Error Reporting
  • Generates application crash dumps to be sent to Microsoft. Should be safe to disable unless troubleshooting application.
Disable "Automatic Updates"Administrative Templates – Windows Components – Windows Updates
  • Windows updates should only be done on the base desktop image and not by users.
Disable "System Restore"Administrative templates – System – System Restore
  • Not needed due to the nature of desktop virtualization and single image management.
Disable Screensaver
Utilizing complex screen savers wastes resources. Instead, the blank screen saver should be used to secure the environment without impacting resources. Administrative Templates – Control Panel – Personalization
  • Enable screen saver: Enabled
  • Prevent changing screen saver: Enabled
  • Password protect screen saver: Enabled
  • Screen saver timeout: Enabled – 600 seconds
  • Force specific screen saver: Enabled – scrnsave.scr

Force Offscreen Composition for Internet Explorer
Overcomes a potential screen flicker issue for certain websites. [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Force Offscreen Composition"=dword:00000001

Reduce Menu Show Delay
Reduces the delay Windows sets for menus. Provides better user experience.
[HKEY_CURRENT_USER\Control Panel\Desktop] 
"MenuShowDelay"="150"
Disable all Visual Effects except "Use common tasks in folders" and "Use visual styles on windows and buttons"
Provides a better user experience. [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects]"VisualFXSetting"=dword:00000003 [HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics] "MinAnimate"="0" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] "ListviewAlphaSelect"=dword:00000000 "TaskbarAnimations"=dword:00000000 "ListviewWatermark"=dword:00000000 "ListviewShadow"=dword:00000000 [HKEY_CURRENT_USER\Control Panel\Desktop] "DragFullWindows"="0" "FontSmoothing"="0" "UserPreferencesMask"=binary:90,12,01,80 ,10,00,00,00
Note: The UserPreferenceMask changes based on the settings selected in the System Properties – Performance Options configuration page.
Disable Boot Animation
Disabling the animation, saves resources and can speeds up the boot process.
  • bcdedit /set bootux disabled
Remove unused Windows components
These items are typically not be used in most zero client environments.
  • Windows Media Center
  • DVD Maker
  • Tablet Components
Set Min & Max Page file values to the sameKeeping the pagefile at a single size prevents the system from expanding, which creates a significant amount of IO.
Optimize AntivirusDecide your A/V strategy. Configure antivirus to scan writes and disable the scheduled scans. The base image should be scanned before being deployed within production. should be done after completing all other optimizations.
Disk CleanupRemoves unnecessary files and can save disk space (depending on your VM cloning strategy)
DefragmentationDefragmenting your disk should be done before cloning your Golden Mater Image to ensure the disk is optimized. Note: this step should be done as a final step after completing all other optimizations.
November 17, 2016

Recommended Windows Registry Modifications

Recommended Windows Registry Modifications

ConfigurationOptimizerRegistry Modification (in REG format)
Disable Last Access TimestampYes[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem] "NtfsDisableLastAccessUpdate"=dword:00000001
Disable Large Send OffloadNo[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BNNS\Parameters]"EnableOffload"=dword:00000000
Disable TCP/IP OffloadNo[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]"DisableTaskOffload"=dword:00000001
Increase Service Startup TimeoutNo[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control] "ServicesPipeTimeout"=dword:0002bf20
Hide Hard Error MessagesNo[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows] "ErrorMode"=dword:00000002
Disable CIFS Change NotificationsNo[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]"NoRemoteRecursiveEvents"=dword:00000001
Disable Logon ScreensaverNo[HKEY_USERS\.DEFAULT\Control Panel\Desktop]"ScreenSaveActive"="0"
Disable Clear Page File at ShutdownYesHKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]"ClearPageFileAtShutdown"=dword:00000000
Disable Offline FilesYes[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\NetCache]"Enabled"=dword:00000000
Disable Background DefragmentationYes[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction] "Enable"="N"
Disable Background Layout ServiceYes[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout]"EnableAutoLayout"=dword:00000000
Disable Bug Check Memory DumpYes[HKLM\SYSTEM\CurrentControlSet\Control\CrashControl]"CrashDumpEnabled"=dword:00000000"LogEvent"=dword:00000000"SendAlert"=dword:00000000
Disable HibernationYes[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]"Heuristics"=hex:05,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,3f,42,0f,00
Disable Memory DumpsYes[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]"CrashDumpEnabled"=dword:00000000"LogEvent"=dword:00000000 "SendAlert"=dword:00000000
Disable Mach. Acct. Password ChangesYes[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters]"DisablePasswordChange"=dword:00000001
Redirect Event LogsNoHKLM\SYSTEM\CurrentControlSet\Services\Eventlog\Application]"File"="D:\EventLogs\Application.evtx"[HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\Security]"File"="D:\EventLogs\Security.evtx"[HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\System]"File"="D:\EventLogs\System.evtx"
Reduce Event Log Size to 64KYesHKLM\SYSTEM\CurrentControlSet\Services\Eventlog\Application]"MaxSize"=dword:00010000[HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\Security]"MaxSize"=dword:00010000[HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\System]"MaxSize"=dword:00010000