- Печать
Страницы: [1] Вниз
Тема: Не запускается Cisco Packet Tracer (Прочитано 5145 раз)
0 Пользователей и 1 Гость просматривают эту тему.

Stazot
Привет народ! Поможите чем можите.
Проблема следующая Установил packet tracer, но запускаться он не хочет, при чем на этом же ноуте, под этой же системой работал. Как то пытался пролог установить, но не вышло, при этом перестал работать компилятор FreePascal долго мучился но не нашел ничего лучше чем откатиться на точку восстановления. После чего установил компилятор и всё стало хорошо, но не с циской. после установки не запускается, уже и удалял. Не помогло. Пару раз получал ошибку
/usr/local/bin/packettracer: строка 8: 4505 Аварийный останов (подготовлен дамп ядра) ./PacketTracer7 «$@» > /dev/null 2>&1
. После очередной переустановки ошибку получить не удалось. Единственное что вижу в терминале
ra@nool:~$ sudo /opt/pt/packettracer Может кто знает как это излечить, может какие библиотеки нужно поставить?
Starting Packet Tracer 7.0
ra@nool:~$

preacher8991
Здравствуйте, та же проблема. Скачивал с офф сайта, 7.0 версию, выдает эту ошибку.

Eugene Nuke
Покажите вывод команды:
$ ldd /opt/pt/packettracer

Stazot
Вопрос решился удалением корневой папки packettracer-а в домашнем каталоге пользователя.
- Печать
Страницы: [1] Вверх
I try to run powershell script from c#.
First i set the ExecutionPolicy to Unrestricted and the script is running now from PowerShell ISE.
Now this is c# my code:
class Program
{
private static PowerShell ps;
static void Main(string[] args)
{
ps = PowerShell.Create();
string ps1File = Path.Combine(Environment.CurrentDirectory, "script.ps1");
ExecuteScript(ps1File);
Console.ReadLine();
}
static void ExecuteScript(string script)
{
try
{
ps.AddScript(script);
Collection<PSObject> results = ps.Invoke();
Console.WriteLine("Output:");
foreach (var psObject in results)
{
Console.WriteLine(psObject);
}
Console.WriteLine("Non-terminating errors:");
foreach (ErrorRecord err in ps.Streams.Error)
{
Console.WriteLine(err.ToString());
}
}
catch (RuntimeException ex)
{
Console.WriteLine("Terminating error:");
Console.WriteLine(ex.Message);
}
}
}
And the output is:
ps1 cannot be loaded because running scripts is disabled on this
system. For more informationm see about_Execution_Policies at
http://go.microsoft.com/fwlink/?LinkID=135170.
asked Dec 13, 2016 at 9:21
3
This could be due to the current user having an undefined ExecutionPolicy.
In PowerShell as Administrator, you could try the following:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
Henke
3,7313 gold badges25 silver badges37 bronze badges
answered Mar 5, 2018 at 14:09
TomTom
11.9k2 gold badges15 silver badges30 bronze badges
7
Open powershell in administrative mode
and run the following command
Set-ExecutionPolicy RemoteSigned
answered Nov 8, 2019 at 10:50
SunnySunny
1,9251 gold badge14 silver badges13 bronze badges
6
Run this code in your powershell or cmd
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
answered Mar 21, 2020 at 20:04
2
Try this command in terminal(Visual Studio Code terminal or any IDE you are using) and problem will solve
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser
note : don’t change CurrentUser to your username
answered Jul 16, 2021 at 12:41
3
If you are using visual studio code:
- Open terminal
- Run the command: Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
- Then run the command protractor conf.js
This is related to protractor test script execution related and I faced the same issue and it was resolved like this.
answered Sep 14, 2020 at 11:49
Mohd YusufMohd Yusuf
4514 silver badges2 bronze badges
0
go to system settings -> Update & Security -> For Developers -> PowerShell
apply the following option
answered Nov 21, 2021 at 16:27
LeiLei
3294 silver badges6 bronze badges
7
Open VS Code terminal and run the following script:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
answered Apr 12, 2021 at 4:52
2
The following three steps are used to fix Running Scripts is disabled on this System error
Step1 : To fix this kind of problem, we have to start power shell in administrator mode.
Step2 : Type the following command set-ExecutionPolicy RemoteSigned
Step3: Press Y for your Confirmation.
Visit the following for more information https://youtu.be/J_596H-sWsk
answered May 5, 2020 at 13:22
Paste this code in your terminal
(Visual Studio Code terminal or any IDE you are using)
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
Press Enter
Enjoy 
answered Jul 16, 2021 at 9:01
Dayo JaiyeDayo Jaiye
9381 gold badge10 silver badges17 bronze badges
-
close your current command prompt or vs code (terminal)
-
open PowerShell in Admin mode
-
run this command inside PowerShell
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -
answer Y or A (if you want to give access to all users)
-
now open command prompt or vs code or whatever you like to run your project
answered Sep 26, 2021 at 2:37
1
Another solution is Remove ng.ps1 from the directory C:Users%username%AppDataRoamingnpm and clearing the npm cache
answered Jun 21, 2020 at 5:28
2
Open PowerShell in administrative mode and run the following command
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
answered Mar 14, 2022 at 8:08
3
open windows powershell in administrator mode and run the following command and its work VOILA!!
Set-ExecutionPolicy RemoteSigned
answered Feb 5, 2020 at 16:46
The PowerShell execution policy is default set to Restricted. You can change the PowerShell execution policies with Set-ExecutionPolicy cmdlet. To run outside script set policy to RemoteSigned.
PS C:> Set-ExecutionPolicy RemoteSigned
Below is the list of four different execution policies in PowerShell
Restricted – No scripts can be run.
AllSigned – Only scripts signed by a trusted publisher can be run.
RemoteSigned – Downloaded scripts must be signed by a trusted publisher.
Unrestricted – All Windows PowerShell scripts can be run.
answered Oct 14, 2019 at 17:17
I was getting this error:
ng : File C:UsersNisha JainAppDataRoamingnpmng.ps1 cannot be loaded
because running scripts is disabled on this system. For more
information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?
LinkID=135170.
At line:1 char:1
+ ng serve
+ ~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Just delete this file ng.ps1
Path is : C:UsersusernameAppDataRoamingnpmng.ps1
It works fine for me.
answered Jun 7, 2022 at 12:21
Nisha JainNisha Jain
5573 silver badges14 bronze badges
Recently, I faced the same issue that running-scripts-is-disabled-on-this-system when I was trying to deploy an app on the netlify
Below cmd worked for me.
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser
answered Dec 27, 2021 at 14:17
Open the windows powershell or cmd and just paste the following command. If it ask for further confirmation just enter YesSet-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
below should appear
`Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is «N»): Yes
PS C:UsersTessact01>`
answered Nov 14, 2021 at 11:36
Ankit KumarAnkit Kumar
2935 silver badges10 bronze badges
I think you can use the powershell in administrative mode or command prompt.
answered Nov 9, 2019 at 13:51
In this azure tutorial, we will discuss how to fix the error, Az.Resources.psm1 cannot be loaded because running scripts is disabled on this system which comes while trying to import the Module Az. Resources using PowerShell.
Recently, I was trying to import the module Az.Resources, I got the below error.
Az.Resources.psm1 cannot be loaded because running scripts is disabled on this system.
- The term ‘connect-azuread’ is not recognized as the name of a cmdlet function Azure
- The term ‘get-aduser’ is not recognized as the name of a cmdlet in Windows 10 PowerShell
- Unable to find package providers (NuGet)
I was running the below line of command/script in my Powershell window
Import-Module Az.Resources
I got the error as below. The complete error message is as below
Import-Module : File C:Program Files (x86)WindowsPowerShellModulesAz.Resources1.13.0Az.Resources.psm1 cannot be loaded because running scripts is disabled on this system. For more information, see
about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
- Import-Module Az.Resources
- ~~~~~~
- CategoryInfo : SecurityError: (:) [Import-Module], PSSecurityException
- FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.PowerShell.Commands.ImportModuleCommand

The above error means that the Az.Resources.psm1 module downloaded from the internet and that must be signed by a trusted publisher before you can run it.
Now to fix this error, You need to follow the below steps
Step- 1:
Run the below command which will change the execution policy
Set-ExecutionPolicy RemoteSigned
You can see here

Step- 2:
It will throw a popup to confirm to change the Execution policy, you can choose “Yes”. See below.
Step- 3:
Now you can run the below command to import the Module Az. Resources.You can run the below command.
Import-Module Az.Resources
This time it will import the module successfully with out any error.

You may like following Azure tutorials:
- How to Connect to Azure in PowerShell (And Azure AD)
- How to create a user in Azure active directory
- How to add bulk guest users in Azure AD B2B from Azure Portal and PowerShell
- What is Azure Active Directory B2B collaboration (Azure AD B2B)
- The term ‘get-aduser’ is not recognized as the name of a cmdlet in Windows 10 PowerShell
- The term ‘connect-azuread’ is not recognized as the name of a cmdlet function Azure
In this Azure tutorial, we discussed how to fix error, Az.Resources.psm1 cannot be loaded because running scripts is disabled on this system. I hope it helped you to fix your issue.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Closed
donders opened this issue
Jan 16, 2020
· 11 comments
Comments
as described in https://keycloak.discourse.group/t/cant-import-realm-using-docker-image/259/5
using the method described in the README for importing a realm, I get the following warning:
16:51:04,392 WARN [org.keycloak.services] (ServerService Thread Pool -- 68) KC-SERVICES0005: Unable to import realm quarkus from file /realm/realm.json.: java.lang.RuntimeException: Script upload is disabled
It would be nice if the mechanism for realm import could be updated.
Add this to your extraArgs: -Dkeycloak.profile.feature.upload_scripts=enabled
Keycloak will still say the function is deprecated, but it sure works.
kubectl create secret -n keycloak generic realm-secret --from-file=<filename>.json
keycloak:
extraVolumes: |
— name: realm-secret
secret:
secretName: realm-secret
extraVolumeMounts: |
— name: realm-secret
mountPath: «/realm/»
readOnly: true
extraArgs: «-Dkeycloak.import=/realm/.json -Dkeycloak.migration.realmName=’realm’ -Dkeycloak.profile.feature.upload_scripts=enabled»
Trying to make indents using md..
I’m not sure. Btw you might need to downgrade appversion to make it work. Then upgrade keycloak again.
Hoping to find another way to do this..
i’m worked this out with no downgrade.
u can have a try
containers:
- name: keycloak
image: hub.kce.ksyun.com/autodl/keycloak:11.0.2
imagePullPolicy: Always
env:
- name: KEYCLOAK_USER
value: admin
- name: KEYCLOAK_PASSWORD
value: KEYCLOAK_PASSWORD
- name: DB_VENDOR
value: mysql
- name: DB_ADDR
value: mysql_url
- name: DB_PORT
value: "mysql_port"
- name: DB_USER
value: mysql_user
- name: DB_PASSWORD
value: mysql_password
- name: DB_DATABASE
value: keycloak
- name: KEYCLOAK_IMPORT
value: "/data/test-realm-config/test-realm.json -Dkeycloak.profile.feature.upload_scripts=enabled"
This issue has been marked as stale because it has been open for 30 days with no activity. It will be automatically closed in 10 days if no further activity occurs.
So if this functionality is deprecated, is it replaced with something else? I understand the security risks, but this is really useful for development purposes.
@fredmorin I still used this function today(chart version 9.8.4), so it still works.
We are now able to set postgres username and password in the chart.
That makes it possible to do backup and restore.
For lost people coming here, you can import your realm by removing «Default policy» and «Default permission» (which is using JS …) from the realm json file.
@Toilal That worked for me as well. I had a realm export JSON file that was working that I use for unit tests to import into Keycloack. When modyfing this export (import to keycloak add new client with UI and export to keycloak) then it failed with this error (because the default policies are added by default).
Does someone know why this happens?
For lost people coming here, you can import your realm by removing «Default policy» and «Default permission» (which is using JS …) from the realm json file.
This saved me! Appreciated the post.
В предыдущем посте я рассказал о новой версии Cisco Packet Tracer. В этом посте я бы хотел рассмотреть установку Cisco Packet Tracer 6.0.1 на Ubuntu. Для начала скачаем сам дистрибутив (скачать Cisco Packet Tracer 6.0.1 для Ubuntu download).
Далее открываем терминал и переходим в папку, куда был скачан файл cp_6_1.bin.
Например у меня это была папка «Загрузки»
cooper@cooper-desktop ~ $ cd /home/cooper/Загрузки
cooper@cooper-desktop ~/Загрузки $
Дадим этому файлу права на исполнение
sudo chmod 777 cp_6_1.bin (правильнее будет sudo chmod u+x cp_6_1.bin)
И после этого установим
./cp_6_1.bin
Начнется установка. Нажимайте клавишу пробел чтобы пролистать пользовательское соглашение (EULA), затем подтвердите установку нажав «y», затем нажмите клавишу Enter и введите пароль root-a.
Если вы используете 64-битную систему, то необходимо установить еще одну библиотеку
sudo apt-get install ia32-libs-gtk
Теперь можно запускать Cisco Packet Tracer
На этом установка завершена. Легко и просто.
- Remove From My Forums
-
Question
-
Hello,
I’m executing powershell scripts from command prompt. I’ve changed my execution policy to Unrestricted. Also, Get-ExecutionPolicy is showing ‘Unrestricted’. When i execute following error
«File cannot be loaded because the execution of scripts is disabled on this system»
Reason ?
Sohaib Khan
Answers
-
-
Marked as answer by
Sohaib Khan
Wednesday, August 10, 2011 12:52 PM
-
Marked as answer by
All replies
-
-
Marked as answer by
Sohaib Khan
Wednesday, August 10, 2011 12:52 PM
-
Marked as answer by
-
Yes, it’s a x64 machine and i’m using SharePoint 2010 Management Shell.
Where can i find x86 instance ?
Sohaib Khan
-
Proposed as answer by
testanicet
Wednesday, June 5, 2013 11:54 AM -
Unproposed as answer by
testanicet
Wednesday, June 5, 2013 11:54 AM
-
Proposed as answer by
-
Yes, it’s a x64 machine and i’m using SharePoint 2010 Management Shell.
Where can i find x86 instance ?
Sohaib Khan
%windir%SysWOW64WindowsPowerShellv1.0
-
Proposed as answer by
Riyas Hussain
Wednesday, June 5, 2013 8:30 AM
-
Proposed as answer by
-
Please try this
Set-ExecutionPolicy Unrestricted
-
Edited by
imd.net
Wednesday, February 1, 2012 11:39 PM -
Proposed as answer by
Rob Kerr — Ann Arbor
Tuesday, May 15, 2012 1:14 AM
-
Edited by
-
Try with Force switch
Set-ExecutionPolicy Unrestricted -Force
Regards Ram
-
Proposed as answer by
tarah4
Thursday, April 3, 2014 4:39 PM
-
Proposed as answer by
-
If I use -Force I get…
A parameter cannot be found that matches the parameter name ‘Force’
-
Had the same issue, and this has fixed it for me!
Seems a bit odd that the system would have different Execution Policies for 32 and 64-bit though doesn’t it?
Thanks for the help!
-
Proposed as answer by
Roel Janssens
Tuesday, April 15, 2014 7:55 AM
-
Proposed as answer by
-
Running powershell as Administrator and executing «set-ExecutionPolicy Unrestricted» worked for me.
-
Does this option not leave the system unsecure by forever changing the powershell script running option? Where can you programmatically set it to only allow certain scripts to run. Else you just made this computer a beautiful honey jar for a hacker.
-
Does this option not leave the system unsecure by forever changing the powershell script running option? Where can you programmatically set it to only allow certain scripts to run. Else you just made this computer a beautiful honey jar for a hacker.
If you only want certain scripts to run, you’ll need to sign them and leave the policy as Restricted.
I use RemoteSigned personally. You may also want to research Bypass.
Don’t retire TechNet! —
(Don’t give up yet — 12,830+ strong and growing)
-
Running powershell as Administrator and executing «set-ExecutionPolicy Unrestricted» worked for me.
It worked for me too, thanks!
-
Changing the powershell execution policy allowed me to run scripts on my windows Azure Server.
This is heaps better now I can run my own scripts.
Regards Jake Gardner If you found this post helpful, please give it a "Helpful" vote. If it answered your question, remember to mark it as an "Answer". This posting is provided "AS IS" with no warranties
and confers no rights! Always test ANY suggestion in a test environment before implementing! Sorry if my grammar is incorrect as I am probably on writing to you from my phone. -
This certainly works, thank you.
-
There is a solution that I think is better than changing the policy for scripts in general, and that is to add the «-ExecutionPolicy
ByPass» to the command you give. So I had this problem with a shortcut to a ps1 file where the target was:%SystemRoot%system32WindowsPowerShellv1.0powershell.exe -File «C:ReBirth RB-338Rebirth.ps1»
By changing this to:%SystemRoot%system32WindowsPowerShellv1.0powershell.exe -ExecutionPolicy ByPass -File «C:ReBirth
RB-338Rebirth.ps1»The problem was solved without changing any general security settings. You can, I assume, add the same switch at the command line. Personally I think this is a better solution from a security point of view — though since hackers can use the same
switch, how secure is another issueHope this helps MIchael
-
If i use this powershell command it hides the entire mailbox
Set-Mailbox -Identity email@domain.com -HiddenFromAddressListsEnabled $trueDoes anyone how can I hide a secondary email address from the GAL but not the entire identity?
-
Edited by
Peter Harden
Monday, November 27, 2017 2:02 AM
-
Edited by
-
Ever get a response to this? I am guessing it is a new issue.. but I am looking to solve this problem myself.. for «secondary/alias email address»





