본문 바로가기

PowerShell24

[PowerShell] Remote Session Connection Issue Remediation [Scenario] - After replacing Exchange server, account creation script did not work - The error message is "Please connect to Rotorks On-Premise Exchange (Please connect to Rotorks On-Premise Exchange)" which seems a customized error message [Objectives] - Examine related PowerShell scripts and remediate them [Remediation] - Go to the Azure automation account where account creation script belong .. 2024. 3. 12.
[PowerShell] Sending ActiveDirectory User List Weekl [Requirements] - Sending all Active Directory user list weekly via email, every Tuesday - Including below fields userPrincipalName, displayName, givenName, userType, jobTitle, department, accountEnabled, officeLocation, city, companyName, createdDateTime [OS] - [Development Language] PowerShell [IDE] Microsoft Azure Logicapp/Automation Account [Setting] - Microsoft Azure subscription for Logic a.. 2024. 2. 29.
[PowerShell] MECM(Microsoft EndPoint Configuration Management) Script Run/Reinstall Client Bulkily [Requirements] For vulnerability management in terms of Windows monthly update, it is a burdensome work either running remediation script or reinstalling MECM client for each PC manually. Write PowerShell script which can run script or reinstall commands for a big list of PC [OS] Windows clinet/server [Development Language] PowerShell [IDE] PowerShell ISE [Setting] - RDP MECM(Microsoft EndPoint .. 2023. 12. 21.
[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.
반응형