Difference between revisions of "Windows"

From rbachwiki
Jump to navigation Jump to search
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Repair network Errors ==
==[[Fix Windows Update]]==
In the search box on the taskbar, type Command prompt, press and hold (or right-click) Command prompt, and then select Run as administrator > Yes.
==[[Update Windows From PowerShell]]==
At the command prompt, run the following commands in the listed order, and then check to see if that fixes your connection problem:
#Type netsh winsock reset and press Enter.
#Type netsh int ip reset and press Enter.
#Type ipconfig /release and press Enter.
#Type ipconfig /renew and press Enter.
#Type ipconfig /flushdns and press Enter.


'''To turn off all firewalls'''
==[[PowerShell| Windows Powershell]]==


In the search box on the taskbar, type Command prompt, press and hold (or right-click) Command prompt, and then select Run as administrator > Yes.
==[[Windows Misc]]==
At the command prompt,
==[[Extend C Drive]]==
*type netsh advfirewall set allprofiles state off, and then press Enter.
==[[Recover Broken Drives]]==
Open your web browser and visit a website you trust and see if you can connect to it.
==[[Robocopy]]==
To turn on all firewalls you might have installed, at the command prompt,
==[[Windows Command Line Goodies]]==
*type netsh advfirewall set allprofiles state on, and then press Enter.
==[[Repair Network Drive]]==
 
==[[Fix Broken Windows Files - System file checker]]==
==Batch File Copy Command ==
<pre>
@echo off
  echo -open (open Download Folder)
  echo -copyps (copy ps recovery file to desktop)
  echo -tv (copy a single file)
  echo -quit
  echo.
  set /p PROGRAM= What do want to do:
  goto %PROGRAM%
 
  :open
  cls
  start \\192.168.20.xx
  pause
  goto start
 
  :copyps
  cls
   
  REM E switch copies dir and sub dir I switch assumes dir
  xcopy /E/I "\\192.168.20.xx\dir\dir" destinationdir
  pause
  goto start
 
  REM the %CD% directive will copy file to where the batch file was executed
  xcopy /E/I "\\192.168.20.xx\dir\filename.txt" %CD%
  pause
  goto start
  :quit
  cls
  exit
 
</pre>
 
==Windows Command Line Goodies ==
<pre>
**Ping with varying payload
 
This works on Mac
 
Ping -s 6000 ipaddress
 
This works on windows
 
ping -i 6000 ipaddress
 
***See list of computers in your workgroup
 
Windows:
 
net view
 
find out MAC address
 
Windows and Mac
 
arp -a
 
sc command (command prompt)sililar to the services.svc (windows run)
 
nslookup www.website.com // this will give you the ipaddress
 
**** mapping drives at the command prompt
 
net use driveletter: \\server-name\sharename
net use driveletter: /deletenet use /? for options
you can create a batch file to map drives also
in notepad
net use x: /delete # delete mapped drive
net use x: \\servername\share # will map drive
save file with the .bat extension, then you can doubble click on it to map the drive
</pre>
''' Changing the color of the command prompt '''
color help
a bunch of color codes will appear <br>
color followed by the color code: color 02
 
''' Create a Wifi Hotspot '''
netsh wlan set hostednetwork mode=allow ssid=HotSpotName key=password
To Start:
netsh wlan start hostednetwork
 
''' Pipe output from the command line to the clipboard '''
ipconfig | clip
'''Get a list of installed programs '''
wmic product get name
'''Uninstall a program from the command line'''
wmic product where "name like iTunes" call uninstall /noninteractive
 
 
----
[[#Batch File Copy Command|Back To Top]]-[[Main_Page| Home]]

Latest revision as of 18:00, 17 October 2024