简体   繁体   English

使用 powershell 添加本地组用户策略

[英]Add Local Group User policies with powershell

I have a rather simple task.我有一个相当简单的任务。 Is there any way to add a Group Policy under User-Configuration (particularly logon / logoff PowerShell scripts)?有没有办法在用户配置下添加组策略(特别是登录/注销 PowerShell 脚本)? I have seen tons of guidesLike this one , but they are making it via GUI.我见过很多像这个这样的指南,但他们是通过 GUI 制作的。 I'd like to run a script, so all files are mapped from Network Fileshares.我想运行一个脚本,所以所有文件都从网络文件共享映射。

I need an automation to configure master-image for citrix environment.我需要自动化来为 citrix 环境配置主映像。 (Maybe this can be achieved with BIS-F? or is there some sort of registry key? ) (也许这可以通过 BIS-F 来实现?或者是否有某种注册表项?)

Thank you in Advance!先感谢您!

Here's a screenshot of this Policy (i can't make my own, because it's in German)这是此政策的屏幕截图(我不能自己制作,因为它是德语的)

编辑器

The New-GPO cmdlet creates a GPO with a specified name. New-GPO cmdlet 创建具有指定名称的 GPO。 By default, the newly created GPO is not linked to a site, domain, or organizational unit (OU).默认情况下,新创建的 GPO 未链接到站点、域或组织单位 (OU)。

See more: https://docs.microsoft.com/en-us/powershell/module/grouppolicy/new-gpo?view=win10-ps查看更多: https://docs.microsoft.com/en-us/powershell/module/grouppolicy/new-gpo?view=win10-ps

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM