New
#1
Need to create batch file for "net share" command
I created a simple command from powershell that maps a drive for me using the "net share" command (see below). However, i want to turn this in to a batch file so I do not have to type it every time. When I name it filename.bat and try to run it, I get a
system error 5 has occured, access denied
I assume I have to make this a powershell script. My question is, if I cant run it as a batch file, how do I run this as a powershell script so I only have to click on it to run it?
*I am extremely new to powershell
Thank you
net share myshare=z:\ /grant:user,full /users:1