Skip to content

Commit

Permalink
bug fixes/text correction
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Jeffrey committed Mar 31, 2024
1 parent ac5406f commit b67c532
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions EmbroideryCollection-Cleanup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2174,7 +2174,7 @@ if (!(test-path $LogFile)) {
}


if ($null -eq $LastCheckedGithub -or (${get-date} -gt $(get-date $LastCheckedGithub).adddays(7))) {
if ($null -eq $LastCheckedGithub -or ($(get-date) -gt $(get-date $LastCheckedGithub).adddays(7))) {
$latestTag = Get-LatestGitHubTag -RepositoryOwner "D-Jeffrey" -RepositoryName "Embroidery-File-Organize"
$script:LastCheckedGithub = get-date -format "g"
if ($latestTag) {
Expand Down Expand Up @@ -2460,7 +2460,7 @@ if ($failed) {
}


$cont = (MyPause 'Press Start to continue, any other key to stop (Auto starting in 3 seconds)' $true 'Click Yes to start' 3)
$cont = (MyPause 'Press Start to continue, any other key to stop (Auto starting in 3 seconds)' $true 'Click Yes to start' 10)

if (!$cont) {
Break
Expand Down
8 changes: 5 additions & 3 deletions Improving Performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,26 @@ https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powers

run `powershell` and type the command
```
winget search Microsoft.PowerShell
winget install Microsoft.PowerShell
```

## Install the PSAuthClient module

run `powershell` or `PWSH` after installing Powershell 7 as administrator and type the command
Only if you are using the MySewnet cloud functionality do you need to install this module, but if you do it will make the startup of the process quicker.
Run `powershell` or `PWSH` after installing Powershell 7 *as administrator* and type the command
```
install-module PSAuthClient -Scope AllUsers
```

If you do not do this as an administrator then you will get the error message
If you do not do this as an administrator then you will get the error message.

```
install-module : Administrator rights are required to install modules in 'C:\Program Files\WindowsPowerShell\Modules'.
Log on to the computer with an account that has Administrator rights, and then try again, or install
```

## Runas Administrator
![img](docs/images/Start-runas-admin.png)

0 comments on commit b67c532

Please sign in to comment.