ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Tags
    3. scripts
    Log in to post
    • All categories
    • gjacobseG

      winget vs choco

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion choco chocolatey winget package manager package management windows10 window 11 command line scripting scripts script
      4
      0 Votes
      4 Posts
      734 Views
      DanpD

      Check out WingetUI, which can manage packages for choco, scoop, and winget.

    • DashrenderD

      script to download and extract MicroSip portable

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion dashrender scripts
      15
      0 Votes
      15 Posts
      1k Views
      DashrenderD

      @jaredbusch said in script to download and extract MicroSip portable:

      @dashrender chocolatey can easily run as non-admin. The question is whether or not the application installs can handle that. Of course your centralized scrips for keeping things up-to-date would not get that use your space one you have to have a script to keep the user space chocolatey package up-to-date also

      Yeah, I'll have to look at it - but only after someone else actually picks ownership of the package back up. The current maintainer has stated he's no longer maintaining it.

    • JaredBuschJ

      FreePBX Extension status

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion freepbx scripts
      1
      3 Votes
      1 Posts
      520 Views
      No one has replied
    • EddieJenningsE

      Organization of sample code

      Watching Ignoring Scheduled Pinned Locked Moved Developer Discussion sourcecode code management scripts code repository
      13
      0 Votes
      13 Posts
      1k Views
      dafyreD

      @dafyre said in Organization of sample code:

      I just shutdown my GOGS server and have all my important bits over on GitLab now.

      https://gitlab.com/dafyre

    • NerdyDadN

      If I was a batch scripter, I'd starve...

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion batch scripts scripting script
      2
      2 Votes
      2 Posts
      843 Views
      DashrenderD

      Here are some instructions I found.

      http://www.instructables.com/id/How-to-make-flash-drive-that-copys-users-files-si/

    • DustinB3403D

      Newb question - Running a script from the root directory

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion scripts centos centos7 linux education
      29
      0 Votes
      29 Posts
      4k Views
      scottalanmillerS

      @stacksofplates said in Newb question - Running a script from the root directory:

      @dustinb3403 said in Newb question - Running a script from the root directory:

      @stacksofplates said in Newb question - Running a script from the root directory:

      @dustinb3403 said in Newb question - Running a script from the root directory:

      @stacksofplates said in Newb question - Running a script from the root directory:

      @dustinb3403 said in Newb question - Running a script from the root directory:

      @stacksofplates said in Newb question - Running a script from the root directory:

      @dustinb3403 said in Newb question - Running a script from the root directory:

      @scottalanmiller said in Newb question - Running a script from the root directory:

      @dustinb3403 said in Newb question - Running a script from the root directory:

      @stacksofplates said in Newb question - Running a script from the root directory:

      @dustinb3403 said in Newb question - Running a script from the root directory:

      @danp said in Newb question - Running a script from the root directory:

      Is the directory in your path? What do you get from echo $PATH?

      echo $PATH
      /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/root/opt/scripts/:/root/opt/scripts

      I've added it (twice).

      Well first off you had /root/opt/scripts not /opt/scripts. Second you either have to log out and back in or tell your user to use the new path with something like

      source ~/.bash_profile

      I used ````~/opt/scripts``` initially, as I wasn't aware of just adding my scripts into one of the existing locations. (everything said just add a new directory).

      By simply moving the script into an already existing path, I am able to update with just "script.sh".

      When you are root and your home is /root and you put ~/opt/scripts that is /root/opt/scripts.

      Remember that ~ is a shortcut to your home directory, which is /root

      So by adding ```/opt/scripts/```` this would've worked, but would've added complexity for no reason.

      No that still isn’t a default location. In the OP you said you put the script in /opt/scripts. Where did you actually put it?

      Originally I created the directory /opt/scripts and put the script in there so the Directory looks like

      /opt/scripts/script.sh

      I went back and change the script location to be in /usr/local/bin

      So in /usr/local/bin I now have script.sh

      This now works without issue, and /opt/scripts no longer exists.

      Ok ya that’s where the problem was. /opt/scripts is different than /root/opt/scripts. If you would have had that in your .bashrc or .bash_profile (or whichever shellconfigure you’re using) it would have worked. But you still have to let the user know of the PATH change.

      I'm the user in this case, but I never really create / save my own scripts. I just got tired of running a set of commands, every other day.

      Thus the need to figure out how I could run the script, without having to jump into the exact directory from which the script was saved.

      I mean you have to let the user you are logged in as Know if the change. Either by logging out and back in or by temporarily sourcing the config.

      I've logged out, what do you mean "sourcing the config" ?

      If you change your PATH while you’re logged on the user account doesn’t know of that change. You have to either log out and log in again or temporarily do something like

      source ~/.bashrc

      Or the non-aliased version...

      . ~/.bashrc
    • NerdyDadN

      Inactive Users Report with PowerShell

      Watching Ignoring Scheduled Pinned Locked Moved Self Promotion scripts powershell users office 365 office365 o365 exchange nerdydad ps scripts
      1
      1 Votes
      1 Posts
      1k Views
      No one has replied
    • NerdyDadN

      Disable a User on O365 with PowerShell

      Watching Ignoring Scheduled Pinned Locked Moved Self Promotion scripts powershell o365 office 365 office 365 administration users nerdydad ps scripts
      1
      1 Votes
      1 Posts
      2k Views
      No one has replied
    • NerdyDadN

      Disable an Exchange User without O365 with PowerShell

      Watching Ignoring Scheduled Pinned Locked Moved Self Promotion powershell exchange scripts users nerdydad ps scripts
      1
      1 Votes
      1 Posts
      1k Views
      No one has replied
    • NerdyDadN

      Creating New User without O365 with PowerShell

      Watching Ignoring Scheduled Pinned Locked Moved Self Promotion powershell scripts active directory users nerdydad ps scripts
      4
      4 Votes
      4 Posts
      2k Views
      NerdyDadN

      Inserted a new line of code at line 82 & 87 to read as follows:

      icacls \\<server>\d$\Users\$un\* /grant $un:F /inheritance:e /T

      This line grants the new employee full access to their network folder and subfolders and items.

    • NerdyDadN

      NerdyDad's PowerShell Scripts

      Watching Ignoring Scheduled Pinned Locked Moved Self Promotion powershell scripts nerdydad ps scripts
      10
      14 Votes
      10 Posts
      2k Views
      NerdyDadN

      @kelly said in NerdyDad's PowerShell Scripts:

      If you aren't putting this out on a blog somewhere you're probably losing some valuable publicity. These are good scripts that people would love to be able to find.

      That's on my to-do list.

    • 1 / 1