Map network shares the powershell way

Hi

When I run my script nothing happens. See Powershell.jpg

The content of my script is:

New-PSDrive -Name P -PSProvider FileSystem -Root \\FSC-server\PersonligDrev\$env:username -Persist
New-PSDrive -Name F -PSProvider FileSystem -Root \\fsc.local\FaellesDrev -Persist

When I run the commands in a powershell windows individually, then I maps the network fine.

What do I do wrong?

Thank you! :-)


August 22nd, 2015 6:22am

You are just outputting the string you typed.  TO run  a script do this.

. <script name>

Noteice the dot and space before the command.

Free Windows Admin Tool Kit Click here and download it now
August 22nd, 2015 7:41am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics