Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Sunday, September 8, 2019

Program always run as Administrator

create a new shortcut, and paste

runas /user:ComputerName\Administrator /savecred “C:\Path\To\Program.exe"

Tuesday, January 22, 2019

Create universal Image

Shift + ctrl + F3 Audit Mode

Wednesday, April 11, 2018

Gpupdate /force failes

delete all from :

C:\ProgramData\Microsoft\Group Policy\History

Monday, April 10, 2017

Logon Script to delete all browser cashe

@echo off

REM Cookies:

REM RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2

REM RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

::Firefox

@echo off

taskkill /im "firefox.exe"

set DataDir=C:\Users\%USERNAME%\AppData\Local\Mozilla\Firefox\Profiles

del /q /s /f "%DataDir%"

rd /s /q "%DataDir%"

for /d %%x in (C:\Users\%USERNAME%\AppData\Roaming\Mozilla\Firefox\Profiles\*) do del /q /s /f %%x\*sqlite

::Google Chrome

@echo off

ECHO **** Clearing Chrome cache
taskkill /F /IM "chrome.exe">nul 2>&1

set ChromeDataDir=C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default
set ChromeCache=%ChromeDataDir%\Cache>nul 2>&1  
del /q /s /f "%ChromeCache%\*.*">nul 2>&1    
del /q /f "%ChromeDataDir%\*Cookies*.*">nul 2>&1    
del /q /f "%ChromeDataDir%\*History*.*">nul 2>&1    


set ChromeDataDir=C:\Users\%USERNAME%\Local Settings\Application Data\Google\Chrome\User Data\Default
set ChromeCache=%ChromeDataDir%\Cache>nul 2>&1
del /q /s /f "%ChromeCache%\*.*">nul 2>&1   
del /q /f "%ChromeDataDir%\*Cookies*.*">nul 2>&1    
del /q /f "%ChromeDataDir%\*History*.*">nul 2>&1    
ECHO **** Clearing Chrome cache DONE


::Internet Explorer
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351

:Clear temp files
erase "%TEMP%\*.*" /f /s /q
for /D %%i in ("%TEMP%\*") do RD /S /Q "%%i"

erase "%TMP%\*.*" /f /s /q
for /D %%i in ("%TMP%\*") do RD /S /Q "%%i"

Tuesday, January 17, 2017

Cann't connect Admin Share member of administrators group

\\servername\c$
Can connect to it using the default Administrator account. But if I try to connect using  account that is a member of the Administrators group,  can't.
create the LocalAccountTokenFilterPolicy DWORD value at this key in the registry
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system\
0 - build filtered token (Remote UAC enabled) 
1 - build elevated token (Remote UAC disabled)

or you can add this key from CMD :

reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f

Thursday, November 17, 2016

Uninstall an Application from the CMD

Open CMD as Administrator:

wmic:root\cli>
product get name (you will see installed software list)
product where name="" call uninstall

For example:

product where name="SkypeT 7.29" call uninstall

Monday, February 29, 2016

Sharing files when Windows Firewall is on

UDP 137

UDP 138

UDP 445

TCP 139

TCP 445

Tuesday, February 2, 2016

CPL Comands

Open Documents Folderdocuments
Open Videos foldervideos
Open Downloads Folderdownloads
Open Favorites Folderfavorites
Open Recent Folderrecent
Open Recent Folderlogoff
Open Pictures Folderpictures
Windows Sideshowcontrol.exe /name Microsoft.WindowsSideshow
Windows CardSpacecontrol.exe /name Microsoft.cardspace
Windows Anytime UpgradeWindowsAnytimeUpgradeui
Taskbar and Start Menucontrol.exe /name Microsoft.TaskbarandStartMenu
Troubleshootingcontrol.exe /name Microsoft.Troubleshooting
User Accountscontrol.exe /name Microsoft.UserAccounts
Adding a new Devicedevicepairingwizard
Add Hardware Wizardhdwwiz
Advanced User Accountsnetplwiz
Advanced User Accountsazman.msc
Backup and Restoresdclt
Bluetooth File Transferfsquirt
Calculatorcalc
Certificatescertmgr.msc
Change Computer Performance Settingssystempropertiesperformance
Change Data Execution Prevention Settingssystempropertiesdataexecutionprevention
Change Data Execution Prevention Settingsprintui
Character Mapcharmap
ClearType Tunercttune
Color Managementcolorcpl
Command Promptcmd
Component Servicescomexp.msc
Component Servicesdcomcnfg
Computer Managementcompmgmt.msc
Computer Managementcompmgmtlauncher
Connessione proiettore di retenetproj
Connect to a Projectordisplayswitch
Control Panelcontrol
Create A Shared Folder Wizardshrpubw
Create a System Repair Discrecdisc
Credential Backup and Restore Wizardcredwiz
Data Execution Preventionsystempropertiesdataexecutionprevention
Date and Timetimedate.cpl
Default Locationlocationnotifications
Device Managerdevmgmt.msc
Device Managerhdwwiz.cpl
Device Pairing Wizarddevicepairingwizard
Diagnostics Troubleshooting Wizardmsdt
Digitizer Calibration Tooltabcal
DirectX Diagnostic Tooldxdiag
Disk Cleanupcleanmgr
Disk Defragmenterdfrgui
Disk Managementdiskmgmt.msc
Displaydpiscaling
Display Color Calibrationdccw
Display Switchdisplayswitch
DPAPI Key Migration Wizarddpapimig
Driver Verifier Managerverifier
Ease of Access Centerutilman
EFS Wizardrekeywiz
Event Viewereventvwr.msc
Fax Cover Page Editorfxscover
File Signature Verificationsigverif
Font Viewerfontview
Game Controllersjoy.cpl
Getting Startedgettingstarted
IExpress Wizardiexpress
Getting Startedirprops.cpl
Install or Uninstall Display Languageslusrmgr
Internet Exploreriexplore
Internet Optionsinetcpl.cpl
iSCSI Initiator Configuration Tooliscsicpl
Language Pack Installerlpksetup
Local Group Policy Editorgpedit.msc
Local Security Policysecpol.msc
Local Users and Groupslusrmgr.msc
Location Activitylocationnotifications
Magnifiermagnify
Malicious Software Removal Toolmrt
Manage Your File Encryption Certificatesrekeywiz
Math Input Panelmip
Microsoft Management Consolemmc
Microsoft Support Diagnostic Toolmsdt
Mousemain.cpl
NAP Client Configurationnapclcfg.msc
Narratornarrator
Network Connectionsncpa.cpl
New Scan Wizardwiaacmgr
Notepadnotepad
ODBC Data Source Administratorodbcad32
ODBC Driver Configurationodbcconf
On-Screen Keyboardosk
Paintmspaint
Pen and Touchtabletpc.cpl
People Near Mecollab.cpl
Performance Monitorperfmon.msc
Performance Optionssystempropertiesperformance
Phone and Modemtelephon.cpl
Phone Dialerdialer
Power Optionspowercfg.cpl
Presentation Settingspresentationsettings
Print Managementprintmanagement.msc
Printer Migrationprintbrmui
Printer User Interfaceprintui
Private Character Editoreudcedit
Problem Steps Recorderpsr
Programs and Featuresappwiz.cpl
Protected Content Migrationdpapimig
Region and Languageintl.cpl
Registry Editorregedit
Registry Editor 32regedt32
Remote Access Phonebookrasphone
Remote Desktop Connectionmstsc
Resource Monitorresmon
Resultant Set of Policyrsop.msc
SAM Lock Toolsyskey
Screen Resolutiondesk.cpl
Securing the Windows Account Databasesyskey
Servicesservices.msc
Set Program Access and Computer Defaultscomputerdefaults
Share Creation Wizardshrpubw
Shared Foldersfsmgmt.msc
Snipping Toolsnippingtool
Soundmmsys.cpl
Sound recordersoundrecorder
SQL Server Client Network Utilitycliconfg
Sticky Notesstikynot
Stored User Names and Passwordscredwiz
Sync Centermobsync
System Configurationmsconfig
System Configuration Editorsysedit
System Informationmsinfo32
System Propertiessysdm.cpl
System Properties (Advanced Tab)systempropertiesadvanced
System Properties (Computer Name Tab)systempropertiescomputername
System Properties (Hardware Tab)systempropertieshardware
System Properties (Remote Tab)systempropertiesremote
System Properties (System Protection Tab)systempropertiesprotection
System Restorerstrui
Task Managertaskmgr
Task Schedulertaskschd.msc
Trusted Platform Module (TPM) Managementtpm.msc
User Account Control Settingsuseraccountcontrolsettings
Utility Managerutilman
Version Reporter Appletwinver
Volume Mixersndvol
Windows Action Centerwscui.cpl
Windows Activation Clientslui
Windows Anytime Upgrade Resultswindowsanytimeupgraderesults
Windows CardSpaceinfocardcpl.cpl
Windows Disc Image Burning Toolisoburn
Windows DVD Makerdvdmaker
Windows Easy Transfermigwiz
Windows Explorerexplorer
Windows Fax and Scanwfs
Windows Featuresoptionalfeatures
Windows Firewallfirewall.cpl
Windows Firewall with Advanced Securitywf.msc
Windows Journaljournal
Windows Media Playerwmplayer
Windows Memory Diagnostic Schedulermdsched
Windows Mobility Centermblctr
Windows Picture Acquisition Wizardwiaacmgr
Windows PowerShellpowershell
Windows PowerShell ISEpowershell_ise
Windows Remote Assistancemsra
Windows Repair Discrecdisc
Windows Script Hostwscript
Windows Updatewuapp
Windows Update Standalone Installerwusa
Versione Windowswinver
WMI Managementwmimgmt.msc
WordPadwrite
XPS Viewerxpsrchvw

Friday, January 29, 2016

Reset local admin password

Download Offline NT Password and Registry editor. -Soft is free!
Create bootable CD or USB.

Boot on Computer or Server.


Select Disk with installed WIndows



Select path ( windows\system32\config)











Saturday, January 23, 2016

Remove All Metro Apps via PowerShell in Windows 8

Remove all currently installed Metro Apps:

Get-AppxPackage -AllUsers | Remove-AppxPackage

If you wish to stop them from getting re-installed for the next new user:

Get-AppXProvisionedPackage -online | Remove-AppxProvisionedPackage –online

Thursday, January 21, 2016

Windows Update in Audit mode on Windows 8.1

Download:

http://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc

After you have downloaded the module, do the following:
1.)  Copy the whole module folder (after unzipping) to %WINDIR%\System32\WindowsPowerShell\v1.0\Modules

2.) Start up PowerShell ISE as admin from admin tools

3.) Set-ExecutionPolicy RemoteSigned

4.) Import-Module PSWindowsUpdate

5.) Get-WUInstall

6.) The rest should be automated with some prompts

Restart Computer!

Shutdown or Reboot Computer CMD and PowerShell

CMD

Shutdown force :

shutdown -s -f -t 0

Restart Force:

shutdown -r -f -t 0


PowerShell :

Stop-Computer -Force

Restart-Computer -Force

Remote Computer :

 Stop-Computer -ComputerName computer  -Credential username -Force

Wednesday, January 13, 2016

Temporary User Profile


   Log in with temp profile.
b)      Start registry editor by typing regedit in find box of Windows 7.
c)      Navigate the following location.
d)      You will see similar keys under profile list, but one with .bak, as shown below.

e)      The key with .bak is for the correct old profile. Currently your Windows 7 computer logged in with fresh (temporary) profile with same key. So, rename the new profile key ( which is not having.bak) and remove .bak from correct profile key. See below.

f)      That’s it. Log off and log in (or restart) with your user name and password. You must get your correct profile with icons and profile settings back in Windows 7, if you are lucky enough

Change default printer for all users on this computer

ntprint /setdefault name=<printer name> 

Nslookup

Find Kms Server:

nslookup -type=all _vlmcs._tcp


Check Lync DNS record:

NslookupSet type=srv_sip._tls.test.com (lync dns record )


MX

Nslookup
Set type=mx
Gmail.com

never Launch Startup Repair

bcdedit /set {default} bootstatuspolicy ignoreallfailures

Wednesday, March 18, 2015

NTLDR is missing


NTLDR is missing




იმისათვის რომ გავასწოროთ Windows XP -ზე  NTLDR is missing, ყველაზე მარტივი გზა არის - უნდა ჩავიტვირთოთ  ნებისმიერი LIVE-CD დისკით და C:\ დისკზე (სადაც სისტემაა დაყენებული) უნდა დავაკოპიროთ ფაილები  : 

          NTLDR
       Ntdetect.com
        
 
ეს ფაილები უნდა ავიღოთ ან მუშა კომპიუტერიდან იგივე დაყენებული სისტემით, (უნდა ჩავრთოთ hidden files)


ან და ვინდოუსის საინსტალაციო დისკიდან:  I386 ფოლდერიდან.

Tuesday, March 17, 2015

კლავიატურის კომბინაციები

Alt + Enter — იხსნება თვისებების (propertis) ფანჯარა მონიშნული ობიექტისათვის (ობიექტi შეიძlება იყოს, დისკი ფაილი, პაპკა).
Alt + F4 — ხურავს აქტიურ ფანჯარას. თუ აქტიური ფანჯრები არ არის მაშინ იძახებს Windows-ის დახურვის მენიუს ფანჯარას.
Alt + Space — ხსნის აქტიური ფანჯრის სისტემურ მენიუს, ჯამში ეს კომბინაცია ტოლფასია მაუსით აქტიური ფანჯრის ხაზზე მარჯვენა კლავიშით დაწკაპუნებისა
Alt + [და მენიუში ხაზგასმული ასო] — იძახებს მენიუს შესაბამის პუნქტს.
Alt + Tab — აქტიურ პროგრამებს შორის გადართვა.
Backspace — ერთი დონით ზემოთ ასვლა Windows Explorer-ში, ხოლო Internet Explorer-ში კი ერთი გვერდით უკან დაბრუნება (თუ რა თქმ აუნდა ეს უკანა გვერდი უკვე გაიარეთ და დაბრუნება გსურთ).
Ctrl — დააჭირეთ ამ ღილაკს მაშინ როდესაც ფაილი გადაგაქვთ ერთიადგილიდან მეორეზე, იმისათვის, რომ საწყისი ფაილის კოპირება მოხდეს და არა გადაადგილება.
Ctrl + A — ყველაფრის მონიშვნა.
Ctrl + C — მონიშნული ობიექტის ან ტექსტის კოპირება.
Ctrl + V — დამახსოვრებულის ჩასმა.
Ctrl + X — მონიშნულის ამოჭრა და მეხსიერებაში დამახსოვრება.
Ctrl + Z — ბოლო მოქმედების გადაფიქრება, გადადება, ზოგიერთ პროგრამაში შეიძლება მხოლოდ ერთი მოქმედების დაბრუნება, ზოგიერთი კი უსასრულო რაოდენობის დაბრუნება შეიძლება.
Delete — მონიშნული ობიექტის ან ტექსტის წაშლა.
Ctrl + Esc, ან Win — მენიუ Start-ის გამოძახება.
Ctrl + Esc, ან Esc — თუ უკვე გამოძახებული გაქვთ მენიუ Start და დააჭერთ ამ კომბინაციას, მაშინ მენიუ დაიხურება, მაგრამ ღილაკი Start  დარჩება აქტიური.
Ctrl + Shift — დააჭირეთ ამ კომბინაციას როდესაც გადაგაქვთ ფაილი ერთი ადგილიდან მეორეზე და საბოლოო ადგილზე მიიღებთ ფაილის მოკლე კლავიშს (Shortcut).
F1, Win + F1 — შველის/დახმარების გამოძახება.
F10 — აქტიურს ხდის მენიუს პუნქტს.
F2 — მონიშნული ობიექტის სახელის გადარქმევა.
F3 — ძიება.
F4 — Explorer-ში სისტემური მისამართების ფანჯრის გახსნა/ჩამოშლა.
F5 — განახლება.
F6 — გზამკვლევის (Explorer) მენიუებში გადართვა.
Shift — დააჭირეთ:
  • — ფაილის გადატანისას, რომ ეს ფაილი გადაადგილდეს და არ იყოს კოპირებული;
  • —Windows-ის ჩატვირთვისას, რათ არ ჩაიტვირთოს (Startup) ავტო ჩატვირთვის ობიექტები/პროგრამები;
  • — როდესაც CD-ROM-ში დებთ დისკს, არ მოხდება დისკის ავტომატური გაშვება (AutoRun).

Shift + Delete — ობიექტის/ფაილის წაშლა სანაგვე ყუთში მოხვედრის გარეშე.
Shift + F10 — იგივეა რაც ობიექტზე მაუსის მარჯვენა კლიკი.
Win + Break — სისტემის თვისებების გამოძახება (System Properties).
Win + D — ჩამოიხუროს ყველა ფანჯარა, ხელმეორედ დაჭერა აღადგენს ფანჯრების განლაგებას.
Win + E — გზამკვლევის (Explorer) გამოძახება.
Win + F — პროგრამებში ძიების ფანჯრის გამოძახება.
Win + R — ფანჯარა Run-ის გამოძახება.
Win + Shift
          + M — ფანჯრების ჩამოხურვის გაუქმება/გადაფიქრება.
Win + Tab — გზამკვლევში (Explorer)  ფანჯრებში გადართვა.
Win + M — ჩამოიხუროს ყველა აქტიური ფანჯარა,  გარდა თვისებების (Properties) ფანჯრისა.

Speed Comands Windows

Appwiz.cpl  -  Programs and Features replaces Add or Remove Programs
NCPA.cpl -Network Connections 

Firewall.cpl - firewall settings

Hdwwiz.cpl  - device manager
Intl.cpl  -Regional Settings
Powercfg.cpl - Power Settings
Sysdm.cpl  -System Properties

gpedit.mscLocal Group Policy Editor
mstsc –   remote desktop

net share – shows shared folders on this computer
net time \\server_name /set  - time sincronization
                          

Windows path

Переменные окружения Windows
Windows XP и предыдущие
Windows Vista и следующие
%ALLUSERSPROFILE%
C:\Documents and Settings\All Users
C:\ProgramData
%APPDATA%
C:\Documents and Settings\username\Application Data
C:\Users\username\AppData\Roaming
%LOCALAPPDATA%
C:\Users\username\AppData\Local
%ProgramData%
C:\ProgramData
%ProgramFiles%
C:\Program Files
C:\Program Files
%ProgramFiles(x86)%
C:\Program Files (x86)
%PUBLIC%
C:\Users\Public
%SystemDrive%
C:
C:
%USERPROFILE%
C:\Documents and Settings\username
C:\Users\username
%windir%
C:\Windows
C:\Windows