Forum Discussion
Help to create a script
Like I say I'm a newbie and can you say me how can I try this script ?
I take it and put in a .txt and after I change de extension in .what ?
And does I have to give some permission somewhere ?
Thanks
PS, jsut if I good read, you change the name of the files like that ?
Because if yes, it isn't what I want...
Kindest regards, thanks
Hi ,
thanks for your update.
To use the script, you will need to save it as a .ps1 file. You can open your notepad, paste the code there and save it as MyScript.ps1.
Then, you can open a PowerShell console (as an Admin) and navigate to the directory where you saved the script.
To do this, you can use the "cd" command. For example, if you saved the script in the "C:\Downloads" directory, you would type the following command: cd C:\Downloads
Once you are in the directory where you saved the script, you can run it by typing the following command:
.\scriptname.ps1
For example, if you saved the script as "my_script.ps1", you would type the following command:
.\MyScript.ps1
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.
If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)