Skip to content

Commit 540d805

Browse files
authored
Update README.md
1 parent d37f71a commit 540d805

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

README.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,35 @@ The main goal of the project is to create a well-organized repository with tools
5656
## How to Use
5757

5858
1. Run PowerShell.
59-
60-
![image](https://github.com/user-attachments/assets/6944f1c9-fd6f-4148-bcce-1ed0518726b3)
59+
> It is recommended to use the latest version of Powershell available.
6160
62-
3. Locate the path where the scripts you want to run are located.
63-
64-
![image](https://github.com/user-attachments/assets/e5df0556-6f06-4f29-9141-a36c237bd979)
61+
2. Locate the path where the scripts you want to run are located.
6562

66-
5. Run the script you want to use.
63+
```powershell
64+
Set-Location -Path "path\to\repository\folder"
65+
```
66+
67+
3. Run the script you want to use.
6768

6869
**Example:**
6970
```powershell
70-
.\Scripts\Test-Latency.ps1
71+
.\Test-Latency.ps1
7172
```
7273
74+
## Common problems
75+
76+
- **AccessDenied**
77+
- Solution: Run Powershell as administrator
78+
```powershell
79+
if (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator"))
80+
{
81+
$arguments = "& '" +$myinvocation.mycommand.definition + "'"
82+
Start-Process powershell.exe -Verb runAs -ArgumentList $arguments
83+
Break
84+
}
85+
```
86+
87+
7388
## Contributing
7489
Contributions to enhance the repository or address issues are welcome. Please open a GitHub issue or submit a pull request.
7590

0 commit comments

Comments
 (0)