Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

receiving error when running this script:

$
0
0

HI there,

This is the script i'm trying to run so I can update mulitple user's company attribute:

import=import-csvc:\import.csv

foreach($userin$import)

    {

   

    $Name=$user.name

    $Company = $user.company

         set-qaduser $Name –company $Company

      

    }

 

but when i do i receive this error:

 C:\files\Company.ps1 cannot be loaded because its operation is blocked by software restriction policies .

 

I've set my execution policy to remotesigned but still no luck.  Any advice would be helpful to get this script to run correctly :-D

- berto

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles