본문 바로가기

PowerShell25

[PowerShell] PSCustomObject for Saving Log [Scenario] The business wants a scipt to run periodically as a temporal solution and needs to trace script's activities via log. [Objectives] Create PSCustomObject to save script log as an Excel file [Steps] As starter, lets create PSCustomObject which can save datetime, device, action $pso = [PSCustomObject]@{ "DateTime" =(get-date -format 'yyyy-MM-dd') "DeviceName" ='KRYAN-L-FM992H2' "State"='.. 2023. 7. 14.
[PowerShell] Adding Values in Group Policy via PowerShell [Requirements] The business has a policy blocking USB sticks as default. For USB access, an user needs to raise a ticket, the system administrator should go to the Group Policy manage server and add exception USB device ID. This manual process requires time and effort thus the business wants this process automated. - Figure out automation feasibility of adding device ID via PowerShell for automa.. 2023. 7. 4.
[PowerShell] GUI - S/W Installation with AD Group Assignment [Requirements] The Service Delivery team needs a GUI tool to assign AD groups to a user PC with few clicks - GUI(Graphic User Interface) - Searching PC with user and PC name - List of SW provided to the tool user - Create a Excel sheet to easily add SW and OU and get the SW in the SW list [OS] Windows 10 [Development Language] PowerShell [IDE] PowerShell ISE [Code] GUI - RISD_main.xaml Execution.. 2023. 6. 12.
[PowerShell] GUI(Graphic User Interface) with XAML PowerShell is an easy and powerful tool from managing servers to supporting end user issues. Howerver, it would be hard for those who have no knowledge about PowerShell script. Further more, it costs time to run script either built in commands or written functions. Since PowerShell is on .Net framework, it can call assemblies in .Net framework. .Net framwork provide GUI assemly called "Presentat.. 2023. 5. 18.
반응형