Posts

Showing posts from August, 2016

How to enable $Admin Shares in Windows 7, 8 or 10.

REG ADD HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System /v LocalAccountTokenFilterPolicy /t REG_SZ /d 00000001 /f REG ADD HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Lanmanserver\Parameters /v AutoshareWKS /t REG_SZ /d 00000001 /f

How to get regestryvalue of remote system

Make sure enable remoteregestry service if not type below commands in remote system sc config remoteregistry start=auto sc start remote regestry To get value of  remote system regesty value reg query "\\computername\HKLM\SYSTEM\ControlSet001\Services\amdkmdag" /v Releaseversion"

2) Folders to copy/Move in Windows with shutil package in windows

import os, shutil src = "C:\\Folder\\" dst = "\\\\servername\\Results\\" shutil.copy(src, dst) shutil.move(src, dst)

1) How to install Python / Pip on Windows 7 (or 8)

How to install Python / Pip on Windows 7 (or 8) Download the MSI installer from  http://www.python.org/download/ . Select 32 bit or 64 bit based on the System Settings which opens by pressing Win+Break Run the installer. Be sure to check the option to add Python to your PATH while installing. Open PowerShell as admin by right clicking on the PowerShell icon and selecting ‘Run as Admin’ To solve permission issues, run the following command: Set-ExecutionPolicy Unrestricted Enter the following commands in PowerShell to download the bootstrap scripts for  easy_install  and  pip : mkdir c:\envs cd c:\envs (new-object System.Net.WebClient).DownloadFile('https://bootstrap.pypa.io/ez_setup.py', 'c:\envs\distribute_setup.py') (new-object System.Net.WebClient).DownloadFile('https://raw.github.com/pypa/pip/master/contrib/get-pip.py', 'c:\envs\get-pip.py') python c:\envs\distribute_setup.py python c:\envs\get-pip.py Once these commands ru...

Download files with powershell

Run below command from powershell ( new-object System . Net . WebClient ). DownloadFile ( 'https://bootstrap.pypa.io/ez_setup.py' , 'c:\foldername\filenametosave.py' ) Example: ( new-object System . Net . WebClient ). DownloadFile ( 'https://bootstrap.pypa.io/ez_setup.py' , 'c:\envs\distribute_setup.py' )