Windows 10: Adding a path doesn't make any difference to finding powershell scripts

Discus and support Adding a path doesn't make any difference to finding powershell scripts in Windows 10 Software and Apps to solve the problem; I've created a Powershell script folder in a certain place, and I'm trying to make it part of my PSModulePath. I've added this to $PROFILE file and... Discussion in 'Windows 10 Software and Apps' started by BlackJacques, Nov 4, 2023.

  1. Adding a path doesn't make any difference to finding powershell scripts


    I've created a Powershell script folder in a certain place, and I'm trying to make it part of my PSModulePath. I've added this to $PROFILE file and also tried this on the command-line but none of the scripts in this folder get seen, unless I explicitly put the full pathname in for them. $envAdding a path doesn't make any difference to finding powershell scripts :pSModulePath += ';G:\PIX\Powershell scripts'So what's going wrong here? I've also tried double quotes instead of single quotes. Also tried it with or without the ending backslash.

    :)
     
    BlackJacques, Nov 4, 2023
    #1
  2. BetoLP Win User

    Windows doesn`t start. Authomatic repair doesn`t work.

    Thanks again!!

    I`m sorry I had not noticed that the text on the picture was in spanish. It says that windows has replaced some damaged clusters in "name" file and "directory". Then, at the end "an unspecified error occurred (75736e6a726e6c2e 4f6)".

    I`ll do it and I`ll be updating this thread when I have the report.

    - - - Updated - - -

    I ran SeaTools. These are the results:

    Adding a path doesn't make any difference to finding powershell scripts 233722d1557862791t-windows-doesn-t-start-authomatic-repair-doesn-t-work-hdd-test-1-.png


    Does it mean my HDD is useless?
     
    BetoLP, Nov 4, 2023
    #2
  3. dalchina Win User
    dalchina, Nov 4, 2023
    #3
  4. Adding a path doesn't make any difference to finding powershell scripts

    Uninstall hidden “Network Adapters” from Device Manager using PowerShell script

    Steps:

    1. Open Device Manager from Control Panel
    2. Select “Show hidden devices” from View menu
    3. Expand “Network adapters”
    4. Find hidden adapters
    Manually these hidden adapters can be uninstall by below steps

    1. Right click on hidden adapter
    2. Click on uninstall.
    3. Click on Ok button.
    How to uninstall these adapters using PowerShell script?

    I have Administrator access still, this code throws error - Remove-ItemProperty : Requested registry access is not allowed.
     
    ShridharKusurkar, Nov 4, 2023
    #4
Thema:

Adding a path doesn't make any difference to finding powershell scripts

Loading...
  1. Adding a path doesn't make any difference to finding powershell scripts - Similar Threads - Adding path doesn't

  2. Adding a path doesn't make any difference to finding powershell scripts

    in Windows 10 Gaming
    Adding a path doesn't make any difference to finding powershell scripts: I've created a Powershell script folder in a certain place, and I'm trying to make it part of my PSModulePath. I've added this to $PROFILE file and also tried this on the command-line but none of the scripts in this folder get seen, unless I explicitly put the full pathname...
  3. Adding a path doesn't make any difference to finding powershell scripts

    in Windows 10 Network and Sharing
    Adding a path doesn't make any difference to finding powershell scripts: I've created a Powershell script folder in a certain place, and I'm trying to make it part of my PSModulePath. I've added this to $PROFILE file and also tried this on the command-line but none of the scripts in this folder get seen, unless I explicitly put the full pathname...
  4. PowerShell script

    in Windows 10 Support
    PowerShell script: The code below tests a series of IPs in a txt file.The result is as follows and is written in a txt file. 19.191.12.161 - online 19.191.12.162 - offline 19.191.12.163 - offline 19.191.12.164 - offline 19.191.12.165 - offline also see the scrennshot Code: $Output= @()$GetIP =...
  5. Powershell Script to connect AD and check if the user is member of a group or not.

    in Windows 10 Customization
    Powershell Script to connect AD and check if the user is member of a group or not.: Can you help me to create a Powershell Script to connect AD and check if the user is member of a group or not from client machine and set a registery key based on the condition...
  6. powershell scripts

    in AntiVirus, Firewalls and System Security
    powershell scripts: Hi, I have azure. Someone is somehow installing powershell scripts onto my computer that allows them to host my PC through P2P and UDP connections, well I think so anyway. I have only just found powershell script entry changes in my registry by accident. These criminals...
  7. powershell script

    in Windows 10 Customization
    powershell script: looking for a script to monitor for a folder, if there is a file in that folder send it as an email, once the email is sent out, confirm and then move the files to an archive folder. monitor c:\test\*.pdf No files, do not send email. Yes Files, send an email to someone at...
  8. Question about where to find info for Powershell script

    in Windows 10 Ask Insider
    Question about where to find info for Powershell script: I looked up how to remove Candy crush and the following command did work: Remove-AppxPackage king.com.CandyCrushFriends1.26.7.0_x86_kgqvnymyfvs32 My question is where do you find the "king.com" part so i also get rid of other things without an exact guide such as Farm...
  9. Powershell Script on Shutdown

    in Windows 10 Performance & Maintenance
    Powershell Script on Shutdown: Hi all, I try to run a Powershell Script (*.ps1) when i shut down my PC. I created the script and it is working fine when i run it. However if i want to run it on a regular Shutdown it seems like it does not start or is not finished, before Windows is killing every running...
  10. PowerShell Scripting - The Basics

    in Windows 10 Tutorials
    PowerShell Scripting - The Basics: How to: PowerShell Scripting - The Basics [img] Information A PowerShell script is a collection of commands and cmdlets to be run in logical order, previous lines in script determining values and variables in command lines thereafter. The principle is the same than in...