Hello,
I launched the CM Console > Connect Via Windows Powershell ISE (if I use Connect Via Windows PoweShell it works)
but when I try to launch the default ps1 I got an error:
PS C:\Windows\system32> C:\Users\xxxxxxxx\AppData\Local\Temp\ISEConnect_UCP - Company.ps1
File C:\Users\xxxxxxxx\AppData\Local\Temp\ISEConnect_UCP - Company.ps1 cannot be loaded. The file C:\Users\xxxxxxxx\AppData\Local\Temp\ISEConnect_UCP -
Company.ps1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting
execution policy, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170.
+ CategoryInfo : SecurityError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnauthorizedAccess
then I am trying to run:
Get-CMAntimalwarePolicy
but I am getting an error, any idea?
Thanks,
Dom
PS C:\Windows\system32> Get-CMAntimalwarePolicy
Get-CMAntimalwarePolicy : This command cannot be run from the current drive. To run this command you must first connect to a Configuration Manager drive.
At line:1 char:1
+ Get-CMAntimalwarePolicy
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : DeviceError: (Microsoft.Confi...timalwarePolicy:GetAntimalwarePolicy) [Get-CMAntimalwarePolicy], InvalidOperationException
+ FullyQualifiedErrorId : CommandCannotExecuteFromCurrentDrive,Microsoft.ConfigurationManagement.PowerShell.Cmdlets.EP.GetAntimalwarePolicy