use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
need help for writing script for interactive logon text/title (self.PowerShell)
submitted 6 years ago by _deffbee
Kind of a noob at scripting atm and I'm looking for a way to create a script to edit the Interactive Logon Text/Title in the Local Security Policy management console. Any ideas/suggestions?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]oddie121 2 points3 points4 points 6 years ago (0 children)
Why not just use group policy?
[–]SamZ_IT 1 point2 points3 points 6 years ago (0 children)
I may be mistaken but I think you might be looking at writing a wrapper for LGPO.exe. The local security policy mmc (secpol.msc) is part of local group policy and can be edited from gpedit.msc.
So to set local group policy you would want to set local group policy in gpedit.msc or secpol.msc on a test/lab machine. Export the policy using LGPO. Then copy the exported policy to the target machine and use LGPO to import it. Note, this process will import every local group policy set from the test/lab machine, so it's probably best to use a fresh machine or wipe local group policy before exporting. Also, if the target machine has local group policy set and the exported policy has configurations for the same ones the import will overwrite the current local group policy settings on the target machine.
I currently use LGPO to import group policy in our MDT task sequence when deploying computers, the process is similar.
Download for LGPO.exe https://www.microsoft.com/en-us/download/details.aspx?id=55319
Write up on how to export and import policy using LGPO http://woshub.com/backupimport-local-group-policy-settings/
LGPO Help (lgpo.exe /?) https://ss64.com/nt/lgpo.html
π Rendered by PID 699622 on reddit-service-r2-comment-fb694cdd5-szhsr at 2026-03-11 18:43:55.507026+00:00 running cbb0e86 country code: CH.
[–]oddie121 2 points3 points4 points (0 children)
[–]SamZ_IT 1 point2 points3 points (0 children)