Deployment Solution

 View Only
  • 1.  Using Altiris to set W10 network category to Private?

    Posted Jul 31, 2017 02:59 PM

    W10 Enterprise x64 non AD.

     

    I have seen powershell and vbs scripts that one can execute locally on a W10 system to set network category to .....

     

    Can this be done via an Altiris script?

    Everytime I try the same commands in a script I get;

     

    & : File C:\Windows\TEMP\AltirisScriptF46CAD0015FAA0F94.ps1 cannot be loaded
    because running scripts is disabled on this system. For more information, see
    about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170.
    At line:1 char:3
    + & 'C:\Windows\TEMP\AltirisScriptF46CAD0015FAA0F94.ps1'; exit $LastExi ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

     

    I've read the tid and it seems like chicken or egg....

     

    Thank you

     



  • 2.  RE: Using Altiris to set W10 network category to Private?

    Posted Aug 01, 2017 09:00 AM

    There are techniques to get round this:

    https://blog.netspi.com/15-ways-to-bypass-the-powershell-execution-policy/

    Maybe try:

    Get-Content .runme.ps1 | PowerShell.exe -noprofile - 

    Or this:

    PowerShell.exe -ExecutionPolicy Bypass -File .runme.ps1