Hey Guys, I started working with a new organization and they had very strict policies when it comes to system Security. Only 'cmd' or 'powershell' can be executed with elevated rights. My problem: I need to modify my hosts file which requires admin privileges. Solution: Start Powershell with elevated rights and type below Commands: PS C:\> $newProc = new-object System.Diagnostics.ProcessStartInfo "notepad" PS C:\> $newProc.Arguments = "notepad.exe" PS C:\> $newProc.Verb = "runas" PS C:\> [System.Diagnostics.Process]::Start($newProc) Now, You can see Notepad is running in administrator mode. Perform your Changes and save it. You can start any exe using above process(unless your exe is not blocked by your lo
Showing posts from March, 2018
GIT Error : Filename too long warning: Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status'
- Other Apps
Hey Guys, Lot of people among you might have seen below error while taking git check out: xxxxxxxxxxx:Filename too long warning: Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry the checkout with 'git checkout -f Head ' Solution: Execute below command and try again: git config --system core.longpaths true I hope your problem is resolved. Happy Coding!!!